diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 02:32:40 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 02:32:40 +0000 |
commit | da983ab0f33178103ea9788a34963a95ac9606e6 (patch) | |
tree | c49562355e99010922b7468466384871bb7e75fd /cc/test/fake_layer_tree_host_client.h | |
parent | 7cc78904e5c3c8c8a25862cf107bf9e422fa6ce1 (diff) | |
download | chromium_src-da983ab0f33178103ea9788a34963a95ac9606e6.zip chromium_src-da983ab0f33178103ea9788a34963a95ac9606e6.tar.gz chromium_src-da983ab0f33178103ea9788a34963a95ac9606e6.tar.bz2 |
cc: Allow a renderer to disallow partial texture updates.
This is required for delegating renderer, as textures used by the renderer
can not be used by the texture updater while the renderer has ownership of
them, since it ships them out of process.
BUG=146080
R=piman,enne
Review URL: https://chromiumcodereview.appspot.com/11457003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_layer_tree_host_client.h')
-rw-r--r-- | cc/test/fake_layer_tree_host_client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/test/fake_layer_tree_host_client.h b/cc/test/fake_layer_tree_host_client.h index 321e926..8d0cfd6 100644 --- a/cc/test/fake_layer_tree_host_client.h +++ b/cc/test/fake_layer_tree_host_client.h @@ -15,6 +15,11 @@ namespace cc { class FakeLayerImplTreeHostClient : public LayerTreeHostClient { public: + FakeLayerImplTreeHostClient(bool useSoftwareRendering = false) + : m_useSoftwareRendering(useSoftwareRendering) + { + } + virtual void willBeginFrame() OVERRIDE { } virtual void didBeginFrame() OVERRIDE { } virtual void animate(double monotonicFrameBeginTime) OVERRIDE { } @@ -33,6 +38,9 @@ public: virtual void scheduleComposite() OVERRIDE { } virtual scoped_ptr<FontAtlas> createFontAtlas() OVERRIDE; + +private: + bool m_useSoftwareRendering; }; } |