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 96ca0ea68ab85ff030ddaac2a1a4a1494614602e..f277eca2fc88ff84c1fe1e7e190cbf5de8d379fc 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -623,12 +623,14 @@ void GpuCommandBufferStub::SetMemoryAllocation( |
SendMemoryAllocationToProxy(allocation); |
+ DCHECK(surface_); |
+ |
if (!surface_) |
return; |
- if (allocation.has_frontbuffer && allocation.has_backbuffer) |
+ if (allocation.suggest_have_frontbuffer && allocation.suggest_have_backbuffer) |
surface_->SetBufferAllocation( |
gfx::GLSurface::BUFFER_ALLOCATION_FRONT_AND_BACK); |
- else if (allocation.has_frontbuffer) |
+ else if (allocation.suggest_have_frontbuffer) |
surface_->SetBufferAllocation( |
gfx::GLSurface::BUFFER_ALLOCATION_FRONT_ONLY); |
else |