summaryrefslogtreecommitdiffstats
path: root/cc/output/direct_renderer.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 03:53:04 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 03:53:04 +0000
commit45a695dae15e0e2df2887a2b280d28a5ffe3da43 (patch)
tree1119521f4e9c19a742483ffe839ef59acb219f87 /cc/output/direct_renderer.h
parentfe3666132dcce324e06f99d116ce0c659617a6eb (diff)
downloadchromium_src-45a695dae15e0e2df2887a2b280d28a5ffe3da43.zip
chromium_src-45a695dae15e0e2df2887a2b280d28a5ffe3da43.tar.gz
chromium_src-45a695dae15e0e2df2887a2b280d28a5ffe3da43.tar.bz2
cc: Async readback.
Provide a path to get a readback of a layer's subtree via an asynchronous mechanism. This path is used for all the cc pixel tests, to show that it works. Also by some unit tests: LayerTreeHostTestAsyncReadback.GLRenderer_RunSingleThread LayerTreeHostTestAsyncReadback.GLRenderer_RunMultiThread LayerTreeHostTestAsyncReadback.SoftwareRenderer_RunSingleThread LayerTreeHostTestAsyncReadback.SoftwareRenderer_RunMultiThread LayerTreeHostTestAsyncReadbackLayerDestroyed.RunSingleThread LayerTreeHostTestAsyncReadbackLayerDestroyed.RunMultiThread BUG=179896 Review URL: https://chromiumcodereview.appspot.com/14060015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output/direct_renderer.h')
-rw-r--r--cc/output/direct_renderer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index bb3095a..4153750 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -109,6 +109,8 @@ class CC_EXPORT DirectRenderer : public Renderer {
virtual bool FlippedFramebuffer() const = 0;
virtual void EnsureScissorTestEnabled() = 0;
virtual void EnsureScissorTestDisabled() = 0;
+ virtual void CopyCurrentRenderPassToBitmap(DrawingFrame* frame,
+ SkBitmap* bitmap) = 0;
ScopedPtrHashMap<RenderPass::Id, CachedResource> render_pass_textures_;
ResourceProvider* resource_provider_;