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

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: Further changes. Created 4 years, 5 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 f5e6d2b519d64639cba424a7e7160222ee1edcfd..6bcf5626c04ad358f8a372f800c9341265febd2d 100644
--- a/content/browser/android/synchronous_compositor_host.h
+++ b/content/browser/android/synchronous_compositor_host.h
@@ -56,6 +56,13 @@ class SynchronousCompositorHost : public SynchronousCompositor {
const gfx::Rect& clip,
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) override;
+ SynchronousCompositor::Frame DemandDrawHw_Sync(
+ const gfx::Size& surface_size,
+ const gfx::Transform& transform,
+ const gfx::Rect& viewport,
+ const gfx::Rect& clip,
+ const gfx::Rect& viewport_rect_for_tile_priority,
+ const gfx::Transform& transform_for_tile_priority);
bool DemandDrawSw(SkCanvas* canvas) override;
void ReturnResources(uint32_t output_surface_id,
const cc::ReturnedResourceArray& resources) override;
@@ -68,6 +75,8 @@ class SynchronousCompositorHost : public SynchronousCompositor {
void DidOverscroll(const DidOverscrollParams& over_scroll_params);
void DidSendBeginFrame();
bool OnMessageReceived(const IPC::Message& message);
+ void DemandDrawHwReceiveFrame(uint32_t output_surface_id,
+ const cc::CompositorFrame&);
private:
class ScopedSendZeroMemory;
@@ -92,6 +101,8 @@ class SynchronousCompositorHost : public SynchronousCompositor {
const int routing_id_;
IPC::Sender* const sender_;
const bool use_in_process_zero_copy_software_draw_;
+ // bool did_receive_first_frame_synchronously_;
+ uint32_t sync_call_count_;
size_t bytes_limit_;
std::unique_ptr<SharedMemoryWithSize> software_draw_shm_;

Powered by Google App Engine
This is Rietveld 408576698