From f67aa4725307c5d4b896283f1f95514dc01b7c1b Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Fri, 1 Mar 2013 07:32:01 +0000 Subject: cc: Receive and remap resources to the parent. The delegated renderer layer needs to give the resources it receives for a frame to the resource provider. Then, the resources are remapped into the parent's namespace so the quads need to be updated to reflect this remapping. Finally, the resources no longer in use by the layer should be returned to the child compositor. The above is implemented in DelegatedRendererLayerImpl::SetFrameData() however for now the resources to be returned are simply dropped with a TODO. Tests: LayerTreeHostDelegatedTestMergeResources.runSingleThread LayerTreeHostDelegatedTestMergeResources.runMultiThread LayerTreeHostDelegatedTestRemapResourcesInQuads.runSingleThread LayerTreeHostDelegatedTestRemapResourcesInQuads.runMultiThread R=piman BUG=123444 Review URL: https://chromiumcodereview.appspot.com/12340124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185477 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/fake_delegated_renderer_layer.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cc/test/fake_delegated_renderer_layer.cc (limited to 'cc/test/fake_delegated_renderer_layer.cc') diff --git a/cc/test/fake_delegated_renderer_layer.cc b/cc/test/fake_delegated_renderer_layer.cc new file mode 100644 index 0000000..ba37843 --- /dev/null +++ b/cc/test/fake_delegated_renderer_layer.cc @@ -0,0 +1,21 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "cc/test/fake_delegated_renderer_layer.h" + +#include "cc/test/fake_delegated_renderer_layer_impl.h" + +namespace cc { + +FakeDelegatedRendererLayer::FakeDelegatedRendererLayer() {} + +FakeDelegatedRendererLayer::~FakeDelegatedRendererLayer() {} + +scoped_ptr FakeDelegatedRendererLayer::createLayerImpl( + LayerTreeImpl* tree_impl) { + return FakeDelegatedRendererLayerImpl::Create( + tree_impl, m_layerId).PassAs(); +} + +} // namespace cc -- cgit v1.1