Index: ui/compositor/test/in_process_context_factory.cc |
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc |
index e49ea5162033aa4a498b5c5514c86386106d9821..ce83286f993264f7d6c44c8e2091d4fa4051d917 100644 |
--- a/ui/compositor/test/in_process_context_factory.cc |
+++ b/ui/compositor/test/in_process_context_factory.cc |
@@ -29,12 +29,11 @@ |
attrs.stencil = false; |
attrs.antialias = false; |
attrs.shareResources = true; |
- bool lose_context_when_out_of_memory = true; |
using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; |
scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d( |
WebGraphicsContext3DInProcessCommandBufferImpl::CreateViewContext( |
- attrs, lose_context_when_out_of_memory, compositor->widget())); |
+ attrs, compositor->widget())); |
CHECK(context3d); |
using webkit::gpu::ContextProviderInProcess; |
@@ -57,10 +56,8 @@ |
InProcessContextFactory::OffscreenCompositorContextProvider() { |
if (!offscreen_compositor_contexts_.get() || |
!offscreen_compositor_contexts_->DestroyedOnMainThread()) { |
- 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_; |
} |
@@ -72,10 +69,8 @@ |
return shared_main_thread_contexts_; |
if (ui::Compositor::WasInitializedWithThread()) { |
- 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(); |
} else { |
shared_main_thread_contexts_ = |
static_cast<webkit::gpu::ContextProviderInProcess*>( |