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

Unified Diff: cc/test/test_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
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.h ('k') | components/exo/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_gpu_memory_buffer_manager.cc
diff --git a/cc/test/test_gpu_memory_buffer_manager.cc b/cc/test/test_gpu_memory_buffer_manager.cc
index 4e5a653a4462bdeeb2863c71b2111a1741c044c3..fb6899f81d137319173a35267fee37888a78ae2a 100644
--- a/cc/test/test_gpu_memory_buffer_manager.cc
+++ b/cc/test/test_gpu_memory_buffer_manager.cc
@@ -172,23 +172,6 @@ TestGpuMemoryBufferManager::CreateGpuMemoryBuffer(
return result;
}
-std::unique_ptr<gfx::GpuMemoryBuffer>
-TestGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle(
- const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- gfx::BufferFormat format) {
- if (handle.type != gfx::SHARED_MEMORY_BUFFER)
- return nullptr;
-
- last_gpu_memory_buffer_id_ += 1;
- std::unique_ptr<gfx::GpuMemoryBuffer> result(new GpuMemoryBufferImpl(
- this, last_gpu_memory_buffer_id_, size, format,
- base::MakeUnique<base::SharedMemory>(handle.handle, false), handle.offset,
- handle.stride));
- buffers_[last_gpu_memory_buffer_id_] = result.get();
- return result;
-}
-
void TestGpuMemoryBufferManager::SetDestructionSyncToken(
gfx::GpuMemoryBuffer* buffer,
const gpu::SyncToken& sync_token) {}
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.h ('k') | components/exo/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698