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

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

Issue 2656893003: Let DelegateFrameHost in Mac and Android use correct FrameSinkId during creation (Closed)
Patch Set: nits Created 3 years, 11 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/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 2ee46f4f425a642b7e6f5a7263b594481261f35d..b874a1d8e0cd394fe69a40994de45fa59a1f2ec7 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -449,8 +449,11 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
// layer is managed by the DelegatedFrameHost.
view_.SetLayer(cc::Layer::Create());
if (using_browser_compositor_) {
+ cc::FrameSinkId frame_sink_id = cc::FrameSinkId(
+ base::checked_cast<uint32_t>(host_->GetProcess()->GetID()),
boliu 2017/01/26 00:14:39 these numbers are ok as the "client id" and "sink
xlai (Olivia) 2017/01/26 15:56:11 Yes, clientId+SinkId is the frame sink id. Again t
Fady Samuel 2017/01/26 16:06:36 The FrameSinkId uniquely identifies a CompositorFr
boliu 2017/01/26 19:24:45 I was mostly asking for correctness. So for rende
Fady Samuel 2017/01/26 20:15:22 Good catch on Android, we don't AllocateFrameSinkI
xlai (Olivia) 2017/01/26 20:50:21 I just made a fix to ContextProviderFactory in And
+ base::checked_cast<uint32_t>(host_->GetRoutingID()));
delegated_frame_host_.reset(new ui::DelegatedFrameHostAndroid(
- &view_, cached_background_color_, this));
+ &view_, cached_background_color_, this, frame_sink_id));
}
host_->SetView(this);

Powered by Google App Engine
This is Rietveld 408576698