OLD | NEW |
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 Loading... |
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 |
OLD | NEW |