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

Unified Diff: content/renderer/android/synchronous_compositor_proxy.h

Issue 2458743002: Switching to base::Optional<CompositorFrame> in Android's synchronous compositor IPC messages (Closed)
Patch Set: Style Created 4 years, 2 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
Index: content/renderer/android/synchronous_compositor_proxy.h
diff --git a/content/renderer/android/synchronous_compositor_proxy.h b/content/renderer/android/synchronous_compositor_proxy.h
index 7c18a5380958f01ab66d467ce904ea51e42c34b3..361f42fd6f08b957623a2ac8fa191aa9bf87a4fd 100644
--- a/content/renderer/android/synchronous_compositor_proxy.h
+++ b/content/renderer/android/synchronous_compositor_proxy.h
@@ -9,6 +9,7 @@
#include <stdint.h>
#include "base/macros.h"
+#include "base/optional.h"
#include "content/common/input/input_event_ack_state.h"
#include "content/renderer/android/synchronous_compositor_frame_sink.h"
#include "ui/events/blink/synchronous_input_handler_proxy.h"
@@ -93,10 +94,10 @@ class SynchronousCompositorProxy : public ui::SynchronousInputHandler,
cc::CompositorFrame frame);
void SubmitCompositorFrameHw(uint32_t compositor_frame_sink_id,
cc::CompositorFrame frame);
- void SendDemandDrawHwReply(cc::CompositorFrame frame,
+ void SendDemandDrawHwReply(base::Optional<cc::CompositorFrame> frame,
uint32_t compositor_frame_sink_id,
IPC::Message* reply_message);
- void SendDemandDrawHwReplyAsync(cc::CompositorFrame frame,
+ void SendDemandDrawHwReplyAsync(base::Optional<cc::CompositorFrame> frame,
uint32_t compositor_frame_sink_id);
void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params);
void SubmitCompositorFrameSw(cc::CompositorFrame frame);
« no previous file with comments | « content/common/android/sync_compositor_messages.h ('k') | content/renderer/android/synchronous_compositor_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698