| 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 LayerAnimationEventObserver* animation_observer) { | 882 LayerAnimationEventObserver* animation_observer) { |
| 883 layer_animation_controller_->RemoveEventObserver(animation_observer); | 883 layer_animation_controller_->RemoveEventObserver(animation_observer); |
| 884 } | 884 } |
| 885 | 885 |
| 886 Region Layer::VisibleContentOpaqueRegion() const { | 886 Region Layer::VisibleContentOpaqueRegion() const { |
| 887 if (contents_opaque()) | 887 if (contents_opaque()) |
| 888 return visible_content_rect(); | 888 return visible_content_rect(); |
| 889 return Region(); | 889 return Region(); |
| 890 } | 890 } |
| 891 | 891 |
| 892 ScrollbarLayer* Layer::ToScrollbarLayer() { | 892 ScrollbarLayerBase* Layer::ToScrollbarLayerBase() { |
| 893 return NULL; | 893 return NULL; |
| 894 } | 894 } |
| 895 | 895 |
| 896 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 896 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
| 897 return layer_tree_host_->rendering_stats_instrumentation(); | 897 return layer_tree_host_->rendering_stats_instrumentation(); |
| 898 } | 898 } |
| 899 | 899 |
| 900 bool Layer::SupportsLCDText() const { | 900 bool Layer::SupportsLCDText() const { |
| 901 return false; | 901 return false; |
| 902 } | 902 } |
| 903 | 903 |
| 904 } // namespace cc | 904 } // namespace cc |
| OLD | NEW |