summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_output_surface.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-08 03:39:29 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-08 03:39:29 +0000
commitea9d8f2728ab88307a58b8bb5e7b690a55f75862 (patch)
tree5689bbe76da521d88fa89dc530c0113511e69ed3 /cc/test/fake_output_surface.cc
parentdc8ccb32e130f3d707a108f549609aeea550a957 (diff)
downloadchromium_src-ea9d8f2728ab88307a58b8bb5e7b690a55f75862.zip
chromium_src-ea9d8f2728ab88307a58b8bb5e7b690a55f75862.tar.gz
chromium_src-ea9d8f2728ab88307a58b8bb5e7b690a55f75862.tar.bz2
Add the DelegatingRenderer class with its initialize path.
It's a skeleton class that can be initialized so that we can test with it. Tests: LayerTreeHostTest.PartialUpdatesWithDelegatingRendererAndGLContent LayerTreeHostTest.PartialUpdatesWithDelegatingRendererAndSoftwareContent LayerTreeHostImplTest.partialSwapReceivesDamageRect R=piman BUG=146080 Review URL: https://codereview.chromium.org/11464007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.cc')
-rw-r--r--cc/test/fake_output_surface.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index 6d1e972..a312041 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -7,13 +7,15 @@
namespace cc {
FakeOutputSurface::FakeOutputSurface(
- scoped_ptr<WebKit::WebGraphicsContext3D> context3d) {
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d, bool has_parent) {
context3d_ = context3d.Pass();
+ capabilities_.has_parent_compositor = has_parent;
}
FakeOutputSurface::FakeOutputSurface(
- scoped_ptr<SoftwareOutputDevice> software_device) {
+ scoped_ptr<SoftwareOutputDevice> software_device, bool has_parent) {
software_device_ = software_device.Pass();
+ capabilities_.has_parent_compositor = has_parent;
}
FakeOutputSurface::~FakeOutputSurface() {}