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

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

Issue 2247173002: gpu: Use GpuMemoryBufferManager from GpuService when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus-gpu-memory-buffer-manager
Patch Set: 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/gpu/browser_gpu_channel_host_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index 7a2f6f4c45e8b55ac0443caa2707a085e42ce485..243f6619bf78a56f33bb7a226530587b2888f7f7 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -488,7 +488,7 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
context_provider, data->surface_handle, compositor->vsync_manager(),
begin_frame_source.get(),
CreateOverlayCandidateValidator(compositor->widget()),
- BrowserGpuMemoryBufferManager::current()));
+ GetGpuMemoryBufferManager()));
#else
display_output_surface =
base::WrapUnique(new GpuSurfacelessBrowserCompositorOutputSurface(
@@ -496,7 +496,7 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
compositor->vsync_manager(), begin_frame_source.get(),
CreateOverlayCandidateValidator(compositor->widget()),
GL_TEXTURE_2D, GL_RGB, ui::DisplaySnapshot::PrimaryFormat(),
- BrowserGpuMemoryBufferManager::current()));
+ GetGpuMemoryBufferManager()));
#endif
} else {
std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
@@ -544,7 +544,7 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
// The Display owns and uses the |display_output_surface| created above.
data->display = base::MakeUnique<cc::Display>(
HostSharedBitmapManager::current(),
- BrowserGpuMemoryBufferManager::current(),
+ GetGpuMemoryBufferManager(),
compositor->GetRendererSettings(), std::move(begin_frame_source),
std::move(display_output_surface), std::move(scheduler),
base::MakeUnique<cc::TextureMailboxDeleter>(
@@ -643,7 +643,7 @@ cc::SharedBitmapManager* GpuProcessTransportFactory::GetSharedBitmapManager() {
gpu::GpuMemoryBufferManager*
GpuProcessTransportFactory::GetGpuMemoryBufferManager() {
- return BrowserGpuMemoryBufferManager::current();
+ return gpu_channel_factory_->GetGpuMemoryBufferManager();
}
cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() {
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/gpu/browser_gpu_channel_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698