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

Unified Diff: content/browser/web_contents/web_contents_android.h

Issue 1385543003: Have RenderWidgetHostViewAndroid own sync compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 2 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/browser/web_contents/web_contents_android.h
diff --git a/content/browser/web_contents/web_contents_android.h b/content/browser/web_contents/web_contents_android.h
index 5088d97b6de16be23ce92a5653556c81f127668d..29393ebd9761c2cefdb0b24f2e2ab2fc4b092a7b 100644
--- a/content/browser/web_contents/web_contents_android.h
+++ b/content/browser/web_contents/web_contents_android.h
@@ -19,6 +19,7 @@
namespace content {
+class SynchronousCompositorClient;
class WebContents;
// Android wrapper around WebContents that provides safer passage from java and
@@ -119,12 +120,20 @@ class CONTENT_EXPORT WebContentsAndroid
base::android::ScopedJavaLocalRef<jstring> GetEncoding(JNIEnv* env,
jobject obj) const;
+ void set_synchronous_compositor_client(SynchronousCompositorClient* client) {
+ synchronous_compositor_client_ = client;
+ }
+ SynchronousCompositorClient* synchronous_compositor_client() const {
+ return synchronous_compositor_client_;
+ }
+
private:
RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
WebContents* web_contents_;
NavigationControllerAndroid navigation_controller_;
base::android::ScopedJavaGlobalRef<jobject> obj_;
+ SynchronousCompositorClient* synchronous_compositor_client_;
base::WeakPtrFactory<WebContentsAndroid> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698