Chromium Code Reviews| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 | 262 |
| 263 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 263 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
| 264 void ProcessUIResourceRequestQueue(); | 264 void ProcessUIResourceRequestQueue(); |
| 265 | 265 |
| 266 bool IsUIResourceOpaque(UIResourceId uid) const; | 266 bool IsUIResourceOpaque(UIResourceId uid) const; |
| 267 | 267 |
| 268 void AddLayerWithCopyOutputRequest(LayerImpl* layer); | 268 void AddLayerWithCopyOutputRequest(LayerImpl* layer); |
| 269 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); | 269 void RemoveLayerWithCopyOutputRequest(LayerImpl* layer); |
| 270 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; | 270 const std::vector<LayerImpl*>& LayersWithCopyOutputRequest() const; |
| 271 | 271 |
| 272 int current_render_surface_list_id() const { | 272 size_t current_render_surface_list_id() const { |
| 273 return render_surface_layer_list_id_; | 273 return render_surface_layer_list_id_; |
| 274 } | 274 } |
| 275 | 275 |
| 276 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( | 276 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( |
| 277 const gfx::PointF& screen_space_point); | 277 const gfx::PointF& screen_space_point); |
| 278 | 278 |
| 279 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); | 279 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); |
| 280 | 280 |
| 281 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( | 281 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( |
| 282 const gfx::PointF& screen_space_point); | 282 const gfx::PointF& screen_space_point); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 372 bool needs_full_tree_sync_; | 372 bool needs_full_tree_sync_; |
| 373 | 373 |
| 374 bool next_activation_forces_redraw_; | 374 bool next_activation_forces_redraw_; |
| 375 | 375 |
| 376 bool has_ever_been_drawn_; | 376 bool has_ever_been_drawn_; |
| 377 | 377 |
| 378 ScopedPtrVector<SwapPromise> swap_promise_list_; | 378 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 379 | 379 |
| 380 UIResourceRequestQueue ui_resource_request_queue_; | 380 UIResourceRequestQueue ui_resource_request_queue_; |
| 381 | 381 |
| 382 int render_surface_layer_list_id_; | 382 size_t render_surface_layer_list_id_; |
|
danakj
2014/09/11 19:22:05
This kinda violates my reading of the chromium sty
Ian Vollick
2014/09/11 19:58:08
Done.
| |
| 383 | 383 |
| 384 // The top controls content offset at the time of the last layout (and thus, | 384 // The top controls content offset at the time of the last layout (and thus, |
| 385 // viewport resize) in Blink. i.e. How much the viewport was shrunk by the top | 385 // viewport resize) in Blink. i.e. How much the viewport was shrunk by the top |
| 386 // controls. | 386 // controls. |
| 387 float top_controls_layout_height_; | 387 float top_controls_layout_height_; |
| 388 | 388 |
| 389 // The up-to-date content offset of the top controls, i.e. the amount that the | 389 // The up-to-date content offset of the top controls, i.e. the amount that the |
| 390 // web contents have been shifted down from the top of the device viewport. | 390 // web contents have been shifted down from the top of the device viewport. |
| 391 float top_controls_top_offset_; | 391 float top_controls_top_offset_; |
| 392 float top_controls_delta_; | 392 float top_controls_delta_; |
| 393 float sent_top_controls_delta_; | 393 float sent_top_controls_delta_; |
| 394 | 394 |
| 395 private: | 395 private: |
| 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 397 }; | 397 }; |
| 398 | 398 |
| 399 } // namespace cc | 399 } // namespace cc |
| 400 | 400 |
| 401 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 401 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |