Index: mojo/examples/aura_demo/demo_context_factory.cc |
diff --git a/mojo/examples/aura_demo/demo_context_factory.cc b/mojo/examples/aura_demo/demo_context_factory.cc |
index 404020812687b4091fc5dc1452d0245e955aa315..e9312ad22f8af1bee9c9e876e5d920bd03678b42 100644 |
--- a/mojo/examples/aura_demo/demo_context_factory.cc |
+++ b/mojo/examples/aura_demo/demo_context_factory.cc |
@@ -56,10 +56,8 @@ |
// to leak the context provider when we shutdown to avoid destroying the |
// contexts on the wrong thread. |
DCHECK(!ui::Compositor::WasInitializedWithThread()); |
- bool lose_context_when_out_of_memory = true; |
offscreen_compositor_contexts_ = |
- webkit::gpu::ContextProviderInProcess::CreateOffscreen( |
- lose_context_when_out_of_memory); |
+ webkit::gpu::ContextProviderInProcess::CreateOffscreen(); |
} |
return offscreen_compositor_contexts_; |
} |
@@ -68,10 +66,8 @@ |
DemoContextFactory::SharedMainThreadContextProvider() { |
if (!shared_main_thread_contexts_ || |
shared_main_thread_contexts_->DestroyedOnMainThread()) { |
- bool lose_context_when_out_of_memory = false; |
shared_main_thread_contexts_ = |
- webkit::gpu::ContextProviderInProcess::CreateOffscreen( |
- lose_context_when_out_of_memory); |
+ webkit::gpu::ContextProviderInProcess::CreateOffscreen(); |
if (shared_main_thread_contexts_ && |
!shared_main_thread_contexts_->BindToCurrentThread()) |
shared_main_thread_contexts_ = NULL; |