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

Unified Diff: cc/layers/draw_properties.h

Issue 335633003: Do not skip subtrees with wheel or touch handlers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/draw_properties.h
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index 3f167b9b0b653c219f001f4072d149e700e0accc..9a78d29a5c0a22bf164dae12a94b9b53ec39f259 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -29,6 +29,7 @@ struct CC_EXPORT DrawProperties {
num_descendants_that_draw_content(0),
num_unclipped_descendants(0),
layer_or_descendant_has_copy_request(false),
+ layer_or_descendant_has_handler(false),
danakj 2014/06/12 18:24:41 nit: has_input_handler?
has_child_with_a_scroll_parent(false),
sorted_for_recursion(false),
index_of_first_descendants_addition(0),
@@ -102,6 +103,9 @@ struct CC_EXPORT DrawProperties {
// present on it.
bool layer_or_descendant_has_copy_request;
+ // If true, the layer or one of its descendants has a wheel or touch handler.
+ bool layer_or_descendant_has_handler;
+
// This is true if the layer has any direct child that has a scroll parent.
// This layer will not be the scroll parent in this case. This information
// lets us avoid work in CalculateDrawPropertiesInternal -- if none of our
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698