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

Unified Diff: content/public/browser/android/synchronous_compositor_client.h

Issue 2036023002: Rewire Android WebView's compositor changed signal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use web_contents_ Created 4 years, 6 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/public/browser/android/synchronous_compositor_client.h
diff --git a/content/public/browser/android/synchronous_compositor_client.h b/content/public/browser/android/synchronous_compositor_client.h
index 0fbd2a782e510740c49d348f4230041797b2c9cf..f4343a5c09270680b5e0c5078cf7a9ebd98ff256 100644
--- a/content/public/browser/android/synchronous_compositor_client.h
+++ b/content/public/browser/android/synchronous_compositor_client.h
@@ -18,19 +18,19 @@ class SynchronousCompositor;
class SynchronousCompositorClient {
public:
// Indication to the client that |compositor| is now initialized on the
- // compositor thread, and open for business.
- virtual void DidInitializeCompositor(SynchronousCompositor* compositor) = 0;
+ // compositor thread, and open for business. |process_id| and |routing_id|
+ // belong to the RVH that owns the compositor.
+ virtual void DidInitializeCompositor(SynchronousCompositor* compositor,
+ int process_id,
+ int routing_id) = 0;
// Indication to the client that |compositor| is going out of scope, and
// must not be accessed within or after this call.
// NOTE if the client goes away before the compositor it must call
// SynchronousCompositor::SetClient(nullptr) to release the back pointer.
- virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0;
-
- // Indication to the client that |compositor| just became the current one.
- // The compositor has to be initialized first. An initialized compositor may
- // not become current immediately.
- virtual void DidBecomeCurrent(SynchronousCompositor* compositor) = 0;
+ virtual void DidDestroyCompositor(SynchronousCompositor* compositor,
+ int process_id,
+ int routing_id) = 0;
// See LayerScrollOffsetDelegate for details.
virtual void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset,

Powered by Google App Engine
This is Rietveld 408576698