Index: content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
diff --git a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
index 86d1619f9a6f1f58509db9744801e62f852cb405..b17aa6c9c20216f18993e4b78637f5bdc46aea6e 100644 |
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
+++ b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc |
@@ -44,12 +44,10 @@ scoped_ptr<gpu::GLInProcessContext> CreateContext( |
gpu::GLInProcessContextAttribs in_process_attribs; |
WebGraphicsContext3DInProcessCommandBufferImpl::ConvertAttributes( |
GetDefaultAttribs(), &in_process_attribs); |
+ in_process_attribs.lose_context_when_out_of_memory = 1; |
scoped_ptr<gpu::GLInProcessContext> context( |
- gpu::GLInProcessContext::CreateWithSurface(surface, |
- service, |
- share_context, |
- in_process_attribs, |
- gpu_preference)); |
+ gpu::GLInProcessContext::CreateWithSurface( |
+ surface, service, share_context, in_process_attribs, gpu_preference)); |
return context.Pass(); |
} |