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

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 flag to branch old and new implementation Created 4 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
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..6092a7c32a9cc91e02db293fcbbc614ee28d0670 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 DemandDrawHw_Async(const SyncCompositorDemandDrawHwParams& params);
boliu 2016/08/11 19:23:40 drop the underscore on all these new methods
ojars 2016/08/23 02:15:42 Done.
void DemandDrawHw(const SyncCompositorDemandDrawHwParams& params,
IPC::Message* reply_message);
void SetSharedMemory(
@@ -88,10 +89,14 @@ class SynchronousCompositorProxy
SyncCompositorCommonRendererParams* common_renderer_params);
void SetScroll(const gfx::ScrollOffset& total_scroll_offset);
+ void SwapBuffersHw_Async(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 SendDemandDrawHwReply_Async(cc::CompositorFrame frame,
+ uint32_t output_surface_id);
void DoDemandDrawSw(const SyncCompositorDemandDrawSwParams& params);
void SwapBuffersSw(cc::CompositorFrame frame);
void SendDemandDrawSwReply(bool success,
@@ -107,6 +112,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