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

Unified Diff: ui/aura/mus/mus_context_factory.cc

Issue 2559343003: mus: Rename GpuService to Gpu. (Closed)
Patch Set: . Created 4 years 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/aura/mus/mus_context_factory.h ('k') | ui/views/mus/mus_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/mus_context_factory.cc
diff --git a/ui/aura/mus/mus_context_factory.cc b/ui/aura/mus/mus_context_factory.cc
index d3a5c4d3fa62d0b55a83eeee8d72168a21f2219c..ea173115d2ad64a01e89f571fcdb3b921d2a8b4e 100644
--- a/ui/aura/mus/mus_context_factory.cc
+++ b/ui/aura/mus/mus_context_factory.cc
@@ -6,7 +6,7 @@
#include "base/memory/ptr_util.h"
#include "services/ui/public/cpp/context_provider.h"
-#include "services/ui/public/cpp/gpu/gpu_service.h"
+#include "services/ui/public/cpp/gpu/gpu.h"
#include "ui/aura/mus/window_port_mus.h"
#include "ui/aura/window_tree_host.h"
#include "ui/compositor/reflector.h"
@@ -26,8 +26,8 @@ class FakeReflector : public ui::Reflector {
} // namespace
-MusContextFactory::MusContextFactory(ui::GpuService* gpu_service)
- : next_sink_id_(1u), gpu_service_(gpu_service) {}
+MusContextFactory::MusContextFactory(ui::Gpu* gpu)
+ : next_sink_id_(1u), gpu_(gpu) {}
MusContextFactory::~MusContextFactory() {}
@@ -40,8 +40,8 @@ void MusContextFactory::CreateCompositorFrameSink(
auto compositor_frame_sink = window_port->RequestCompositorFrameSink(
ui::mojom::CompositorFrameSinkType::DEFAULT,
make_scoped_refptr(
- new ui::ContextProvider(gpu_service_->EstablishGpuChannelSync())),
- gpu_service_->gpu_memory_buffer_manager());
+ new ui::ContextProvider(gpu_->EstablishGpuChannelSync())),
+ gpu_->gpu_memory_buffer_manager());
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
@@ -77,7 +77,7 @@ uint32_t MusContextFactory::GetImageTextureTarget(gfx::BufferFormat format,
}
gpu::GpuMemoryBufferManager* MusContextFactory::GetGpuMemoryBufferManager() {
- return gpu_service_->gpu_memory_buffer_manager();
+ return gpu_->gpu_memory_buffer_manager();
}
cc::TaskGraphRunner* MusContextFactory::GetTaskGraphRunner() {
« no previous file with comments | « ui/aura/mus/mus_context_factory.h ('k') | ui/views/mus/mus_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698