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

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: Removed unnecessary return statement 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
« no previous file with comments | « android_webview/common/aw_switches.cc ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2587de6f4c44d04be7118e4eb03bdd7262ecb32f..9cd39a5f654645b828f72c1dfd2687f5a04f8e6d 100644
--- a/content/browser/android/synchronous_compositor_host.h
+++ b/content/browser/android/synchronous_compositor_host.h
@@ -58,6 +58,10 @@ 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) override;
bool DemandDrawSw(SkCanvas* canvas) override;
void ReturnResources(uint32_t output_surface_id,
const cc::ReturnedResourceArray& resources) override;
@@ -91,6 +95,10 @@ class SynchronousCompositorHost : public SynchronousCompositor {
bool DemandDrawSwInProc(SkCanvas* canvas);
void SetSoftwareDrawSharedMemoryIfNeeded(size_t stride, size_t buffer_size);
void SendZeroMemory();
+ SynchronousCompositor::Frame ProcessHardwareFrame(
+ uint32_t output_surface_id,
+ cc::CompositorFrame compositor_frame);
+ bool DemandDrawHwReceiveFrame(const IPC::Message& message);
RenderWidgetHostViewAndroid* const rwhva_;
SynchronousCompositorClient* const client_;
« no previous file with comments | « android_webview/common/aw_switches.cc ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698