| 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 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // RenderSurface that is being drawn for the current frame. It could still be | 109 // RenderSurface that is being drawn for the current frame. It could still be |
| 110 // drawn to as a target, but its output will not be a part of any other | 110 // drawn to as a target, but its output will not be a part of any other |
| 111 // surface. | 111 // surface. |
| 112 bool contributes_to_drawn_surface() const { | 112 bool contributes_to_drawn_surface() const { |
| 113 return contributes_to_drawn_surface_; | 113 return contributes_to_drawn_surface_; |
| 114 } | 114 } |
| 115 void set_contributes_to_drawn_surface(bool contributes_to_drawn_surface) { | 115 void set_contributes_to_drawn_surface(bool contributes_to_drawn_surface) { |
| 116 contributes_to_drawn_surface_ = contributes_to_drawn_surface; | 116 contributes_to_drawn_surface_ = contributes_to_drawn_surface; |
| 117 } | 117 } |
| 118 | 118 |
| 119 bool ContentsChanged() const; | |
| 120 | |
| 121 void SetContentRect(const gfx::Rect& content_rect); | 119 void SetContentRect(const gfx::Rect& content_rect); |
| 122 gfx::Rect content_rect() const { return content_rect_; } | 120 gfx::Rect content_rect() const { return content_rect_; } |
| 123 | 121 |
| 124 LayerImplList& layer_list() { return layer_list_; } | 122 LayerImplList& layer_list() { return layer_list_; } |
| 125 void AddContributingDelegatedRenderPassLayer(LayerImpl* layer); | 123 void AddContributingDelegatedRenderPassLayer(LayerImpl* layer); |
| 126 void ClearLayerLists(); | 124 void ClearLayerLists(); |
| 127 | 125 |
| 128 int OwningLayerId() const; | 126 int OwningLayerId() const; |
| 129 | 127 |
| 130 void ResetPropertyChangedFlag() { surface_property_changed_ = false; } | 128 void ResetPropertyChangedFlag() { surface_property_changed_ = false; } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 int target_render_surface_layer_index_history_; | 176 int target_render_surface_layer_index_history_; |
| 179 int current_layer_index_history_; | 177 int current_layer_index_history_; |
| 180 | 178 |
| 181 friend class LayerIterator<LayerImpl>; | 179 friend class LayerIterator<LayerImpl>; |
| 182 | 180 |
| 183 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 181 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
| 184 }; | 182 }; |
| 185 | 183 |
| 186 } // namespace cc | 184 } // namespace cc |
| 187 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ | 185 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ |
| OLD | NEW |