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

Unified Diff: cc/surfaces/surface.h

Issue 509193002: Allow requesting a copy of a surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | cc/surfaces/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface.h
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index b12c34f911fee6367d78c0041f30e1144970a520..3d48196fc25076ea4448864709ebf3e68e5dcff8 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -15,6 +15,7 @@
namespace cc {
class CompositorFrame;
+class CopyOutputRequest;
class SurfaceManager;
class SurfaceFactory;
class SurfaceResourceHolder;
@@ -29,6 +30,7 @@ class CC_SURFACES_EXPORT Surface {
void QueueFrame(scoped_ptr<CompositorFrame> frame,
const base::Closure& draw_callback);
+ void RequestCopyOfOutput(scoped_ptr<CopyOutputRequest> copy_request);
// Returns the most recent frame that is eligible to be rendered.
const CompositorFrame* GetEligibleFrame();
« no previous file with comments | « no previous file | cc/surfaces/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698