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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 LayerAnimationEventObserver* animation_observer) { | 1064 LayerAnimationEventObserver* animation_observer) { |
1065 layer_animation_controller_->RemoveEventObserver(animation_observer); | 1065 layer_animation_controller_->RemoveEventObserver(animation_observer); |
1066 } | 1066 } |
1067 | 1067 |
1068 Region Layer::VisibleContentOpaqueRegion() const { | 1068 Region Layer::VisibleContentOpaqueRegion() const { |
1069 if (contents_opaque()) | 1069 if (contents_opaque()) |
1070 return visible_content_rect(); | 1070 return visible_content_rect(); |
1071 return Region(); | 1071 return Region(); |
1072 } | 1072 } |
1073 | 1073 |
1074 PaintedScrollbarLayer* Layer::ToScrollbarLayer() { | 1074 ScrollbarLayerInterface* Layer::ToScrollbarLayer() { |
1075 return NULL; | 1075 return NULL; |
1076 } | 1076 } |
1077 | 1077 |
1078 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 1078 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
1079 return layer_tree_host_->rendering_stats_instrumentation(); | 1079 return layer_tree_host_->rendering_stats_instrumentation(); |
1080 } | 1080 } |
1081 | 1081 |
1082 bool Layer::SupportsLCDText() const { | 1082 bool Layer::SupportsLCDText() const { |
1083 return false; | 1083 return false; |
1084 } | 1084 } |
(...skipping 18 matching lines...) Expand all Loading... |
1103 (*it)->clip_parent_ = NULL; | 1103 (*it)->clip_parent_ = NULL; |
1104 } | 1104 } |
1105 | 1105 |
1106 if (clip_parent_) | 1106 if (clip_parent_) |
1107 clip_parent_->RemoveClipChild(this); | 1107 clip_parent_->RemoveClipChild(this); |
1108 | 1108 |
1109 clip_parent_ = NULL; | 1109 clip_parent_ = NULL; |
1110 } | 1110 } |
1111 | 1111 |
1112 } // namespace cc | 1112 } // namespace cc |
OLD | NEW |