summaryrefslogtreecommitdiffstats
path: root/cc/layers/draw_properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/draw_properties.h')
-rw-r--r--cc/layers/draw_properties.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index 990b4c97..fffb5a9 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -35,7 +35,8 @@ struct CC_EXPORT DrawProperties {
index_of_first_descendants_addition(0),
num_descendants_added(0),
index_of_first_render_surface_layer_list_addition(0),
- num_render_surfaces_added(0) {}
+ num_render_surfaces_added(0),
+ skip_drawing(false) {}
// Transforms objects from content space to target surface space, where
// this layer would be drawn.
@@ -121,6 +122,12 @@ struct CC_EXPORT DrawProperties {
size_t num_descendants_added;
size_t index_of_first_render_surface_layer_list_addition;
size_t num_render_surfaces_added;
+
+ // If the layer is part of a [sub]tree that has a touch/wheel event handler,
+ // then the layer is not skipped during CalculateDrawPropertiesInternal, even
+ // if it does not actually have anything to draw (e.g. zero opacity, or empty
+ // content). This flag is used to keep track of such layers.
+ bool skip_drawing;
};
} // namespace cc