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

Unified Diff: components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.h

Issue 2020293003: Use mus::MojoGpuMemoryBufferManager in mus::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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
Index: components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.h
diff --git a/components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.h b/components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.h
deleted file mode 100644
index 783a92dc1fc20f7d181e3f90b263fb905261d9d7..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_GPU_MEMORY_BUFFER_MANAGER_MUS_H_
-#define COMPONENTS_MUS_PUBLIC_CPP_LIB_GPU_MEMORY_BUFFER_MANAGER_MUS_H_
-
-#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
-
-namespace mus {
-
-// A GpuMemoryBufferManager used locally.
-class GpuMemoryBufferManagerMus : public gpu::GpuMemoryBufferManager {
- public:
- GpuMemoryBufferManagerMus();
- ~GpuMemoryBufferManagerMus() override;
-
- // Overridden from gpu::GpuMemoryBufferManager:
- std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
- const gfx::Size& size,
- gfx::BufferFormat format,
- gfx::BufferUsage usage,
- gpu::SurfaceHandle surface_handle) override;
- std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
- const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- gfx::BufferFormat format) override;
- std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId(
- int client_id,
- const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override;
- gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
- ClientBuffer buffer) override;
- void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
- const gpu::SyncToken& sync_token) override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferManagerMus);
-};
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_GPU_MEMORY_BUFFER_MANAGER_MUS_H_
« no previous file with comments | « components/mus/public/cpp/lib/gles2_context.cc ('k') | components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698