diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-02 23:54:09 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-02 23:54:09 +0000 |
commit | 8a978dfd9a1d60d1563517310cc2ee153426bd40 (patch) | |
tree | c5a10da570b9652c43e9488f1eaf7bdfb45d2275 /mojo/gles2 | |
parent | 1d566aaef8f6117d61465c88662d4e192403c427 (diff) | |
download | chromium_src-8a978dfd9a1d60d1563517310cc2ee153426bd40.zip chromium_src-8a978dfd9a1d60d1563517310cc2ee153426bd40.tar.gz chromium_src-8a978dfd9a1d60d1563517310cc2ee153426bd40.tar.bz2 |
Refactor gpu::Buffer to allow different types of backing
This is so that we can use either base::SharedMemory or mojo::SharedBuffer to
back gpu::Buffer.
BUG=333157
R=darin@chromium.org, viettrungluu@chromium.org
Review URL: https://codereview.chromium.org/213353005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/gles2')
-rw-r--r-- | mojo/gles2/command_buffer_client_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc index c9dcf91..3ffecf3 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; } |