| Index: content/common/gpu/gpu_command_buffer_stub.cc
|
| diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
|
| index 497858a38784b8559f4d27649b5762f795548cf3..c436fa74429a441b132a5f12ab7430809a2cd52a 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.cc
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.cc
|
| @@ -870,6 +870,15 @@ void GpuCommandBufferStub::OnRegisterGpuMemoryBuffer(
|
| uint32 height,
|
| uint32 internalformat) {
|
| TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnRegisterGpuMemoryBuffer");
|
| +#if defined(OS_ANDROID)
|
| + // Verify that renderer is not trying to use a surface texture it doesn't own.
|
| + if (gpu_memory_buffer.type == gfx::SURFACE_TEXTURE_BUFFER &&
|
| + gpu_memory_buffer.surface_texture_id.secondary_id !=
|
| + channel()->renderer_pid()) {
|
| + LOG(ERROR) << "Illegal surface texture ID for renderer.";
|
| + return;
|
| + }
|
| +#endif
|
| if (gpu_control_) {
|
| gpu_control_->RegisterGpuMemoryBuffer(id,
|
| gpu_memory_buffer,
|
|
|