| 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 90876b6109d893c0fb5020765c2f8ad862496303..8efd8058f6036e6fb68b33e091272ea2164f347f 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.cc
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.cc
|
| @@ -67,7 +67,7 @@ GpuCommandBufferStub::GpuCommandBufferStub(
|
| } else {
|
| context_group_ = new gpu::gles2::ContextGroup(true);
|
| }
|
| - if (surface_id != 0)
|
| + if (surface_id != 0 && !handle.is_null())
|
| surface_state_.reset(new GpuCommandBufferStubBase::SurfaceState(
|
| surface_id, true, base::TimeTicks::Now()));
|
| }
|
|
|