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

Unified Diff: content/browser/compositor/surface_utils.cc

Issue 2190033002: content: Add ContextProviderFactory to create a render ContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove display_ DCHECK. Created 4 years, 4 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 507c063f713e9371892469b214179eb63384c9b1..d9e51184c8a808c41bb715edbe185b9485a8cfb6 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/compositor_impl_android.h"
+#include "content/browser/renderer_host/context_provider_factory_impl_android.h"
#else
#include "content/browser/compositor/image_transport_factory.h"
#include "ui/compositor/compositor.h" // nogncheck
@@ -160,7 +160,7 @@ namespace content {
uint32_t AllocateSurfaceClientId() {
#if defined(OS_ANDROID)
- return CompositorImpl::AllocateSurfaceClientId();
+ return ContextProviderFactoryImpl::GetInstance()->AllocateSurfaceClientId();
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
return factory->GetContextFactory()->AllocateSurfaceClientId();
@@ -169,7 +169,7 @@ uint32_t AllocateSurfaceClientId() {
cc::SurfaceManager* GetSurfaceManager() {
#if defined(OS_ANDROID)
- return CompositorImpl::GetSurfaceManager();
+ return ContextProviderFactoryImpl::GetInstance()->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