Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 915083004: cc: Make occlusion a draw property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: occlusiondrawproperty: earlyoutloop Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698