Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc |
index fe2681bf051df7b4e5efe3aef6b7db461204fe2e..2529664e27ac945e71be3bd996bde12cecf4dc3c 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc |
@@ -33,8 +33,7 @@ void GpuMemoryBufferImplOzoneNativeBuffer::AllocateOzoneNativeBufferForChildId( |
int child_id, |
const AllocationCallback& callback) { |
gfx::GpuMemoryBufferHandle handle; |
- // +1 ensures we always get non-zero IDs. |
- handle.global_id.primary_id = g_next_buffer_id.GetNext() + 1; |
+ handle.global_id.primary_id = g_next_buffer_id.GetNext(); |
reveman
2014/09/09 17:18:26
thanks!
|
handle.global_id.secondary_id = child_id; |
handle.type = gfx::OZONE_NATIVE_BUFFER; |
GpuMemoryBufferFactoryHost::GetInstance()->CreateGpuMemoryBuffer( |