scoped_cocoa_disable_screen_updates.mm 508 B

12345678910111213141516171819
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/gfx/mac/scoped_cocoa_disable_screen_updates.h"
  5. #import <Cocoa/Cocoa.h>
  6. namespace gfx {
  7. ScopedCocoaDisableScreenUpdates::ScopedCocoaDisableScreenUpdates() {
  8. [NSAnimationContext beginGrouping];
  9. }
  10. ScopedCocoaDisableScreenUpdates::~ScopedCocoaDisableScreenUpdates() {
  11. [NSAnimationContext endGrouping];
  12. }
  13. } // namespace gfx