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

Unified Diff: ui/aura/mus/mojo_gpu_memory_buffer_manager.cc

Issue 2511143004: mus: Split the gpu client-lib into a separate component. (Closed)
Patch Set: . 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: ui/aura/mus/mojo_gpu_memory_buffer_manager.cc
diff --git a/ui/aura/mus/mojo_gpu_memory_buffer_manager.cc b/ui/aura/mus/mojo_gpu_memory_buffer_manager.cc
deleted file mode 100644
index ff5a7c7d305b0c95f84aab8e2d0b0303d29f1e2d..0000000000000000000000000000000000000000
--- a/ui/aura/mus/mojo_gpu_memory_buffer_manager.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 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.
-
-#include "ui/aura/mus/mojo_gpu_memory_buffer_manager.h"
-
-#include "base/logging.h"
-#include "ui/aura/mus/mojo_gpu_memory_buffer.h"
-
-namespace aura {
-
-MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() {}
-
-MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() {}
-
-std::unique_ptr<gfx::GpuMemoryBuffer>
-MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
- const gfx::Size& size,
- gfx::BufferFormat format,
- gfx::BufferUsage usage,
- gpu::SurfaceHandle surface_handle) {
- return MojoGpuMemoryBufferImpl::Create(size, format, usage);
-}
-
-std::unique_ptr<gfx::GpuMemoryBuffer>
-MojoGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle(
- const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- gfx::BufferFormat format) {
- const gfx::BufferUsage usage = gfx::BufferUsage::GPU_READ;
- return MojoGpuMemoryBufferImpl::CreateFromHandle(handle, size, format, usage);
-}
-
-void MojoGpuMemoryBufferManager::SetDestructionSyncToken(
- gfx::GpuMemoryBuffer* buffer,
- const gpu::SyncToken& sync_token) {
- NOTIMPLEMENTED();
-}
-
-} // namespace aura

Powered by Google App Engine
This is Rietveld 408576698