diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-01 07:32:01 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-01 07:32:01 +0000 |
commit | f67aa4725307c5d4b896283f1f95514dc01b7c1b (patch) | |
tree | bdb5468119197ec54cc9508513ae1d9e74880745 /cc/test/fake_delegated_renderer_layer.cc | |
parent | c76c3815498f19048f52e71673b04badef228ee2 (diff) | |
download | chromium_src-f67aa4725307c5d4b896283f1f95514dc01b7c1b.zip chromium_src-f67aa4725307c5d4b896283f1f95514dc01b7c1b.tar.gz chromium_src-f67aa4725307c5d4b896283f1f95514dc01b7c1b.tar.bz2 |
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
Diffstat (limited to 'cc/test/fake_delegated_renderer_layer.cc')
-rw-r--r-- | cc/test/fake_delegated_renderer_layer.cc | 21 |
1 files changed, 21 insertions, 0 deletions
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<LayerImpl> FakeDelegatedRendererLayer::createLayerImpl( + LayerTreeImpl* tree_impl) { + return FakeDelegatedRendererLayerImpl::Create( + tree_impl, m_layerId).PassAs<LayerImpl>(); +} + +} // namespace cc |