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

Unified Diff: android_webview/browser/compositor_frame_consumer.h

Issue 2347563003: Added FrameFuture class (Closed)
Patch Set: Finished, working 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/compositor_frame_consumer.h
diff --git a/android_webview/browser/compositor_frame_consumer.h b/android_webview/browser/compositor_frame_consumer.h
index 627aa73bce2eabcfd243d7979a249d69fb313f98..ce8d0970b5f309f15a6127d84ed4137b3f069d65 100644
--- a/android_webview/browser/compositor_frame_consumer.h
+++ b/android_webview/browser/compositor_frame_consumer.h
@@ -10,6 +10,7 @@
#include "android_webview/browser/compositor_id.h"
#include "android_webview/browser/parent_compositor_draw_constraints.h"
#include "cc/resources/returned_resource.h"
+#include "content/public/browser/android/synchronous_compositor.h"
#include "ui/gfx/geometry/vector2d.h"
namespace android_webview {
@@ -40,6 +41,9 @@ class CompositorFrameConsumer {
CompositorFrameProducer* compositor_frame_producer) = 0;
virtual void SetScrollOffsetOnUI(gfx::Vector2d scroll_offset) = 0;
virtual void SetFrameOnUI(std::unique_ptr<ChildFrame> frame) = 0;
+ virtual void SetFrameFutureOnUI(
+ const scoped_refptr<content::SynchronousCompositor::FrameFuture>&
+ frame_future);
virtual void InitializeHardwareDrawIfNeededOnUI() = 0;
virtual ParentCompositorDrawConstraints GetParentDrawConstraintsOnUI()
const = 0;

Powered by Google App Engine
This is Rietveld 408576698