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

Unified Diff: cc/draw_properties.h

Issue 11419284: Move second internal recursion to a precomputation in layer_tree_host_common.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleaned up and rebased Created 8 years 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/draw_properties.h
diff --git a/cc/draw_properties.h b/cc/draw_properties.h
index fc0507c6edd936262ed8b87c7c42ef8bc8353d10..e1c816525e11b803b1d337e8e87b8ac32b8ff61b 100644
--- a/cc/draw_properties.h
+++ b/cc/draw_properties.h
@@ -22,6 +22,7 @@ struct CC_EXPORT DrawProperties {
, screen_space_transform_is_animating(false)
, is_clipped(false)
, render_target(0)
+ , num_descendants_that_draw_content(0)
{
}
@@ -67,6 +68,9 @@ struct CC_EXPORT DrawProperties {
// layer. This value is used to avoid unnecessarily changing GL scissor
// state.
gfx::Rect clip_rect;
+
+ // Does not include this layer itself, only its children and descendants.
+ int num_descendants_that_draw_content;
};
} // namespace cc
« no previous file with comments | « cc/delegated_renderer_layer_impl.cc ('k') | cc/layer.h » ('j') | cc/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698