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

Unified Diff: cc/quads/render_pass.h

Issue 14060015: cc: Async readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 bfd0d831a8c5b9bd82053a1a91ca0afa68f5c08b..1fb011a47458dd258c86e17a0a7052be47543cb9 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -9,6 +9,8 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
+#include "base/hash_tables.h"
#include "cc/base/cc_export.h"
#include "cc/base/hash_pair.h"
#include "cc/base/scoped_ptr_hash_map.h"
@@ -97,6 +99,14 @@ class CC_EXPORT RenderPass {
// complete, since they are occluded.
bool has_occlusion_from_outside_target_surface;
+ // If non-empty, the renderer should produce a copy of the render pass'
+ // 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;
+
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