| Index: content/common/gpu/client/gpu_memory_buffer_impl_android.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc
|
| index a85654226ab1ba8908231bc9eb5d5b827faf1d84..d9b13560d0cff1356285308fe568fb40c07d0fcc 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_android.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_android.cc
|
| @@ -10,7 +10,8 @@
|
| namespace content {
|
|
|
| // static
|
| -void GpuMemoryBufferImpl::Create(const gfx::Size& size,
|
| +void GpuMemoryBufferImpl::Create(gfx::GpuMemoryBufferId id,
|
| + const gfx::Size& size,
|
| Format format,
|
| Usage usage,
|
| int client_id,
|
| @@ -18,13 +19,13 @@ void GpuMemoryBufferImpl::Create(const gfx::Size& size,
|
| if (GpuMemoryBufferImplSurfaceTexture::IsConfigurationSupported(format,
|
| usage)) {
|
| GpuMemoryBufferImplSurfaceTexture::Create(
|
| - size, format, client_id, callback);
|
| + id, size, format, client_id, callback);
|
| return;
|
| }
|
|
|
| if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
|
| size, format, usage)) {
|
| - GpuMemoryBufferImplSharedMemory::Create(size, format, callback);
|
| + GpuMemoryBufferImplSharedMemory::Create(id, size, format, callback);
|
| return;
|
| }
|
|
|
| @@ -33,6 +34,7 @@ void GpuMemoryBufferImpl::Create(const gfx::Size& size,
|
|
|
| // static
|
| void GpuMemoryBufferImpl::AllocateForChildProcess(
|
| + gfx::GpuMemoryBufferId id,
|
| const gfx::Size& size,
|
| Format format,
|
| Usage usage,
|
| @@ -42,14 +44,14 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
|
| if (GpuMemoryBufferImplSurfaceTexture::IsConfigurationSupported(format,
|
| usage)) {
|
| GpuMemoryBufferImplSurfaceTexture::AllocateForChildProcess(
|
| - size, format, child_client_id, callback);
|
| + id, size, format, child_client_id, callback);
|
| return;
|
| }
|
|
|
| if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
|
| size, format, usage)) {
|
| GpuMemoryBufferImplSharedMemory::AllocateForChildProcess(
|
| - size, format, child_process, callback);
|
| + id, size, format, child_process, callback);
|
| return;
|
| }
|
|
|
| @@ -59,8 +61,9 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
|
| // static
|
| void GpuMemoryBufferImpl::DeletedByChildProcess(
|
| gfx::GpuMemoryBufferType type,
|
| - const gfx::GpuMemoryBufferId& id,
|
| - base::ProcessHandle child_process) {
|
| + gfx::GpuMemoryBufferId id,
|
| + base::ProcessHandle child_process,
|
| + int child_client_id) {
|
| }
|
|
|
| // static
|
|
|