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

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.cc

Issue 2648893002: Remove remaining traces of CreateGpuMemoryBufferImageCHROMIUM (Closed)
Patch Set: Rebase, but don't pull in extra changes... Created 3 years, 10 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 | « gpu/ipc/client/command_buffer_proxy_impl.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.cc
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc
index 552f23b92d4c525cfa9202dacd73109b238c41a7..033507ee6ead5a66fd27c873f44d890012d11989 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
@@ -545,25 +545,6 @@ void CommandBufferProxyImpl::DestroyImage(int32_t id) {
Send(new GpuCommandBufferMsg_DestroyImage(route_id_, id));
}
-int32_t CommandBufferProxyImpl::CreateGpuMemoryBufferImage(
- size_t width,
- size_t height,
- unsigned internal_format,
- unsigned usage) {
- CheckLock();
- std::unique_ptr<gfx::GpuMemoryBuffer> buffer(
- channel_->gpu_memory_buffer_manager()->CreateGpuMemoryBuffer(
- gfx::Size(width, height),
- gpu::DefaultBufferFormatForImageFormat(internal_format),
- gfx::BufferUsage::SCANOUT, gpu::kNullSurfaceHandle));
- if (!buffer)
- return -1;
-
- int32_t result =
- CreateImage(buffer->AsClientBuffer(), width, height, internal_format);
- return result;
-}
-
uint32_t CommandBufferProxyImpl::CreateStreamTexture(uint32_t texture_id) {
CheckLock();
base::AutoLock lock(last_state_lock_);
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.h ('k') | gpu/ipc/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698