summaryrefslogtreecommitdiffstats
path: root/cc/layers/draw_properties.h
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-26 20:36:38 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-26 20:36:38 +0000
commit420fdf6e889e36c99aa128c0dc5b38469b5100a7 (patch)
tree1e240fa840974e2560ab2b1e3629e6df2aa5f168 /cc/layers/draw_properties.h
parent2f632cac5ce83dcc9f11d1c90f74aad5330a7fde (diff)
downloadchromium_src-420fdf6e889e36c99aa128c0dc5b38469b5100a7.zip
chromium_src-420fdf6e889e36c99aa128c0dc5b38469b5100a7.tar.gz
chromium_src-420fdf6e889e36c99aa128c0dc5b38469b5100a7.tar.bz2
Make use of scroll parent relationships in cc/
Layers scroll with, and are clipped by, their scroll parents. In a previous patch (http://crrev.com/18133004), the scroll parent concept and plumbing were added. In this patch, we use the scroll parent relationship to apply scroll offsets to scroll children, and to avoid inheriting unwanted clips. BUG=254435 Review URL: https://chromiumcodereview.appspot.com/18191009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/draw_properties.h')
-rw-r--r--cc/layers/draw_properties.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index bb80dce..181d900 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -27,6 +27,7 @@ struct CC_EXPORT DrawProperties {
contents_scale_x(1.f),
contents_scale_y(1.f),
num_descendants_that_draw_content(0),
+ num_unclipped_descendants(0),
descendants_can_clip_selves(false),
can_draw_directly_to_backbuffer(false),
layer_or_descendant_has_copy_request(false) {}
@@ -88,6 +89,10 @@ struct CC_EXPORT DrawProperties {
// Does not include this layer itself, only its children and descendants.
int num_descendants_that_draw_content;
+ // Number of descendants with a clip parent that is our ancestor. NB - this
+ // does not include our clip children because they are clipped by us.
+ int num_unclipped_descendants;
+
// 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;