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

Unified Diff: services/ui/public/cpp/gpu/gpu_service.cc

Issue 2516943002: mus-gpu: Fix a couple of issues with MojoGpuMemoryBufferManager. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | services/ui/public/cpp/gpu/mojo_gpu_memory_buffer_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu/gpu_service.cc
diff --git a/services/ui/public/cpp/gpu/gpu_service.cc b/services/ui/public/cpp/gpu/gpu_service.cc
index 45ce4ca04957530b31ceff9c1c62772bc6af2237..8079804525a9f718bfab74bc22e624a4b56b7bb1 100644
--- a/services/ui/public/cpp/gpu/gpu_service.cc
+++ b/services/ui/public/cpp/gpu/gpu_service.cc
@@ -24,10 +24,13 @@ GpuService::GpuService(service_manager::Connector* connector,
io_task_runner_(std::move(task_runner)),
connector_(connector),
shutdown_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
- base::WaitableEvent::InitialState::NOT_SIGNALED),
- gpu_memory_buffer_manager_(new MojoGpuMemoryBufferManager(connector_)) {
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {
DCHECK(main_task_runner_);
DCHECK(connector_);
+ mojom::GpuServicePtr gpu_service_ptr;
+ connector_->ConnectToInterface(ui::mojom::kServiceName, &gpu_service_ptr);
+ gpu_memory_buffer_manager_ =
+ base::MakeUnique<MojoGpuMemoryBufferManager>(std::move(gpu_service_ptr));
if (!io_task_runner_) {
io_thread_.reset(new base::Thread("GPUIOThread"));
base::Thread::Options thread_options(base::MessageLoop::TYPE_IO, 0);
« no previous file with comments | « no previous file | services/ui/public/cpp/gpu/mojo_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698