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

Unified Diff: cc/quads/render_pass.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/software_renderer.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.h
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index 1fb011a47458dd258c86e17a0a7052be47543cb9..4097cbe811134fdb64a8f3690feeec69935fe78d 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -6,7 +6,6 @@
#define CC_QUADS_RENDER_PASS_H_
#include <utility>
-#include <vector>
#include "base/basictypes.h"
#include "base/callback.h"
@@ -26,6 +25,7 @@
namespace cc {
class DrawQuad;
+class CopyOutputRequest;
class SharedQuadState;
// A list of DrawQuad objects, sorted internally in front-to-back order.
@@ -103,9 +103,7 @@ class CC_EXPORT RenderPass {
// contents as a bitmap, and give a copy of the bitmap to each callback in
// this list. This property should not be serialized between compositors, as
// it only makes sense in the root compositor.
- typedef base::Callback<void(scoped_ptr<SkBitmap>)>
- RequestCopyAsBitmapCallback;
- std::vector<RequestCopyAsBitmapCallback> copy_callbacks;
+ ScopedPtrVector<CopyOutputRequest> copy_requests;
QuadList quad_list;
SharedQuadStateList shared_quad_state_list;
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698