| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 286 |
| 287 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } | 287 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } |
| 288 | 288 |
| 289 void set_has_ever_been_drawn(bool has_drawn) { | 289 void set_has_ever_been_drawn(bool has_drawn) { |
| 290 has_ever_been_drawn_ = has_drawn; | 290 has_ever_been_drawn_ = has_drawn; |
| 291 } | 291 } |
| 292 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } | 292 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
| 293 | 293 |
| 294 void set_ui_resource_request_queue(UIResourceRequestQueue queue); | 294 void set_ui_resource_request_queue(UIResourceRequestQueue queue); |
| 295 | 295 |
| 296 const LayerImplList& RenderSurfaceLayerList() const; | 296 const RenderSurfaceList& GetRenderSurfaceList() const; |
| 297 const Region& UnoccludedScreenSpaceRegion() const; | 297 const Region& UnoccludedScreenSpaceRegion() const; |
| 298 | 298 |
| 299 // These return the size of the root scrollable area and the size of | 299 // These return the size of the root scrollable area and the size of |
| 300 // the user-visible scrolling viewport, in CSS layout coordinates. | 300 // the user-visible scrolling viewport, in CSS layout coordinates. |
| 301 gfx::SizeF ScrollableSize() const; | 301 gfx::SizeF ScrollableSize() const; |
| 302 gfx::SizeF ScrollableViewportSize() const; | 302 gfx::SizeF ScrollableViewportSize() const; |
| 303 | 303 |
| 304 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 304 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
| 305 | 305 |
| 306 LayerImpl* LayerById(int id) const; | 306 LayerImpl* LayerById(int id) const; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // there may be 1 or 2 scrollbar layers (for vertical and horizontal). (This | 535 // there may be 1 or 2 scrollbar layers (for vertical and horizontal). (This |
| 536 // is derived from ScrollbarLayerImplBase::scroll_element_id_ and exists to | 536 // is derived from ScrollbarLayerImplBase::scroll_element_id_ and exists to |
| 537 // avoid O(n) walks.) | 537 // avoid O(n) walks.) |
| 538 // TODO(pdr): Refactor this to be more efficient--likely a map where the value | 538 // TODO(pdr): Refactor this to be more efficient--likely a map where the value |
| 539 // is a pair of scrollbar layer ids instead of using a multimap. | 539 // is a pair of scrollbar layer ids instead of using a multimap. |
| 540 std::multimap<ElementId, int> element_id_to_scrollbar_layer_ids_; | 540 std::multimap<ElementId, int> element_id_to_scrollbar_layer_ids_; |
| 541 | 541 |
| 542 std::vector<PictureLayerImpl*> picture_layers_; | 542 std::vector<PictureLayerImpl*> picture_layers_; |
| 543 LayerImplList surface_layers_; | 543 LayerImplList surface_layers_; |
| 544 | 544 |
| 545 // List of visible layers for the most recently prepared frame. | 545 // List of render surfaces for the most recently prepared frame. |
| 546 LayerImplList render_surface_layer_list_; | 546 RenderSurfaceList render_surface_list_; |
| 547 // After drawing the |render_surface_layer_list_| the areas in this region | 547 // After drawing the |render_surface_list_| the areas in this region |
| 548 // would not be fully covered by opaque content. | 548 // would not be fully covered by opaque content. |
| 549 Region unoccluded_screen_space_region_; | 549 Region unoccluded_screen_space_region_; |
| 550 | 550 |
| 551 bool viewport_size_invalid_; | 551 bool viewport_size_invalid_; |
| 552 bool needs_update_draw_properties_; | 552 bool needs_update_draw_properties_; |
| 553 | 553 |
| 554 // In impl-side painting mode, this is true when the tree may contain | 554 // In impl-side painting mode, this is true when the tree may contain |
| 555 // structural differences relative to the active tree. | 555 // structural differences relative to the active tree. |
| 556 bool needs_full_tree_sync_; | 556 bool needs_full_tree_sync_; |
| 557 | 557 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 582 | 582 |
| 583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 584 | 584 |
| 585 private: | 585 private: |
| 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 587 }; | 587 }; |
| 588 | 588 |
| 589 } // namespace cc | 589 } // namespace cc |
| 590 | 590 |
| 591 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 591 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |