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

Unified Diff: components/mus/gpu/gpu_memory_buffer_manager_mus_local.h

Issue 1976703003: Impl mus::mojom::GpuService to enable using Chrome IPC version gpu CmdBuf in mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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/mus/gpu/DEPS ('k') | components/mus/gpu/gpu_memory_buffer_manager_mus_local.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gpu/gpu_memory_buffer_manager_mus_local.h
diff --git a/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.h b/components/mus/gpu/gpu_memory_buffer_manager_mus_local.h
similarity index 65%
copy from blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.h
copy to components/mus/gpu/gpu_memory_buffer_manager_mus_local.h
index a0de5ac2376115eb5b37ef91f1407b6b89b0cd44..39fc2d2629c45bcb165c80e32ebe26a2a194635b 100644
--- a/blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.h
+++ b/components/mus/gpu/gpu_memory_buffer_manager_mus_local.h
@@ -2,21 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
-#define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
+#ifndef COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_
+#define COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_
-#include <memory>
-
-#include "base/macros.h"
#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
-namespace blimp {
-namespace client {
+namespace mus {
-class BlimpGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
+// A GpuMemoryBufferManager used locally.
+class GpuMemoryBufferManagerMusLocal : public gpu::GpuMemoryBufferManager {
public:
- BlimpGpuMemoryBufferManager();
- ~BlimpGpuMemoryBufferManager() override;
+ GpuMemoryBufferManagerMusLocal(int gpu_client_id,
+ uint64_t gpu_client_tracing_id);
+ ~GpuMemoryBufferManagerMusLocal() override;
// Overridden from gpu::GpuMemoryBufferManager:
std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
@@ -37,10 +35,9 @@ class BlimpGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
const gpu::SyncToken& sync_token) override;
private:
- DISALLOW_COPY_AND_ASSIGN(BlimpGpuMemoryBufferManager);
+ DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferManagerMusLocal);
};
-} // namespace client
-} // namespace blimp
+} // namespace mus
-#endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
+#endif // COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_
« no previous file with comments | « components/mus/gpu/DEPS ('k') | components/mus/gpu/gpu_memory_buffer_manager_mus_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698