Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 10083056: GpuMemoryManager suggests values for renderer Contents Texture Managers' preferred memory limit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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())
mmocny 2012/04/18 20:43:11 !is_null() seems insufficient to ignore ui stub. T
surface_state_.reset(new GpuCommandBufferStubBase::SurfaceState(
surface_id, true, base::TimeTicks::Now()));
}

Powered by Google App Engine
This is Rietveld 408576698