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

Unified Diff: content/browser/android/synchronous_compositor_host.h

Issue 2174203002: OnDrawHardware() implementation with async messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented suggestions from previous code review 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/browser/android/synchronous_compositor_host.h
diff --git a/content/browser/android/synchronous_compositor_host.h b/content/browser/android/synchronous_compositor_host.h
index caf0bc25de05021e4406ed875fb9e868e4f74a07..58d6c5c0e1310ee6f0fdae5cf537dbdf2731d516 100644
--- a/content/browser/android/synchronous_compositor_host.h
+++ b/content/browser/android/synchronous_compositor_host.h
@@ -58,6 +58,12 @@ class SynchronousCompositorHost : public SynchronousCompositor {
const gfx::Size& viewport_size,
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) override;
+ void DemandDrawHwAsync(const gfx::Size& viewport_size,
+ const gfx::Rect& viewport_rect_for_tile_priority,
+ const gfx::Transform& transform_for_tile_priority);
boliu 2016/08/23 02:39:52 override surprised compiler didn't warn about thi
ojars 2016/08/23 21:58:43 Done.
+ SynchronousCompositor::Frame DemandDrawHwHelper(
boliu 2016/08/23 02:39:52 helper can be private?
ojars 2016/08/23 21:58:43 Done.
+ uint32_t output_surface_id,
+ const cc::CompositorFrame& compositor_frame);
bool DemandDrawSw(SkCanvas* canvas) override;
void ReturnResources(uint32_t output_surface_id,
const cc::ReturnedResourceArray& resources) override;
@@ -89,6 +95,8 @@ class SynchronousCompositorHost : public SynchronousCompositor {
bool DemandDrawSwInProc(SkCanvas* canvas);
void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size);
void SendZeroMemory();
+ void DemandDrawHwReceiveFrame(uint32_t output_surface_id,
+ const cc::CompositorFrame& compositor_frame);
RenderWidgetHostViewAndroid* const rwhva_;
SynchronousCompositorClient* const client_;

Powered by Google App Engine
This is Rietveld 408576698