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

Unified Diff: services/ui/common/mus_gpu_memory_buffer_manager.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/common/mus_gpu_memory_buffer_manager.h ('k') | services/ui/gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/common/mus_gpu_memory_buffer_manager.cc
diff --git a/services/ui/surfaces/mus_gpu_memory_buffer_manager.cc b/services/ui/common/mus_gpu_memory_buffer_manager.cc
similarity index 92%
rename from services/ui/surfaces/mus_gpu_memory_buffer_manager.cc
rename to services/ui/common/mus_gpu_memory_buffer_manager.cc
index fee582196556af4e26cdc45fd6e7c95407b8421b..bdc89913a5b30233e17a798696eb85768a717cca 100644
--- a/services/ui/surfaces/mus_gpu_memory_buffer_manager.cc
+++ b/services/ui/common/mus_gpu_memory_buffer_manager.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "services/ui/surfaces/mus_gpu_memory_buffer_manager.h"
+#include "services/ui/common/mus_gpu_memory_buffer_manager.h"
#include "base/logging.h"
#include "gpu/ipc/client/gpu_memory_buffer_impl.h"
@@ -14,11 +14,9 @@
namespace ui {
MusGpuMemoryBufferManager::MusGpuMemoryBufferManager(
- mojom::GpuServiceInternalPtr gpu_service,
+ mojom::GpuServiceInternal* gpu_service,
int client_id)
- : gpu_service_(std::move(gpu_service)),
- client_id_(client_id),
- weak_factory_(this) {}
+ : gpu_service_(gpu_service), client_id_(client_id), weak_factory_(this) {}
MusGpuMemoryBufferManager::~MusGpuMemoryBufferManager() {}
« no previous file with comments | « services/ui/common/mus_gpu_memory_buffer_manager.h ('k') | services/ui/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698