diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-27 03:31:59 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-27 03:31:59 +0000 |
commit | f10dc47a8ee183986c0cd0f7d3044806e3eb348c (patch) | |
tree | b0b49305aa8ca017dc9f17d5fa7a141ba5526c43 /cc/test/layer_tree_pixel_test.h | |
parent | 3ef76fac2240990a32288f7e769e9006f319adee (diff) | |
download | chromium_src-f10dc47a8ee183986c0cd0f7d3044806e3eb348c.zip chromium_src-f10dc47a8ee183986c0cd0f7d3044806e3eb348c.tar.gz chromium_src-f10dc47a8ee183986c0cd0f7d3044806e3eb348c.tar.bz2 |
Expose only one LayerTreeHostClient::OffscreenContextProvider()
LayerTreeHostClient currently provides two OffscreenContextProvider getters,
one for contexts usable on the main thread and one for contexts usable on the
compositor thread. However, the compositor only uses one - the main thread
context in single threaded mode and the compositor thread context in threaded
mode - and the embedder that implements LTHClient picks which mode the
compositor runs in. This reduces the API down to one call and updates the
comment to better reflect the requirements.
Some compositor embedders, like RenderThreadImpl, do need to keep a main thread
context around for other reasons. When they are running the compositor in
single threaded mode it's useful to use the same context. This moves the logic
for doing that sharing out to the embedders. It turns out there are only two so
it's all that much code.
R=danakj,piman
Review URL: https://codereview.chromium.org/23567027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225643 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_pixel_test.h')
-rw-r--r-- | cc/test/layer_tree_pixel_test.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cc/test/layer_tree_pixel_test.h b/cc/test/layer_tree_pixel_test.h index 2fdf2a6..1214f61 100644 --- a/cc/test/layer_tree_pixel_test.h +++ b/cc/test/layer_tree_pixel_test.h @@ -30,10 +30,7 @@ class LayerTreePixelTest : public LayerTreeTest { virtual ~LayerTreePixelTest(); virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) OVERRIDE; - virtual scoped_refptr<cc::ContextProvider> - OffscreenContextProviderForMainThread() OVERRIDE; - virtual scoped_refptr<cc::ContextProvider> - OffscreenContextProviderForCompositorThread() OVERRIDE; + virtual scoped_refptr<ContextProvider> OffscreenContextProvider() OVERRIDE; virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); |