Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / content / browser / android / in_process / synchronous_compositor_factory_impl.cc
index ed5f6fd..9be204a 100644 (file)
@@ -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();
 }