| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 bool IsUIResourceOpaque(UIResourceId uid) const; | 241 bool IsUIResourceOpaque(UIResourceId uid) const; |
| 242 | 242 |
| 243 void AddLayerWithCopyOutputRequest(LayerImpl* layer); | 243 void AddLayerWithCopyOutputRequest(LayerImpl* layer); |
| 244 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); | 244 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); |
| 245 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; | 245 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; |
| 246 | 246 |
| 247 int current_render_surface_list_id() const { | 247 int current_render_surface_list_id() const { |
| 248 return render_surface_layer_list_id_; | 248 return render_surface_layer_list_id_; |
| 249 } | 249 } |
| 250 | 250 |
| 251 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( |
| 252 const gfx::PointF& screen_space_point); |
| 253 |
| 254 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); |
| 255 |
| 256 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( |
| 257 const gfx::PointF& screen_space_point); |
| 258 |
| 259 void set_current_render_surface_list_id_for_testing(int id) { |
| 260 render_surface_layer_list_id_ = id; |
| 261 } |
| 262 |
| 251 protected: | 263 protected: |
| 252 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); | 264 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
| 253 | 265 |
| 254 LayerTreeHostImpl* layer_tree_host_impl_; | 266 LayerTreeHostImpl* layer_tree_host_impl_; |
| 255 int source_frame_number_; | 267 int source_frame_number_; |
| 256 scoped_ptr<LayerImpl> root_layer_; | 268 scoped_ptr<LayerImpl> root_layer_; |
| 257 HeadsUpDisplayLayerImpl* hud_layer_; | 269 HeadsUpDisplayLayerImpl* hud_layer_; |
| 258 LayerImpl* currently_scrolling_layer_; | 270 LayerImpl* currently_scrolling_layer_; |
| 259 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 271 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
| 260 scoped_ptr<LayerScrollOffsetDelegateProxy> | 272 scoped_ptr<LayerScrollOffsetDelegateProxy> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 315 |
| 304 int render_surface_layer_list_id_; | 316 int render_surface_layer_list_id_; |
| 305 | 317 |
| 306 private: | 318 private: |
| 307 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 319 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 308 }; | 320 }; |
| 309 | 321 |
| 310 } // namespace cc | 322 } // namespace cc |
| 311 | 323 |
| 312 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 324 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |