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