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

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

Issue 2534663002: mus: Move MusGpuMemoryBufferManager into common. (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 | « services/ui/ws/gpu_service_proxy.h ('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_service_proxy.cc
diff --git a/services/ui/ws/gpu_service_proxy.cc b/services/ui/ws/gpu_service_proxy.cc
index 89642953502fb3785d7b390c038662a968897152..bdac226d811bca4d074f5391bc6e47c9dbbf9d42 100644
--- a/services/ui/ws/gpu_service_proxy.cc
+++ b/services/ui/ws/gpu_service_proxy.cc
@@ -13,6 +13,7 @@
#include "mojo/public/cpp/system/buffer.h"
#include "mojo/public/cpp/system/platform_handle.h"
#include "services/service_manager/public/cpp/connection.h"
+#include "services/ui/common/mus_gpu_memory_buffer_manager.h"
#include "services/ui/ws/gpu_service_proxy_delegate.h"
#include "ui/gfx/buffer_format_util.h"
@@ -36,6 +37,8 @@ GpuServiceProxy::GpuServiceProxy(GpuServiceProxyDelegate* delegate)
gpu_main_.Create(GetProxy(&gpu_service_));
gpu_service_->Initialize(
base::Bind(&GpuServiceProxy::OnInitialized, base::Unretained(this)));
+ gpu_memory_buffer_manager_ = base::MakeUnique<MusGpuMemoryBufferManager>(
+ gpu_service_.get(), next_client_id_++);
}
GpuServiceProxy::~GpuServiceProxy() {
« no previous file with comments | « services/ui/ws/gpu_service_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698