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

Unified Diff: ui/android/delegated_frame_host_android.cc

Issue 2686243002: content/ui[Android]: Remove ContextProviderFactory. (Closed)
Patch Set: more rebase 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
« no previous file with comments | « ui/android/delegated_frame_host_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b2b73ce91b7691f2e357b6eb03f2ebfa77122922..3ec0be7e9db57afa4c25c67ef792eaeddeaaaa23 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.h"
#include "cc/surfaces/surface_id.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,14 +52,16 @@ void CopyOutputRequestCallback(
DelegatedFrameHostAndroid::DelegatedFrameHostAndroid(
ui::ViewAndroid* view,
+ cc::SurfaceManager* surface_manager,
Client* client,
const cc::FrameSinkId& frame_sink_id)
- : frame_sink_id_(frame_sink_id), view_(view), client_(client) {
+ : frame_sink_id_(frame_sink_id),
+ view_(view),
+ surface_manager_(surface_manager),
+ client_(client) {
DCHECK(view_);
DCHECK(client_);
- surface_manager_ =
- ui::ContextProviderFactory::GetInstance()->GetSurfaceManager();
local_surface_id_allocator_.reset(new cc::LocalSurfaceIdAllocator());
surface_manager_->RegisterFrameSinkId(frame_sink_id_);
surface_factory_ = base::WrapUnique(
« no previous file with comments | « 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