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

Unified Diff: components/viz/host/server_gpu_memory_buffer_manager.h

Issue 2941423002: viz: Move ServerGpuMemoryBufferManager into host/gpu. (Closed)
Patch Set: fix tot merge 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/host/DEPS ('k') | components/viz/host/server_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/host/server_gpu_memory_buffer_manager.h
diff --git a/components/viz/common/server_gpu_memory_buffer_manager.h b/components/viz/host/server_gpu_memory_buffer_manager.h
similarity index 88%
rename from components/viz/common/server_gpu_memory_buffer_manager.h
rename to components/viz/host/server_gpu_memory_buffer_manager.h
index f546bc76f9cbf1b5a400a656675188b829320c82..2ee15b6e4fdce00a55909dfb35f71c1de5ce064a 100644
--- a/components/viz/common/server_gpu_memory_buffer_manager.h
+++ b/components/viz/host/server_gpu_memory_buffer_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_VIZ_COMMON_SERVER_GPU_MEMORY_BUFFER_MANAGER_H_
-#define COMPONENTS_VIZ_COMMON_SERVER_GPU_MEMORY_BUFFER_MANAGER_H_
+#ifndef COMPONENTS_VIZ_HOST_SERVER_GPU_MEMORY_BUFFER_MANAGER_H_
+#define COMPONENTS_VIZ_HOST_SERVER_GPU_MEMORY_BUFFER_MANAGER_H_
#include <memory>
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "base/synchronization/waitable_event.h"
+#include "components/viz/host/viz_host_export.h"
#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
#include "gpu/ipc/host/gpu_memory_buffer_support.h"
@@ -18,7 +19,7 @@ namespace ui {
namespace mojom {
class GpuService;
}
-}
+} // namespace ui
namespace viz {
@@ -26,7 +27,8 @@ namespace viz {
// from the gpu process over the mojom.GpuService api.
// Note that |CreateGpuMemoryBuffer()| can be called on any thread. All the rest
// of the functions must be called on the thread this object is created on.
-class ServerGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
+class VIZ_HOST_EXPORT ServerGpuMemoryBufferManager
+ : public gpu::GpuMemoryBufferManager {
public:
ServerGpuMemoryBufferManager(ui::mojom::GpuService* gpu_service,
int client_id);
@@ -81,4 +83,4 @@ class ServerGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
} // namespace viz
-#endif // COMPONENTS_VIZ_COMMON_SERVER_GPU_MEMORY_BUFFER_MANAGER_H_
+#endif // COMPONENTS_VIZ_HOST_SERVER_GPU_MEMORY_BUFFER_MANAGER_H_
« no previous file with comments | « components/viz/host/DEPS ('k') | components/viz/host/server_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698