| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // These should be called by LayerImpl's ctor/dtor. | 173 // These should be called by LayerImpl's ctor/dtor. |
| 174 void RegisterLayer(LayerImpl* layer); | 174 void RegisterLayer(LayerImpl* layer); |
| 175 void UnregisterLayer(LayerImpl* layer); | 175 void UnregisterLayer(LayerImpl* layer); |
| 176 | 176 |
| 177 AnimationRegistrar* animationRegistrar() const; | 177 AnimationRegistrar* animationRegistrar() const; |
| 178 | 178 |
| 179 void PushPersistedState(LayerTreeImpl* pending_tree); | 179 void PushPersistedState(LayerTreeImpl* pending_tree); |
| 180 | 180 |
| 181 void DidBecomeActive(); | 181 void DidBecomeActive(); |
| 182 | 182 |
| 183 void SetUIResourceEvictionCountRecreated( |
| 184 uint64 ui_resource_eviction_count_recreated); |
| 185 bool UIResourcesEvictedHaveNotBeenRecreated() const; |
| 186 |
| 183 bool ContentsTexturesPurged() const; | 187 bool ContentsTexturesPurged() const; |
| 184 void SetContentsTexturesPurged(); | 188 void SetContentsTexturesPurged(); |
| 185 void ResetContentsTexturesPurged(); | 189 void ResetContentsTexturesPurged(); |
| 186 | 190 |
| 187 // Set on the active tree when the viewport size recently changed | 191 // Set on the active tree when the viewport size recently changed |
| 188 // and the active tree's size is now out of date. | 192 // and the active tree's size is now out of date. |
| 189 bool ViewportSizeInvalid() const; | 193 bool ViewportSizeInvalid() const; |
| 190 void SetViewportSizeInvalid(); | 194 void SetViewportSizeInvalid(); |
| 191 void ResetViewportSizeInvalid(); | 195 void ResetViewportSizeInvalid(); |
| 192 | 196 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 241 |
| 238 std::vector<LayerImpl*> layers_with_copy_output_request_; | 242 std::vector<LayerImpl*> layers_with_copy_output_request_; |
| 239 | 243 |
| 240 // Persisted state for non-impl-side-painting. | 244 // Persisted state for non-impl-side-painting. |
| 241 int scrolling_layer_id_from_previous_tree_; | 245 int scrolling_layer_id_from_previous_tree_; |
| 242 | 246 |
| 243 // List of visible layers for the most recently prepared frame. Used for | 247 // List of visible layers for the most recently prepared frame. Used for |
| 244 // rendering and input event hit testing. | 248 // rendering and input event hit testing. |
| 245 LayerImplList render_surface_layer_list_; | 249 LayerImplList render_surface_layer_list_; |
| 246 | 250 |
| 251 // The UI resource eviction count most recently acked. This value is updated |
| 252 // through ProcessUIResourceRequestQueue. If this value is not equal to |
| 253 // |layer_tree_host_impl_|'s UI resource eviction count, then this tree may |
| 254 // may reference evicted UI resources and cannot be drawn. |
| 255 uint64 ui_resource_eviction_count_recreated_; |
| 256 |
| 247 bool contents_textures_purged_; | 257 bool contents_textures_purged_; |
| 248 bool viewport_size_invalid_; | 258 bool viewport_size_invalid_; |
| 249 bool needs_update_draw_properties_; | 259 bool needs_update_draw_properties_; |
| 250 | 260 |
| 251 // In impl-side painting mode, this is true when the tree may contain | 261 // In impl-side painting mode, this is true when the tree may contain |
| 252 // structural differences relative to the active tree. | 262 // structural differences relative to the active tree. |
| 253 bool needs_full_tree_sync_; | 263 bool needs_full_tree_sync_; |
| 254 | 264 |
| 255 ui::LatencyInfo latency_info_; | 265 ui::LatencyInfo latency_info_; |
| 256 | 266 |
| 257 UIResourceRequestQueue ui_resource_request_queue_; | 267 UIResourceRequestQueue ui_resource_request_queue_; |
| 258 | 268 |
| 259 private: | 269 private: |
| 260 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 270 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 261 }; | 271 }; |
| 262 | 272 |
| 263 } // namespace cc | 273 } // namespace cc |
| 264 | 274 |
| 265 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 275 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |