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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } | 213 void ForceRedrawNextActivation() { next_activation_forces_redraw_ = true; } |
214 | 214 |
215 void set_has_ever_been_drawn(bool has_drawn) { | 215 void set_has_ever_been_drawn(bool has_drawn) { |
216 has_ever_been_drawn_ = has_drawn; | 216 has_ever_been_drawn_ = has_drawn; |
217 } | 217 } |
218 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } | 218 bool has_ever_been_drawn() const { return has_ever_been_drawn_; } |
219 | 219 |
220 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); | 220 void set_ui_resource_request_queue(const UIResourceRequestQueue& queue); |
221 | 221 |
222 const LayerImplList& RenderSurfaceLayerList() const; | 222 const LayerImplList& RenderSurfaceLayerList() const; |
| 223 const Region& UnoccludedScreenSpaceRegion() const; |
223 | 224 |
224 // These return the size of the root scrollable area and the size of | 225 // These return the size of the root scrollable area and the size of |
225 // the user-visible scrolling viewport, in CSS layout coordinates. | 226 // the user-visible scrolling viewport, in CSS layout coordinates. |
226 gfx::Size ScrollableSize() const; | 227 gfx::Size ScrollableSize() const; |
227 gfx::SizeF ScrollableViewportSize() const; | 228 gfx::SizeF ScrollableViewportSize() const; |
228 | 229 |
229 gfx::Rect RootScrollLayerDeviceViewportBounds() const; | 230 gfx::Rect RootScrollLayerDeviceViewportBounds() const; |
230 | 231 |
231 LayerImpl* LayerById(int id); | 232 LayerImpl* LayerById(int id); |
232 | 233 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 LayerIdMap layer_id_map_; | 375 LayerIdMap layer_id_map_; |
375 | 376 |
376 std::vector<PictureLayerImpl*> picture_layers_; | 377 std::vector<PictureLayerImpl*> picture_layers_; |
377 std::vector<LayerImpl*> layers_with_copy_output_request_; | 378 std::vector<LayerImpl*> layers_with_copy_output_request_; |
378 | 379 |
379 // Persisted state for non-impl-side-painting. | 380 // Persisted state for non-impl-side-painting. |
380 int scrolling_layer_id_from_previous_tree_; | 381 int scrolling_layer_id_from_previous_tree_; |
381 | 382 |
382 // List of visible layers for the most recently prepared frame. | 383 // List of visible layers for the most recently prepared frame. |
383 LayerImplList render_surface_layer_list_; | 384 LayerImplList render_surface_layer_list_; |
| 385 // After drawing the |render_surface_layer_list_| the areas in this region |
| 386 // would not be fully covered by opaque content. |
| 387 Region unoccluded_screen_space_region_; |
384 | 388 |
385 bool contents_textures_purged_; | 389 bool contents_textures_purged_; |
386 bool viewport_size_invalid_; | 390 bool viewport_size_invalid_; |
387 bool needs_update_draw_properties_; | 391 bool needs_update_draw_properties_; |
388 | 392 |
389 // In impl-side painting mode, this is true when the tree may contain | 393 // In impl-side painting mode, this is true when the tree may contain |
390 // structural differences relative to the active tree. | 394 // structural differences relative to the active tree. |
391 bool needs_full_tree_sync_; | 395 bool needs_full_tree_sync_; |
392 | 396 |
393 bool next_activation_forces_redraw_; | 397 bool next_activation_forces_redraw_; |
(...skipping 18 matching lines...) Expand all Loading... |
412 | 416 |
413 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 417 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
414 | 418 |
415 private: | 419 private: |
416 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 420 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
417 }; | 421 }; |
418 | 422 |
419 } // namespace cc | 423 } // namespace cc |
420 | 424 |
421 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 425 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |