Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: cc/output/gl_renderer.h

Issue 15435003: cc: Add CopyAsBitmapRequest class to hold the readback callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nolint Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index b81ae042abbaecc4f334053435a7efa1f8815b2b..d90b32f79f962380c30f2fa6e92633d8dfef9935 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -97,7 +97,7 @@ class CC_EXPORT GLRenderer
void GetFramebufferPixelsAsync(gfx::Rect rect,
bool flipped_y,
- CopyRenderPassCallback callback);
+ scoped_ptr<CopyOutputRequest> request);
bool GetFramebufferTexture(ScopedResource* resource, gfx::Rect device_rect);
void ReleaseRenderPassTextures();
@@ -116,7 +116,7 @@ class CC_EXPORT GLRenderer
virtual void EnsureScissorTestDisabled() OVERRIDE;
virtual void CopyCurrentRenderPassToBitmap(
DrawingFrame* frame,
- const CopyRenderPassCallback& callback) OVERRIDE;
+ scoped_ptr<CopyOutputRequest> request) OVERRIDE;
virtual void FinishDrawingQuadList() OVERRIDE;
private:
@@ -193,7 +193,8 @@ class CC_EXPORT GLRenderer
bool InitializeSharedObjects();
void CleanupSharedObjects();
- typedef base::Callback<void(bool success)>
+ typedef base::Callback<void(scoped_ptr<CopyOutputRequest> copy_request,
+ bool success)>
AsyncGetFramebufferPixelsCleanupCallback;
void DoGetFramebufferPixels(
uint8* pixels,
@@ -209,7 +210,7 @@ class CC_EXPORT GLRenderer
void PassOnSkBitmap(
scoped_ptr<SkBitmap> bitmap,
scoped_ptr<SkAutoLockPixels> lock,
- const CopyRenderPassCallback& callback,
+ scoped_ptr<CopyOutputRequest> request,
bool success);
void ReinitializeGrCanvas();
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698