| 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/location.h" | 9 #include "base/location.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 LayerAnimationEventObserver* animation_observer) { | 960 LayerAnimationEventObserver* animation_observer) { |
| 961 layer_animation_controller_->RemoveEventObserver(animation_observer); | 961 layer_animation_controller_->RemoveEventObserver(animation_observer); |
| 962 } | 962 } |
| 963 | 963 |
| 964 Region Layer::VisibleContentOpaqueRegion() const { | 964 Region Layer::VisibleContentOpaqueRegion() const { |
| 965 if (contents_opaque()) | 965 if (contents_opaque()) |
| 966 return visible_content_rect(); | 966 return visible_content_rect(); |
| 967 return Region(); | 967 return Region(); |
| 968 } | 968 } |
| 969 | 969 |
| 970 ScrollbarLayer* Layer::ToScrollbarLayer() { | 970 ScrollbarLayerInterface* Layer::ToScrollbarLayer() { |
| 971 return NULL; | 971 return NULL; |
| 972 } | 972 } |
| 973 | 973 |
| 974 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 974 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
| 975 return layer_tree_host_->rendering_stats_instrumentation(); | 975 return layer_tree_host_->rendering_stats_instrumentation(); |
| 976 } | 976 } |
| 977 | 977 |
| 978 bool Layer::SupportsLCDText() const { | 978 bool Layer::SupportsLCDText() const { |
| 979 return false; | 979 return false; |
| 980 } | 980 } |
| 981 | 981 |
| 982 } // namespace cc | 982 } // namespace cc |
| OLD | NEW |