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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2487713002: Resolves layering violation in SynchronousCompositorHost creation (Closed)
Patch Set: checking synchronous_compositor_client_ Created 4 years, 1 month 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/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 10f335fe030b39206231da383cf90b5ffeed12ea..e8754e0b7833d7754a0c98491bd665672806793c 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -62,6 +62,7 @@ class OverscrollControllerAndroid;
class RenderWidgetHost;
class RenderWidgetHostImpl;
class SynchronousCompositorHost;
+class SynchronousCompositorClient;
struct NativeWebKeyboardEvent;
struct TextInputState;
@@ -237,6 +238,12 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata);
+ void SetSynchronousCompositorClient(SynchronousCompositorClient* client);
+
+ SynchronousCompositorClient* synchronous_compositor_client() const {
+ return synchronous_compositor_client_;
+ }
+
static void OnContextLost();
private:
@@ -351,6 +358,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
const bool using_browser_compositor_;
std::unique_ptr<SynchronousCompositorHost> sync_compositor_;
+ SynchronousCompositorClient* synchronous_compositor_client_;
+
std::unique_ptr<DelegatedFrameEvictor> frame_evictor_;
size_t locks_on_frame_count_;

Powered by Google App Engine
This is Rietveld 408576698