Chromium Code Reviews| 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; |