| 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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 double_sided_ = double_sided; | 936 double_sided_ = double_sided; |
| 937 NoteLayerPropertyChangedForSubtree(); | 937 NoteLayerPropertyChangedForSubtree(); |
| 938 } | 938 } |
| 939 | 939 |
| 940 Region LayerImpl::VisibleContentOpaqueRegion() const { | 940 Region LayerImpl::VisibleContentOpaqueRegion() const { |
| 941 if (contents_opaque()) | 941 if (contents_opaque()) |
| 942 return visible_content_rect(); | 942 return visible_content_rect(); |
| 943 return Region(); | 943 return Region(); |
| 944 } | 944 } |
| 945 | 945 |
| 946 void LayerImpl::DidBeginTracing() {} |
| 947 |
| 946 void LayerImpl::DidLoseOutputSurface() {} | 948 void LayerImpl::DidLoseOutputSurface() {} |
| 947 | 949 |
| 948 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) { | 950 void LayerImpl::SetMaxScrollOffset(gfx::Vector2d max_scroll_offset) { |
| 949 if (max_scroll_offset_ == max_scroll_offset) | 951 if (max_scroll_offset_ == max_scroll_offset) |
| 950 return; | 952 return; |
| 951 max_scroll_offset_ = max_scroll_offset; | 953 max_scroll_offset_ = max_scroll_offset; |
| 952 | 954 |
| 953 layer_tree_impl()->set_needs_update_draw_properties(); | 955 layer_tree_impl()->set_needs_update_draw_properties(); |
| 954 UpdateScrollbarPositions(); | 956 UpdateScrollbarPositions(); |
| 955 } | 957 } |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 | 1149 |
| 1148 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } | 1150 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } |
| 1149 | 1151 |
| 1150 scoped_ptr<base::Value> LayerImpl::AsValue() const { | 1152 scoped_ptr<base::Value> LayerImpl::AsValue() const { |
| 1151 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); | 1153 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
| 1152 AsValueInto(state.get()); | 1154 AsValueInto(state.get()); |
| 1153 return state.PassAs<base::Value>(); | 1155 return state.PassAs<base::Value>(); |
| 1154 } | 1156 } |
| 1155 | 1157 |
| 1156 } // namespace cc | 1158 } // namespace cc |
| OLD | NEW |