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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 213353005: Refactor gpu::Buffer to allow different types of backing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix pointer alignment in tests Created 6 years, 9 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
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index c9dcf91e5694b2a93ea676f86478a0cdae8b031f..3ffecf3d02ff959ad860c1c9dd171b0fde540035 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -125,7 +125,7 @@ scoped_refptr<gpu::Buffer> CommandBufferClientImpl::CreateTransferBuffer(
*id, handle, static_cast<uint32_t>(size));
scoped_refptr<gpu::Buffer> buffer =
- new gpu::Buffer(shared_memory.Pass(), size);
+ gpu::MakeBufferFromSharedMemory(shared_memory.Pass(), size);
return buffer;
}
« no previous file with comments | « gpu/command_buffer/service/transfer_buffer_manager_unittest.cc ('k') | mojo/services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698