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

Unified Diff: services/ui/ws/gpu_host.cc

Issue 2627993002: mus-gpu: Include GpuPreferences when requesting for GpuService. (Closed)
Patch Set: Created 3 years, 11 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 | « services/ui/gpu/interfaces/gpu_main.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/gpu_host.cc
diff --git a/services/ui/ws/gpu_host.cc b/services/ui/ws/gpu_host.cc
index 783049423e784a1d3c0d327e474f33abd39a7ca5..bfa771d2719096c64545be4756218e0c0cb422b4 100644
--- a/services/ui/ws/gpu_host.cc
+++ b/services/ui/ws/gpu_host.cc
@@ -107,8 +107,13 @@ GpuHost::GpuHost(GpuHostDelegate* delegate)
// connector->BindInterface("gpu", &gpu_main_);
gpu_main_impl_ = base::MakeUnique<GpuMain>(MakeRequest(&gpu_main_));
gpu_main_impl_->OnStart();
+
+ // TODO(sad): Correctly initialize gpu::GpuPreferences (like it is initialized
+ // in GpuProcessHost::Init()).
+ gpu::GpuPreferences preferences;
gpu_main_->CreateGpuService(MakeRequest(&gpu_service_),
- gpu_host_binding_.CreateInterfacePtrAndBind());
+ gpu_host_binding_.CreateInterfacePtrAndBind(),
+ preferences);
gpu_memory_buffer_manager_ = base::MakeUnique<ServerGpuMemoryBufferManager>(
gpu_service_.get(), next_client_id_++);
}
« no previous file with comments | « services/ui/gpu/interfaces/gpu_main.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698