diff options
Diffstat (limited to 'content/test/test_context_provider_factory.cc')
-rw-r--r-- | content/test/test_context_provider_factory.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/test/test_context_provider_factory.cc b/content/test/test_context_provider_factory.cc index 96ce738e..33ba614 100644 --- a/content/test/test_context_provider_factory.cc +++ b/content/test/test_context_provider_factory.cc @@ -26,7 +26,9 @@ TestContextProviderFactory::~TestContextProviderFactory() {} scoped_refptr<cc::ContextProvider> TestContextProviderFactory:: OffscreenContextProviderForMainThread() { if (!main_thread_.get() || main_thread_->DestroyedOnMainThread()) { - main_thread_ = webkit::gpu::ContextProviderInProcess::CreateOffscreen(); + bool lose_context_when_out_of_memory = false; + main_thread_ = webkit::gpu::ContextProviderInProcess::CreateOffscreen( + lose_context_when_out_of_memory); if (main_thread_.get() && !main_thread_->BindToCurrentThread()) main_thread_ = NULL; } |