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

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: Android 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..bd013313b1a5174f29bb1405df45eb9d2e358ab8 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,
+ cc::FrameSinkId frame_sink_id)
Fady Samuel 2017/01/25 23:23:48 const cc::FrameSinkId&
xlai (Olivia) 2017/01/25 23:43:26 Done here and elsewhere
+ : frame_sink_id_(frame_sink_id),
view_(view),
client_(client),
background_layer_(cc::SolidColorLayer::Create()) {
« ui/android/delegated_frame_host_android.h ('K') | « ui/android/delegated_frame_host_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698