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 2f31c5a1b8955638d8f28565bc91611eacdc8bb1..724ba80075436187149c961009d39fcd5c8aa4b8 100644 |
--- a/ui/android/delegated_frame_host_android.cc |
+++ b/ui/android/delegated_frame_host_android.cc |
@@ -15,7 +15,6 @@ |
#include "cc/surfaces/surface_id.h" |
#include "cc/surfaces/surface_id_allocator.h" |
#include "cc/surfaces/surface_manager.h" |
-#include "ui/android/context_provider_factory.h" |
#include "ui/android/view_android.h" |
#include "ui/android/window_android_compositor.h" |
#include "ui/display/display.h" |
@@ -53,18 +52,18 @@ void CopyOutputRequestCallback( |
DelegatedFrameHostAndroid::DelegatedFrameHostAndroid( |
ui::ViewAndroid* view, |
+ cc::SurfaceManager* surface_manager, |
SkColor background_color, |
Client* client, |
const cc::FrameSinkId& frame_sink_id) |
: frame_sink_id_(frame_sink_id), |
view_(view), |
+ surface_manager_(surface_manager), |
client_(client), |
background_layer_(cc::SolidColorLayer::Create()) { |
DCHECK(view_); |
DCHECK(client_); |
- surface_manager_ = |
- ui::ContextProviderFactory::GetInstance()->GetSurfaceManager(); |
surface_id_allocator_.reset(new cc::SurfaceIdAllocator()); |
surface_manager_->RegisterFrameSinkId(frame_sink_id_); |
surface_factory_ = base::WrapUnique( |