| Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
|
| index 83ccbc6552f9adc55f5abf0f5448d899bfb71401..c9dac571d8623cb759645a6270dca1a5ec5b7bdb 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc
|
| @@ -11,21 +11,20 @@ namespace content {
|
|
|
| // static
|
| void GpuMemoryBufferImpl::Create(const gfx::Size& size,
|
| - unsigned internalformat,
|
| - unsigned usage,
|
| + Format format,
|
| + Usage usage,
|
| int client_id,
|
| const CreationCallback& callback) {
|
| - if (GpuMemoryBufferImplOzoneNativeBuffer::IsConfigurationSupported(
|
| - internalformat, usage)) {
|
| + if (GpuMemoryBufferImplOzoneNativeBuffer::IsConfigurationSupported(format,
|
| + usage)) {
|
| GpuMemoryBufferImplOzoneNativeBuffer::Create(
|
| - size, internalformat, usage, client_id, callback);
|
| + size, format, client_id, callback);
|
| return;
|
| }
|
|
|
| if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
|
| - size, internalformat, usage)) {
|
| - GpuMemoryBufferImplSharedMemory::Create(
|
| - size, internalformat, usage, callback);
|
| + size, format, usage)) {
|
| + GpuMemoryBufferImplSharedMemory::Create(size, format, callback);
|
| return;
|
| }
|
|
|
| @@ -35,21 +34,21 @@ void GpuMemoryBufferImpl::Create(const gfx::Size& size,
|
| // static
|
| void GpuMemoryBufferImpl::AllocateForChildProcess(
|
| const gfx::Size& size,
|
| - unsigned internalformat,
|
| - unsigned usage,
|
| + Format format,
|
| + Usage usage,
|
| base::ProcessHandle child_process,
|
| int child_client_id,
|
| const AllocationCallback& callback) {
|
| - if (GpuMemoryBufferImplOzoneNativeBuffer::IsConfigurationSupported(
|
| - internalformat, usage)) {
|
| + if (GpuMemoryBufferImplOzoneNativeBuffer::IsConfigurationSupported(format,
|
| + usage)) {
|
| GpuMemoryBufferImplOzoneNativeBuffer::AllocateForChildProcess(
|
| - size, internalformat, usage, child_client_id, callback);
|
| + size, format, child_client_id, callback);
|
| return;
|
| }
|
| if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
|
| - size, internalformat, usage)) {
|
| + size, format, usage)) {
|
| GpuMemoryBufferImplSharedMemory::AllocateForChildProcess(
|
| - size, internalformat, child_process, callback);
|
| + size, format, child_process, callback);
|
| return;
|
| }
|
|
|
| @@ -67,15 +66,15 @@ void GpuMemoryBufferImpl::DeletedByChildProcess(
|
| scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::CreateFromHandle(
|
| const gfx::GpuMemoryBufferHandle& handle,
|
| const gfx::Size& size,
|
| - unsigned internalformat,
|
| + Format format,
|
| const DestructionCallback& callback) {
|
| switch (handle.type) {
|
| case gfx::SHARED_MEMORY_BUFFER:
|
| return GpuMemoryBufferImplSharedMemory::CreateFromHandle(
|
| - handle, size, internalformat, callback);
|
| + handle, size, format, callback);
|
| case gfx::OZONE_NATIVE_BUFFER:
|
| return GpuMemoryBufferImplOzoneNativeBuffer::CreateFromHandle(
|
| - handle, size, internalformat, callback);
|
| + handle, size, format, callback);
|
| default:
|
| return scoped_ptr<GpuMemoryBufferImpl>();
|
| }
|
|
|