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

Side by Side Diff: content/browser/compositor/software_layer_mac.mm

Issue 490393002: Simplify IOSurface CoreAnimation code: Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed colon Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/software_layer_mac.h" 5 #include "content/browser/compositor/software_layer_mac.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/mac/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "base/mac/sdk_forward_declarations.h" 10 #include "base/mac/sdk_forward_declarations.h"
11 #include "ui/base/cocoa/animation_utils.h" 11 #include "ui/base/cocoa/animation_utils.h"
12 12
13 @implementation SoftwareLayer 13 @implementation SoftwareLayer
14 14
15 - (id)init { 15 - (id)init {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Set the contents scale of the software CALayer. 60 // Set the contents scale of the software CALayer.
61 if ([self respondsToSelector:(@selector(contentsScale))] && 61 if ([self respondsToSelector:(@selector(contentsScale))] &&
62 [self respondsToSelector:(@selector(setContentsScale:))] && 62 [self respondsToSelector:(@selector(setContentsScale:))] &&
63 [self contentsScale] != scaleFactor) { 63 [self contentsScale] != scaleFactor) {
64 [self setContentsScale:scaleFactor]; 64 [self setContentsScale:scaleFactor];
65 } 65 }
66 } 66 }
67 67
68 @end 68 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698