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

Unified Diff: blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc

Issue 2572703004: exo: Directly create GpuMemoryBufferImpl when a handle is available. (Closed)
Patch Set: null callback Created 4 years 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: blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc
diff --git a/blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc b/blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc
index 2a3d478761a6a78e3e56b52e5f059482b6ce26a9..fef42d404e8345cad2d341719313d5c640da3f9d 100644
--- a/blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc
+++ b/blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.cc
@@ -137,19 +137,6 @@ BlimpGpuMemoryBufferManager::CreateGpuMemoryBuffer(
gfx::RowSizeForBufferFormat(size.width(), format, 0))));
}
-std::unique_ptr<gfx::GpuMemoryBuffer>
-BlimpGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle(
- const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- gfx::BufferFormat format) {
- if (handle.type != gfx::SHARED_MEMORY_BUFFER)
- return nullptr;
-
- return base::WrapUnique<gfx::GpuMemoryBuffer>(new GpuMemoryBufferImpl(
- size, format, base::MakeUnique<base::SharedMemory>(handle.handle, false),
- handle.offset, handle.stride));
-}
-
void BlimpGpuMemoryBufferManager::SetDestructionSyncToken(
gfx::GpuMemoryBuffer* buffer,
const gpu::SyncToken& sync_token) {
« no previous file with comments | « blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.h ('k') | cc/test/test_gpu_memory_buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698