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

Unified Diff: ui/accelerated_widget_mac/accelerated_widget_mac.mm

Issue 1917973002: mac: Remove IsOSLion(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tapted Created 4 years, 8 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 | « sandbox/mac/os_compatibility.cc ('k') | ui/app_list/cocoa/scroll_view_with_no_scrollbars.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/accelerated_widget_mac.mm
diff --git a/ui/accelerated_widget_mac/accelerated_widget_mac.mm b/ui/accelerated_widget_mac/accelerated_widget_mac.mm
index fc9269bd20fc1ef5e24e9ec5a773e463ba78d1a4..ee0a5e41eadaa279e352760dd1b4a3e601709cf1 100644
--- a/ui/accelerated_widget_mac/accelerated_widget_mac.mm
+++ b/ui/accelerated_widget_mac/accelerated_widget_mac.mm
@@ -203,12 +203,8 @@ void AcceleratedWidgetMac::GotIOSurfaceFrame(
[local_layer_ setBounds:CGRectMake(0, 0, pixel_size.width() / scale_factor,
pixel_size.height() / scale_factor)];
- if ([local_layer_ respondsToSelector:(@selector(contentsScale))] &&
- [local_layer_ respondsToSelector:(@selector(setContentsScale:))] &&
- [local_layer_ contentsScale] != scale_factor) {
- DCHECK(base::mac::IsOSLionOrLater());
+ if ([local_layer_ contentsScale] != scale_factor)
[local_layer_ setContentsScale:scale_factor];
- }
// Remove any different-type layers that this is replacing.
DestroyCAContextLayer(ca_context_layer_);
« no previous file with comments | « sandbox/mac/os_compatibility.cc ('k') | ui/app_list/cocoa/scroll_view_with_no_scrollbars.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698