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

Unified Diff: content/public/browser/android/synchronous_compositor.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
Index: content/public/browser/android/synchronous_compositor.h
diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h
index 0b0b7ebccf3f7ecab4ba94fa5be1b291abdeb264..4231a2d08caf8643ce188d93c4744e9d93e33634 100644
--- a/content/public/browser/android/synchronous_compositor.h
+++ b/content/public/browser/android/synchronous_compositor.h
@@ -68,6 +68,14 @@ class CONTENT_EXPORT SynchronousCompositor {
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) = 0;
+ // Same as DemandDrawHw, but uses asynchronous IPC messages. Calls
+ // SynchronousCompositorClient::OnDrawHardwareProcessFrame to return the
+ // frame.
+ virtual void DemandDrawHwAsync(
+ const gfx::Size& viewport_size,
+ const gfx::Rect& viewport_rect_for_tile_priority,
+ const gfx::Transform& transform_for_tile_priority) = 0;
+
// For delegated rendering, return resources from parent compositor to this.
// Note that all resources must be returned before ReleaseHwDraw.
virtual void ReturnResources(uint32_t output_surface_id,
« no previous file with comments | « content/common/android/sync_compositor_messages.h ('k') | content/public/browser/android/synchronous_compositor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698