Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
index 4b91c424cf3e7d477dfb36404b238f138c2264b0..465986fbafcb794589992b0036045169a508b11a 100644 |
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
@@ -350,6 +350,8 @@ bool WebGraphicsContext3DCommandBufferImpl::InitializeCommandBuffer( |
attribs.push_back(attributes_.antialias ? 1 : 0); |
attribs.push_back(FAIL_IF_MAJOR_PERF_CAVEAT); |
attribs.push_back(attributes_.failIfMajorPerformanceCaveat ? 1 : 0); |
+ attribs.push_back(LOSE_CONTEXT_WHEN_OUT_OF_MEMORY); |
+ attribs.push_back(attributes_.loseContextWhenOutOfMemory ? 1 : 0); |
attribs.push_back(NONE); |
// Create a proxy to a command buffer in the GPU process. |
@@ -429,6 +431,7 @@ bool WebGraphicsContext3DCommandBufferImpl::CreateContext(bool onscreen) { |
gles2_share_group, |
transfer_buffer_.get(), |
bind_generates_resources_, |
+ attributes_.loseContextWhenOutOfMemory, |
command_buffer_.get())); |
gl_ = real_gl_.get(); |