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

Unified Diff: services/ui/surfaces/mus_gpu_memory_buffer_manager.cc

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Speculative fix for android build issue 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
Index: services/ui/surfaces/mus_gpu_memory_buffer_manager.cc
diff --git a/services/ui/ws/mus_gpu_memory_buffer_manager.cc b/services/ui/surfaces/mus_gpu_memory_buffer_manager.cc
similarity index 92%
rename from services/ui/ws/mus_gpu_memory_buffer_manager.cc
rename to services/ui/surfaces/mus_gpu_memory_buffer_manager.cc
index 1dae509d8a1379ff0be5d2435644ba85e4be364d..7ce8843bbacfd716a14e2672ae360f8a1ff85b25 100644
--- a/services/ui/ws/mus_gpu_memory_buffer_manager.cc
+++ b/services/ui/surfaces/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/ws/mus_gpu_memory_buffer_manager.h"
+#include "services/ui/surfaces/mus_gpu_memory_buffer_manager.h"
#include "base/logging.h"
#include "gpu/ipc/client/gpu_memory_buffer_impl.h"
@@ -13,12 +13,12 @@
namespace ui {
-namespace ws {
-
MusGpuMemoryBufferManager::MusGpuMemoryBufferManager(
- mojom::GpuServiceInternal* gpu_service,
+ mojom::GpuServiceInternalPtr gpu_service,
int client_id)
- : gpu_service_(gpu_service), client_id_(client_id), weak_factory_(this) {}
+ : gpu_service_(std::move(gpu_service)),
+ client_id_(client_id),
+ weak_factory_(this) {}
MusGpuMemoryBufferManager::~MusGpuMemoryBufferManager() {}
@@ -77,5 +77,4 @@ void MusGpuMemoryBufferManager::DestroyGpuMemoryBuffer(
}
}
-} // namespace ws
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698