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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2967963002: gpu: Reduce of BrowserGpuChannelHostFactory. (Closed)
Patch Set: tot merge Created 3 years, 5 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/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 6e3638252eae308300a01a2b2e6170ee1671a59f..0cd96679ff866738d6e58c61692532abf405c5cc 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -51,8 +51,8 @@
#include "components/viz/service/display_embedder/compositor_overlay_candidate_validator_android.h"
#include "components/viz/service/display_embedder/server_shared_bitmap_manager.h"
#include "components/viz/service/frame_sinks/frame_sink_manager_impl.h"
+#include "content/browser/browser_main_loop.h"
#include "content/browser/compositor/surface_utils.h"
-#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
#include "content/browser/gpu/compositor_util.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
@@ -411,9 +411,11 @@ void Compositor::CreateContextProvider(
gpu::SharedMemoryLimits shared_memory_limits,
ContextProviderCallback callback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- BrowserGpuChannelHostFactory::instance()->EstablishGpuChannel(
- base::Bind(&CreateContextProviderAfterGpuChannelEstablished, handle,
- attributes, shared_memory_limits, callback));
+ BrowserMainLoop::GetInstance()
+ ->gpu_channel_establish_factory()
+ ->EstablishGpuChannel(
+ base::Bind(&CreateContextProviderAfterGpuChannelEstablished, handle,
+ attributes, shared_memory_limits, callback));
}
// static
@@ -687,8 +689,10 @@ void CompositorImpl::HandlePendingLayerTreeFrameSinkRequest() {
this, &CompositorImpl::OnGpuChannelTimeout);
DCHECK(surface_handle_ != gpu::kNullSurfaceHandle);
- BrowserGpuChannelHostFactory::instance()->EstablishGpuChannel(base::Bind(
- &CompositorImpl::OnGpuChannelEstablished, weak_factory_.GetWeakPtr()));
+ BrowserMainLoop::GetInstance()
+ ->gpu_channel_establish_factory()
+ ->EstablishGpuChannel(base::Bind(&CompositorImpl::OnGpuChannelEstablished,
+ weak_factory_.GetWeakPtr()));
}
void CompositorImpl::OnGpuChannelTimeout() {
« no previous file with comments | « content/browser/gpu/gpu_ipc_browsertests.cc ('k') | content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698