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

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

Issue 2174203002: OnDrawHardware() implementation with async messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added DemandDrawHwAsync to TestSynchronousCompositor Created 4 years, 3 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 07d3d702c8c3e1f0e28a4be41c50ce7dcd4d0db7..07a651e6cd22a889c6d0d627fefd326832521634 100644
--- a/content/renderer/android/synchronous_compositor_proxy.h
+++ b/content/renderer/android/synchronous_compositor_proxy.h
@@ -73,6 +73,7 @@ class SynchronousCompositorProxy
// IPC handlers.
void OnComputeScroll(base::TimeTicks animation_time);
+ void DemandDrawHwAsync(const SyncCompositorDemandDrawHwParams& params);
void DemandDrawHw(const SyncCompositorDemandDrawHwParams& params,
IPC::Message* reply_message);
void SetSharedMemory(
@@ -88,16 +89,22 @@ class SynchronousCompositorProxy
SyncCompositorCommonRendererParams* common_renderer_params);
void SetScroll(const gfx::ScrollOffset& total_scroll_offset);
+ void SwapBuffersHwAsync(uint32_t output_surface_id,
+ cc::CompositorFrame frame);
void SwapBuffersHw(uint32_t output_surface_id, cc::CompositorFrame frame);
void SendDemandDrawHwReply(cc::CompositorFrame frame,
uint32_t output_surface_id,
IPC::Message* reply_message);
+ void SendDemandDrawHwReplyAsync(cc::CompositorFrame frame,
+ uint32_t output_surface_id);
void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params);
void SwapBuffersSw(cc::CompositorFrame frame);
void SendDemandDrawSwReply(bool success,
cc::CompositorFrame frame,
IPC::Message* reply_message);
void SendAsyncRendererStateIfNeeded();
+ void DoDemandDrawHw(const SyncCompositorDemandDrawHwParams& params,
+ IPC::Message* reply_message);
const int routing_id_;
IPC::Sender* const sender_;
@@ -107,6 +114,7 @@ class SynchronousCompositorProxy
bool inside_receive_;
IPC::Message* hardware_draw_reply_;
IPC::Message* software_draw_reply_;
+ bool hardware_draw_reply_async_;
// From browser.
std::unique_ptr<SharedMemoryWithSize> software_draw_shm_;

Powered by Google App Engine
This is Rietveld 408576698