OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_impl.h" | 5 #include "cc/layers/layer_impl.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "cc/animation/animation_registrar.h" | 9 #include "cc/animation/animation_registrar.h" |
10 #include "cc/animation/scrollbar_animation_controller.h" | 10 #include "cc/animation/scrollbar_animation_controller.h" |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 double_sided_ = double_sided; | 941 double_sided_ = double_sided; |
942 NoteLayerPropertyChangedForSubtree(); | 942 NoteLayerPropertyChangedForSubtree(); |
943 } | 943 } |
944 | 944 |
945 Region LayerImpl::VisibleContentOpaqueRegion() const { | 945 Region LayerImpl::VisibleContentOpaqueRegion() const { |
946 if (contents_opaque()) | 946 if (contents_opaque()) |
947 return visible_content_rect(); | 947 return visible_content_rect(); |
948 return Region(); | 948 return Region(); |
949 } | 949 } |
950 | 950 |
| 951 void LayerImpl::DidBeginTracing() {} |
| 952 |
951 void LayerImpl::DidLoseOutputSurface() {} | 953 void LayerImpl::DidLoseOutputSurface() {} |
952 | 954 |
953 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) { | 955 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) { |
954 if (max_scroll_offset_ == max_scroll_offset) | 956 if (max_scroll_offset_ == max_scroll_offset) |
955 return; | 957 return; |
956 max_scroll_offset_ = max_scroll_offset; | 958 max_scroll_offset_ = max_scroll_offset; |
957 | 959 |
958 layer_tree_impl()->set_needs_update_draw_properties(); | 960 layer_tree_impl()->set_needs_update_draw_properties(); |
959 UpdateScrollbarPositions(); | 961 UpdateScrollbarPositions(); |
960 } | 962 } |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 | 1154 |
1153 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } | 1155 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } |
1154 | 1156 |
1155 scoped_ptr<base::Value> LayerImpl::AsValue() const { | 1157 scoped_ptr<base::Value> LayerImpl::AsValue() const { |
1156 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); | 1158 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
1157 AsValueInto(state.get()); | 1159 AsValueInto(state.get()); |
1158 return state.PassAs<base::Value>(); | 1160 return state.PassAs<base::Value>(); |
1159 } | 1161 } |
1160 | 1162 |
1161 } // namespace cc | 1163 } // namespace cc |
OLD | NEW |