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

Unified Diff: android_webview/browser/compositor_frame_consumer.h

Issue 1943963003: WIP Handle AwContents needing multiple live functors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 4542d2aa4c421d58af75015c64a6a312222c67fb..ce9cec152440d692798ba7b501057f9abbddada6 100644
--- a/android_webview/browser/compositor_frame_consumer.h
+++ b/android_webview/browser/compositor_frame_consumer.h
@@ -27,8 +27,16 @@ class CompositorFrameConsumer {
};
using ReturnedResourcesMap = std::map<uint32_t, ReturnedResources>;
+ // A CompositorFrameConsumer may be registered with at most one
+ // CompositorFrameProducer. The producer is responsible for
+ // managing the relationship with its consumers. In order to
+ // register a consumer with a new producer, the current producer
+ // must first unregister the consumer, and call
+ // SetCompositorProducer(nullptr).
virtual void SetCompositorFrameProducer(
CompositorFrameProducer* compositor_frame_producer) = 0;
+ virtual CompositorFrameProducer* GetCompositorFrameProducer() = 0;
boliu 2016/05/05 14:09:34 make sure this is removed when the caller is remov
Tobias Sargeant 2016/05/05 19:06:46 Done.
+
virtual void SetScrollOffsetOnUI(gfx::Vector2d scroll_offset) = 0;
virtual void SetFrameOnUI(std::unique_ptr<ChildFrame> frame) = 0;
virtual void InitializeHardwareDrawIfNeededOnUI() = 0;

Powered by Google App Engine
This is Rietveld 408576698