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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 237 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
238 void ProcessUIResourceRequestQueue(); | 238 void ProcessUIResourceRequestQueue(); |
239 | 239 |
240 bool IsUIResourceOpaque(UIResourceId uid) const; | 240 bool IsUIResourceOpaque(UIResourceId uid) const; |
241 | 241 |
242 void AddLayerWithCopyOutputRequest(LayerImpl* layer); | 242 void AddLayerWithCopyOutputRequest(LayerImpl* layer); |
243 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); | 243 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); |
244 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; | 244 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; |
245 | 245 |
| 246 int current_render_surface_list_id() const { |
| 247 return render_surface_layer_list_id_; |
| 248 } |
| 249 |
246 protected: | 250 protected: |
247 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); | 251 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
248 | 252 |
249 LayerTreeHostImpl* layer_tree_host_impl_; | 253 LayerTreeHostImpl* layer_tree_host_impl_; |
250 int source_frame_number_; | 254 int source_frame_number_; |
251 scoped_ptr<LayerImpl> root_layer_; | 255 scoped_ptr<LayerImpl> root_layer_; |
252 HeadsUpDisplayLayerImpl* hud_layer_; | 256 HeadsUpDisplayLayerImpl* hud_layer_; |
253 LayerImpl* currently_scrolling_layer_; | 257 LayerImpl* currently_scrolling_layer_; |
254 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 258 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
255 scoped_ptr<LayerScrollOffsetDelegateProxy> | 259 scoped_ptr<LayerScrollOffsetDelegateProxy> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // In impl-side painting mode, this is true when the tree may contain | 293 // In impl-side painting mode, this is true when the tree may contain |
290 // structural differences relative to the active tree. | 294 // structural differences relative to the active tree. |
291 bool needs_full_tree_sync_; | 295 bool needs_full_tree_sync_; |
292 | 296 |
293 bool next_activation_forces_redraw_; | 297 bool next_activation_forces_redraw_; |
294 | 298 |
295 ScopedPtrVector<SwapPromise> swap_promise_list_; | 299 ScopedPtrVector<SwapPromise> swap_promise_list_; |
296 | 300 |
297 UIResourceRequestQueue ui_resource_request_queue_; | 301 UIResourceRequestQueue ui_resource_request_queue_; |
298 | 302 |
| 303 int render_surface_layer_list_id_; |
| 304 |
299 private: | 305 private: |
300 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 306 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
301 }; | 307 }; |
302 | 308 |
303 } // namespace cc | 309 } // namespace cc |
304 | 310 |
305 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 311 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |