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

Unified Diff: cc/output/copy_output_request.h

Issue 2676353002: MojoCompositorFrameSinkPrivate should support copy requests (Closed)
Patch Set: Cleanup Created 3 years, 10 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/ipc/mojo_compositor_frame_sink.mojom ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/copy_output_request.h
diff --git a/cc/output/copy_output_request.h b/cc/output/copy_output_request.h
index 112daa40dcefe08ad0b4c567badf096b378e2778..8d8c0621f849a41b726de1b996dcbb109ab5ed25 100644
--- a/cc/output/copy_output_request.h
+++ b/cc/output/copy_output_request.h
@@ -74,6 +74,13 @@ class CC_EXPORT CopyOutputRequest {
bool has_texture_mailbox() const { return texture_mailbox_.has_value(); }
const TextureMailbox& texture_mailbox() const { return *texture_mailbox_; }
+ void set_result_callback(CopyOutputRequestCallback result_callback) {
Fady Samuel 2017/02/15 13:32:20 Is this still necessary? Thanks!
Saman Sami 2017/02/15 22:53:56 Not after my other CL lands. I'll get rid of it.
+ result_callback_ = result_callback;
+ }
+ const CopyOutputRequestCallback& result_callback() {
+ return result_callback_;
+ }
+
void SendEmptyResult();
void SendBitmapResult(std::unique_ptr<SkBitmap> bitmap);
void SendTextureResult(
« no previous file with comments | « cc/ipc/mojo_compositor_frame_sink.mojom ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698