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

Unified Diff: cc/layers/draw_properties.h

Issue 266913021: Hit test on the layer tree rather than the RSLL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/draw_properties.h
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index 5fd42a49e94ca673599a1841e116fa45238ce26a..5b6424d13eaff4ddf79a6ba5a6d6017753d2b0e3 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -31,6 +31,7 @@ struct CC_EXPORT DrawProperties {
layer_or_descendant_has_copy_request(false),
has_child_with_a_scroll_parent(false),
sorted_for_recursion(false),
+ is_in_layer_list(false),
index_of_first_descendants_addition(0),
num_descendants_added(0),
index_of_first_render_surface_layer_list_addition(0),
@@ -111,6 +112,10 @@ struct CC_EXPORT DrawProperties {
// layer will be visited while computing draw properties has been determined.
bool sorted_for_recursion;
+ // This returns true if the layer has been included in some surface's layer
+ // list (i.e., this thing will draw).
+ bool is_in_layer_list;
enne (OOO) 2014/05/06 20:30:58 vmpstr is doing something like this as well in htt
Ian Vollick 2014/05/06 21:06:20 As we discussed offline, this is subsumed by vmpst
+
// If this layer is visited out of order, its contribution to the descendant
// and render surface layer lists will be put aside in a temporary list.
// These values will allow for an efficient reordering of these additions.

Powered by Google App Engine
This is Rietveld 408576698