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

Unified Diff: ui/views/mus/surface_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/views/mus/surface_context_factory.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/surface_context_factory.cc
diff --git a/ui/views/mus/surface_context_factory.cc b/ui/views/mus/surface_context_factory.cc
index 21cb1db8ad00e5f380b5345e4825b3cf5bfde475..54b9f124a3abdb672858932836d168e2e6f82633 100644
--- a/ui/views/mus/surface_context_factory.cc
+++ b/ui/views/mus/surface_context_factory.cc
@@ -8,7 +8,7 @@
#include "cc/resources/shared_bitmap_manager.h"
#include "cc/surfaces/surface_id_allocator.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 "services/ui/public/cpp/window.h"
#include "services/ui/public/cpp/window_compositor_frame_sink.h"
#include "ui/compositor/reflector.h"
@@ -29,8 +29,8 @@ class FakeReflector : public ui::Reflector {
} // namespace
-SurfaceContextFactory::SurfaceContextFactory(ui::GpuService* gpu_service)
- : next_sink_id_(1u), gpu_service_(gpu_service) {}
+SurfaceContextFactory::SurfaceContextFactory(ui::Gpu* gpu)
+ : next_sink_id_(1u), gpu_(gpu) {}
SurfaceContextFactory::~SurfaceContextFactory() {}
@@ -42,8 +42,8 @@ void SurfaceContextFactory::CreateCompositorFrameSink(
native_widget->compositor_frame_sink_type();
auto compositor_frame_sink = window->RequestCompositorFrameSink(
compositor_frame_sink_type, make_scoped_refptr(new ui::ContextProvider(
- gpu_service_->EstablishGpuChannelSync())),
- gpu_service_->gpu_memory_buffer_manager());
+ gpu_->EstablishGpuChannelSync())),
+ gpu_->gpu_memory_buffer_manager());
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
@@ -80,7 +80,7 @@ uint32_t SurfaceContextFactory::GetImageTextureTarget(gfx::BufferFormat format,
gpu::GpuMemoryBufferManager*
SurfaceContextFactory::GetGpuMemoryBufferManager() {
- return gpu_service_->gpu_memory_buffer_manager();
+ return gpu_->gpu_memory_buffer_manager();
}
cc::TaskGraphRunner* SurfaceContextFactory::GetTaskGraphRunner() {
« no previous file with comments | « ui/views/mus/surface_context_factory.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698