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

Unified Diff: cc/draw_properties.h

Issue 11567034: Changes subtreeShouldRenderToSeparateSurface logic to account for explicit clipping (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: very minor change Created 7 years, 11 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/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_properties.h
diff --git a/cc/draw_properties.h b/cc/draw_properties.h
index e5bf8136ed2f498c0acb31725bac4d1b8c452782..858e4ffe61db03b824d523735b74ccd804f90f3b 100644
--- a/cc/draw_properties.h
+++ b/cc/draw_properties.h
@@ -27,6 +27,7 @@ struct CC_EXPORT DrawProperties {
, contents_scale_x(1)
, contents_scale_y(1)
, num_descendants_that_draw_content(0)
+ , descendants_can_clip_selves(false)
{
}
@@ -87,6 +88,10 @@ struct CC_EXPORT DrawProperties {
// Does not include this layer itself, only its children and descendants.
int num_descendants_that_draw_content;
+
+ // If true, every descendant in the sub-tree can clip itself without the
+ // need to use hardware sissoring or a new render target.
+ bool descendants_can_clip_selves;
};
} // namespace cc
« no previous file with comments | « no previous file | cc/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698