summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_delegated_renderer_layer_impl.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 07:50:17 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-09 07:50:17 +0000
commit021eff5d0b5451997188e3e4d7e41a40b74dc5ca (patch)
tree0b6bd3779eaf45af84832e1580963101b0261824 /cc/test/fake_delegated_renderer_layer_impl.cc
parentf36e51e9d15183351c4eb555d2b2a3bfe1a1b28b (diff)
downloadchromium_src-021eff5d0b5451997188e3e4d7e41a40b74dc5ca.zip
chromium_src-021eff5d0b5451997188e3e4d7e41a40b74dc5ca.tar.gz
chromium_src-021eff5d0b5451997188e3e4d7e41a40b74dc5ca.tar.bz2
cc: Make DelegatedRendererLayer tests work with a DelegatingRenderer.
These tests now work to demonstrate how a DelegatedRendererLayer works if the Compositor is not the root compositor, and they must delegate to another parent compositor. R=piman BUG=239290 Review URL: https://chromiumcodereview.appspot.com/22725002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_delegated_renderer_layer_impl.cc')
-rw-r--r--cc/test/fake_delegated_renderer_layer_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/test/fake_delegated_renderer_layer_impl.cc b/cc/test/fake_delegated_renderer_layer_impl.cc
index 7985121..c6a639e 100644
--- a/cc/test/fake_delegated_renderer_layer_impl.cc
+++ b/cc/test/fake_delegated_renderer_layer_impl.cc
@@ -16,6 +16,12 @@ FakeDelegatedRendererLayerImpl::FakeDelegatedRendererLayerImpl(
FakeDelegatedRendererLayerImpl::~FakeDelegatedRendererLayerImpl() {}
+scoped_ptr<LayerImpl> FakeDelegatedRendererLayerImpl::CreateLayerImpl(
+ LayerTreeImpl* tree_impl) {
+ return FakeDelegatedRendererLayerImpl::Create(
+ tree_impl, id()).PassAs<LayerImpl>();
+}
+
static ResourceProvider::ResourceId AddResourceToFrame(
DelegatedFrameData* frame,
ResourceProvider::ResourceId resource_id) {