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

Unified Diff: ui/android/delegated_frame_host_android.cc

Issue 2686243002: content/ui[Android]: Remove ContextProviderFactory. (Closed)
Patch Set: Addressed comments. Created 3 years, 10 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 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(
« tools/metrics/histograms/histograms.xml ('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