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

Unified Diff: content/browser/compositor/surface_utils.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
Index: content/browser/compositor/surface_utils.cc
diff --git a/content/browser/compositor/surface_utils.cc b/content/browser/compositor/surface_utils.cc
index 6632d16f460b6bfd9bd81911d64ffa329907a32e..a0d1b02a9053c8f08f4b84f628817df9d355a026 100644
--- a/content/browser/compositor/surface_utils.cc
+++ b/content/browser/compositor/surface_utils.cc
@@ -19,7 +19,7 @@
#include "ui/gfx/geometry/rect.h"
#if defined(OS_ANDROID)
-#include "content/browser/renderer_host/context_provider_factory_impl_android.h"
+#include "content/browser/renderer_host/compositor_impl_android.h"
#else
#include "content/browser/compositor/image_transport_factory.h"
#include "ui/compositor/compositor.h" // nogncheck
@@ -160,7 +160,7 @@ namespace content {
cc::FrameSinkId AllocateFrameSinkId() {
#if defined(OS_ANDROID)
- return ContextProviderFactoryImpl::GetInstance()->AllocateFrameSinkId();
+ return CompositorImpl::AllocateFrameSinkId();
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
return factory->GetContextFactoryPrivate()->AllocateFrameSinkId();
@@ -169,7 +169,7 @@ cc::FrameSinkId AllocateFrameSinkId() {
cc::SurfaceManager* GetSurfaceManager() {
#if defined(OS_ANDROID)
- return ContextProviderFactoryImpl::GetInstance()->GetSurfaceManager();
+ return CompositorImpl::GetSurfaceManager();
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
if (factory == NULL)
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698