Index: content/browser/gpu/gpu_ipc_browsertests.cc |
diff --git a/content/browser/gpu/gpu_ipc_browsertests.cc b/content/browser/gpu/gpu_ipc_browsertests.cc |
index ebeceff357a1607f37c68c9e22f6f97673e1cca9..cbe453934199f275937d0e0d400b68629f2557f8 100644 |
--- a/content/browser/gpu/gpu_ipc_browsertests.cc |
+++ b/content/browser/gpu/gpu_ipc_browsertests.cc |
@@ -35,12 +35,14 @@ class ContextTestBase : public content::ContentBrowserTest { |
content::BrowserGpuChannelHostFactory* factory = |
content::BrowserGpuChannelHostFactory::instance(); |
CHECK(factory); |
+ bool lose_context_when_out_of_memory = false; |
scoped_refptr<content::GpuChannelHost> gpu_channel_host( |
factory->EstablishGpuChannelSync(kInitCause)); |
context_.reset( |
WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( |
gpu_channel_host.get(), |
blink::WebGraphicsContext3D::Attributes(), |
+ lose_context_when_out_of_memory, |
GURL(), |
WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits(), |
NULL)); |
@@ -115,10 +117,12 @@ class BrowserGpuChannelHostFactoryTest : public ContentBrowserTest { |
} |
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateContext() { |
+ bool lose_context_when_out_of_memory = false; |
return make_scoped_ptr( |
WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( |
GetGpuChannel(), |
blink::WebGraphicsContext3D::Attributes(), |
+ lose_context_when_out_of_memory, |
GURL(), |
WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits(), |
NULL)); |