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

Unified Diff: components/viz/common/server_gpu_memory_buffer_manager.cc

Issue 2939953004: viz: Move some code into //components/viz/common. (Closed)
Patch Set: . Created 3 years, 6 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 | « components/viz/common/server_gpu_memory_buffer_manager.h ('k') | content/gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/common/server_gpu_memory_buffer_manager.cc
diff --git a/services/ui/common/server_gpu_memory_buffer_manager.cc b/components/viz/common/server_gpu_memory_buffer_manager.cc
similarity index 95%
rename from services/ui/common/server_gpu_memory_buffer_manager.cc
rename to components/viz/common/server_gpu_memory_buffer_manager.cc
index a420040ed233ed150f01ca63987bc7b1e379cc06..23fe8942da670b8c84f1c0e9d4cbd04a6faad4fd 100644
--- a/services/ui/common/server_gpu_memory_buffer_manager.cc
+++ b/components/viz/common/server_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/common/server_gpu_memory_buffer_manager.h"
+#include "components/viz/common/server_gpu_memory_buffer_manager.h"
#include "base/logging.h"
#include "gpu/ipc/client/gpu_memory_buffer_impl.h"
@@ -10,10 +10,10 @@
#include "gpu/ipc/common/gpu_memory_buffer_support.h"
#include "services/ui/gpu/interfaces/gpu_service.mojom.h"
-namespace ui {
+namespace viz {
ServerGpuMemoryBufferManager::ServerGpuMemoryBufferManager(
- mojom::GpuService* gpu_service,
+ ui::mojom::GpuService* gpu_service,
int client_id)
: gpu_service_(gpu_service),
client_id_(client_id),
@@ -92,4 +92,4 @@ void ServerGpuMemoryBufferManager::DestroyAllGpuMemoryBufferForClient(
native_buffers_.erase(client_id);
}
-} // namespace ui
+} // namespace viz
« no previous file with comments | « components/viz/common/server_gpu_memory_buffer_manager.h ('k') | content/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698