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

Unified Diff: cc/test/test_gpu_memory_buffer_manager.cc

Issue 2087673002: Remove CreateGpuMemoryBufferFromClientId and plumbing (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 | « cc/test/test_gpu_memory_buffer_manager.h ('k') | components/exo/buffer.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 ffed885fab990f82a7a0521bd630858a88e7ff19..cc7fbf9362d45df61e67fe50ccbab832f58957ce 100644
--- a/cc/test/test_gpu_memory_buffer_manager.cc
+++ b/cc/test/test_gpu_memory_buffer_manager.cc
@@ -214,26 +214,6 @@ TestGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer(
return reinterpret_cast<gfx::GpuMemoryBuffer*>(buffer);
}
-std::unique_ptr<gfx::GpuMemoryBuffer>
-TestGpuMemoryBufferManager::CreateGpuMemoryBufferFromClientId(
- int client_id,
- const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) {
- // Check that the client and id are valid to ensure that the ResourceProvider
- // is doing appropriate validation.
- auto client_it = clients_.find(client_id);
- DCHECK(client_it != clients_.end());
- auto buffer_it = client_it->second->buffers_.find(gpu_memory_buffer_id.id);
- DCHECK(buffer_it != client_it->second->buffers_.end());
-
- gfx::GpuMemoryBuffer* found = buffer_it->second;
-
- last_gpu_memory_buffer_id_ += 1;
- std::unique_ptr<gfx::GpuMemoryBuffer> result(
- new GpuMemoryBufferFromClient(this, last_gpu_memory_buffer_id_, found));
- 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/buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698