Index: webkit/common/gpu/context_provider_in_process.cc |
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc |
index 6f1be9ce25529551336115b95d3f39b10c2da1d3..e9d25584b09ae97ca194017dab3a3774731f4c5e 100644 |
--- a/webkit/common/gpu/context_provider_in_process.cc |
+++ b/webkit/common/gpu/context_provider_in_process.cc |
@@ -48,7 +48,8 @@ scoped_refptr<ContextProviderInProcess> ContextProviderInProcess::Create( |
// static |
scoped_refptr<ContextProviderInProcess> |
-ContextProviderInProcess::CreateOffscreen() { |
+ContextProviderInProcess::CreateOffscreen( |
+ bool lose_context_when_out_of_memory) { |
blink::WebGraphicsContext3D::Attributes attributes; |
attributes.depth = false; |
attributes.stencil = true; |
@@ -58,7 +59,8 @@ ContextProviderInProcess::CreateOffscreen() { |
return Create( |
WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext( |
- attributes), "Offscreen"); |
+ attributes, lose_context_when_out_of_memory), |
+ "Offscreen"); |
} |
ContextProviderInProcess::ContextProviderInProcess( |