Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: ui/gfx/mac/scoped_cocoa_disable_screen_updates.h

Issue 2271653006: base::mac::IsOSSierra() -> base::mac::IsOS10_12(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | ui/gfx/render_text_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mac/scoped_cocoa_disable_screen_updates.h
diff --git a/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h b/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h
index e431ecd586b08b2001318db2b73227453882ea08..b20492cf197e97572dfbe6cc8b1e1e6818f8bd6c 100644
--- a/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h
+++ b/ui/gfx/mac/scoped_cocoa_disable_screen_updates.h
@@ -20,7 +20,7 @@ namespace gfx {
class ScopedCocoaDisableScreenUpdates {
public:
ScopedCocoaDisableScreenUpdates() {
- if (base::mac::IsOSElCapitanOrLater()) {
+ if (base::mac::IsAtLeastOS10_11()) {
// Beginning with OS X 10.11, [NSAnimationContext beginGrouping] is the
// preferred way of disabling screen updates. Use of
// NSDisableScreenUpdates() is discouraged.
@@ -30,7 +30,7 @@ class ScopedCocoaDisableScreenUpdates {
}
}
~ScopedCocoaDisableScreenUpdates() {
- if (base::mac::IsOSElCapitanOrLater()) {
+ if (base::mac::IsAtLeastOS10_11()) {
[NSAnimationContext endGrouping];
} else {
NSEnableScreenUpdates();
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | ui/gfx/render_text_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698