summaryrefslogtreecommitdiffstats
path: root/cc/layers/draw_properties.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 21:31:44 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-21 21:31:44 +0000
commitbec08429286ff70c2ce5514ba44c8058fc058a27 (patch)
treed3f04253d5ba58348f533386fa352203e1650b41 /cc/layers/draw_properties.h
parent2fccd420c7523d8379367cc1c8a3fc962b4babe1 (diff)
downloadchromium_src-bec08429286ff70c2ce5514ba44c8058fc058a27.zip
chromium_src-bec08429286ff70c2ce5514ba44c8058fc058a27.tar.gz
chromium_src-bec08429286ff70c2ce5514ba44c8058fc058a27.tar.bz2
Add flag for drawing layers to screen with Ganesh
The --force-direct-layer-drawing flag causes any layer that could be drawn direct to the backbuffer to be drawn to the backbuffer using Ganesh. This flag also requires both the --enable-threaded-compositing flag and the --enable-impl-side-painting flag to have any effect. This patch also turns on testing for PictureDrawQuad using Ganesh in the cc pixeltests. BUG=none Review URL: https://chromiumcodereview.appspot.com/13863015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201362 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/draw_properties.h')
-rw-r--r--cc/layers/draw_properties.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index ad598bc..c9bd90c 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -27,7 +27,8 @@ struct CC_EXPORT DrawProperties {
contents_scale_x(1.f),
contents_scale_y(1.f),
num_descendants_that_draw_content(0),
- descendants_can_clip_selves(false) {}
+ descendants_can_clip_selves(false),
+ can_draw_directly_to_backbuffer(false) {}
// Transforms objects from content space to target surface space, where
// this layer would be drawn.
@@ -89,6 +90,8 @@ struct CC_EXPORT DrawProperties {
// 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;
+
+ bool can_draw_directly_to_backbuffer;
};
} // namespace cc