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

Unified Diff: android_webview/browser/render_thread_manager.h

Issue 2347563003: Added FrameFuture class (Closed)
Patch Set: Code review 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: android_webview/browser/render_thread_manager.h
diff --git a/android_webview/browser/render_thread_manager.h b/android_webview/browser/render_thread_manager.h
index b758526d03ad6cd939278437837cd0ac6f039344..e23b2c24841f6bccf650c32b6b49aca632fff085 100644
--- a/android_webview/browser/render_thread_manager.h
+++ b/android_webview/browser/render_thread_manager.h
@@ -47,7 +47,10 @@ class RenderThreadManager : public CompositorFrameConsumer {
void SetCompositorFrameProducer(
CompositorFrameProducer* compositor_frame_producer) override;
void SetScrollOffsetOnUI(gfx::Vector2d scroll_offset) override;
- void SetFrameOnUI(std::unique_ptr<ChildFrame> frame) override;
+ void SetFrameOnUI(
+ std::unique_ptr<ChildFrame> frame,
+ const scoped_refptr<content::SynchronousCompositor::FrameFuture>&
+ frame_future) override;
void InitializeHardwareDrawIfNeededOnUI() override;
ParentCompositorDrawConstraints GetParentDrawConstraintsOnUI() const override;
void SwapReturnedResourcesOnUI(
@@ -78,6 +81,9 @@ class RenderThreadManager : public CompositorFrameConsumer {
private:
RenderThreadManager* render_thread_manager_;
};
+ static std::unique_ptr<ChildFrame> GetSynchronousCompositorFrame(
+ scoped_refptr<content::SynchronousCompositor::FrameFuture> frame_future,
+ std::unique_ptr<ChildFrame> child_frame);
// RT thread method.
void DidInvokeGLProcess();
@@ -108,6 +114,8 @@ class RenderThreadManager : public CompositorFrameConsumer {
bool hardware_renderer_has_frame_;
gfx::Vector2d scroll_offset_;
std::unique_ptr<ChildFrame> child_frame_;
+ const bool async_on_draw_hardware_;
+ scoped_refptr<content::SynchronousCompositor::FrameFuture> frame_future_;
bool inside_hardware_release_;
ParentCompositorDrawConstraints parent_draw_constraints_;
ReturnedResourcesMap returned_resources_map_;
« no previous file with comments | « android_webview/browser/compositor_frame_consumer.h ('k') | android_webview/browser/render_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698