| 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 LayerAnimationEventObserver* animation_observer) { | 1053 LayerAnimationEventObserver* animation_observer) { |
| 1054 layer_animation_controller_->RemoveEventObserver(animation_observer); | 1054 layer_animation_controller_->RemoveEventObserver(animation_observer); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 Region Layer::VisibleContentOpaqueRegion() const { | 1057 Region Layer::VisibleContentOpaqueRegion() const { |
| 1058 if (contents_opaque()) | 1058 if (contents_opaque()) |
| 1059 return visible_content_rect(); | 1059 return visible_content_rect(); |
| 1060 return Region(); | 1060 return Region(); |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 PaintedScrollbarLayer* Layer::ToScrollbarLayer() { | 1063 ScrollbarLayerInterface* Layer::ToScrollbarLayer() { |
| 1064 return NULL; | 1064 return NULL; |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 1067 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
| 1068 return layer_tree_host_->rendering_stats_instrumentation(); | 1068 return layer_tree_host_->rendering_stats_instrumentation(); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 bool Layer::SupportsLCDText() const { | 1071 bool Layer::SupportsLCDText() const { |
| 1072 return false; | 1072 return false; |
| 1073 } | 1073 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1092 (*it)->clip_parent_ = NULL; | 1092 (*it)->clip_parent_ = NULL; |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 if (clip_parent_) | 1095 if (clip_parent_) |
| 1096 clip_parent_->RemoveClipChild(this); | 1096 clip_parent_->RemoveClipChild(this); |
| 1097 | 1097 |
| 1098 clip_parent_ = NULL; | 1098 clip_parent_ = NULL; |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 } // namespace cc | 1101 } // namespace cc |
| OLD | NEW |