| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 "cc/layers/layer.h" | 5 #include "cc/layers/layer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // Intersect with content rect to avoid the extra pixel because for some | 188 // Intersect with content rect to avoid the extra pixel because for some |
| 189 // values x and y, ceil((x / y) * y) may be x + 1. | 189 // values x and y, ceil((x / y) * y) may be x + 1. |
| 190 content_rect.Intersect(gfx::Rect(content_bounds())); | 190 content_rect.Intersect(gfx::Rect(content_bounds())); |
| 191 return gfx::ToEnclosingRect(content_rect); | 191 return gfx::ToEnclosingRect(content_rect); |
| 192 } | 192 } |
| 193 | 193 |
| 194 bool Layer::BlocksPendingCommit() const { | 194 bool Layer::BlocksPendingCommit() const { |
| 195 return false; | 195 return false; |
| 196 } | 196 } |
| 197 | 197 |
| 198 skia::RefPtr<SkPicture> Layer::GetPicture() const { |
| 199 return skia::RefPtr<SkPicture>(); |
| 200 } |
| 201 |
| 198 bool Layer::CanClipSelf() const { | 202 bool Layer::CanClipSelf() const { |
| 199 return false; | 203 return false; |
| 200 } | 204 } |
| 201 | 205 |
| 202 bool Layer::BlocksPendingCommitRecursive() const { | 206 bool Layer::BlocksPendingCommitRecursive() const { |
| 203 if (BlocksPendingCommit()) | 207 if (BlocksPendingCommit()) |
| 204 return true; | 208 return true; |
| 205 if (mask_layer() && mask_layer()->BlocksPendingCommitRecursive()) | 209 if (mask_layer() && mask_layer()->BlocksPendingCommitRecursive()) |
| 206 return true; | 210 return true; |
| 207 if (replica_layer() && replica_layer()->BlocksPendingCommitRecursive()) | 211 if (replica_layer() && replica_layer()->BlocksPendingCommitRecursive()) |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 | 988 |
| 985 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 989 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
| 986 return layer_tree_host_->rendering_stats_instrumentation(); | 990 return layer_tree_host_->rendering_stats_instrumentation(); |
| 987 } | 991 } |
| 988 | 992 |
| 989 bool Layer::SupportsLCDText() const { | 993 bool Layer::SupportsLCDText() const { |
| 990 return false; | 994 return false; |
| 991 } | 995 } |
| 992 | 996 |
| 993 } // namespace cc | 997 } // namespace cc |
| OLD | NEW |