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

Unified Diff: ui/android/delegated_frame_host_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: ui/android/delegated_frame_host_android.cc
diff --git a/ui/android/delegated_frame_host_android.cc b/ui/android/delegated_frame_host_android.cc
index feb9e24abcce19ad057da8d30c979430690f4598..721dfb2b811adbfacc64dcbb91c64998f42982d2 100644
--- a/ui/android/delegated_frame_host_android.cc
+++ b/ui/android/delegated_frame_host_android.cc
@@ -51,11 +51,12 @@ void CopyOutputRequestCallback(
} // namespace
-DelegatedFrameHostAndroid::DelegatedFrameHostAndroid(ui::ViewAndroid* view,
- SkColor background_color,
- Client* client)
- : frame_sink_id_(
- ui::ContextProviderFactory::GetInstance()->AllocateFrameSinkId()),
+DelegatedFrameHostAndroid::DelegatedFrameHostAndroid(
+ ui::ViewAndroid* view,
+ SkColor background_color,
+ Client* client,
+ const cc::FrameSinkId& frame_sink_id)
+ : frame_sink_id_(frame_sink_id),
view_(view),
client_(client),
background_layer_(cc::SolidColorLayer::Create()) {

Powered by Google App Engine
This is Rietveld 408576698