| Index: content/renderer/render_thread_impl.cc
|
| ===================================================================
|
| --- content/renderer/render_thread_impl.cc (revision 261814)
|
| +++ content/renderer/render_thread_impl.cc (working copy)
|
| @@ -993,11 +993,14 @@
|
| gpu_channel_host = EstablishGpuChannelSync(
|
| CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE);
|
| }
|
| + blink::WebGraphicsContext3D::Attributes attributes;
|
| + bool lose_context_when_out_of_memory = false;
|
| gpu_va_context_provider_ = ContextProviderCommandBuffer::Create(
|
| make_scoped_ptr(
|
| WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
|
| gpu_channel_host.get(),
|
| - blink::WebGraphicsContext3D::Attributes(),
|
| + attributes,
|
| + lose_context_when_out_of_memory,
|
| GURL("chrome://gpu/RenderThreadImpl::GetGpuVDAContext3D"),
|
| WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits(),
|
| NULL)),
|
| @@ -1019,6 +1022,7 @@
|
| attributes.stencil = false;
|
| attributes.antialias = false;
|
| attributes.noAutomaticFlushes = true;
|
| + bool lose_context_when_out_of_memory = true;
|
|
|
| scoped_refptr<GpuChannelHost> gpu_channel_host(EstablishGpuChannelSync(
|
| CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE));
|
| @@ -1026,6 +1030,7 @@
|
| WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
|
| gpu_channel_host.get(),
|
| attributes,
|
| + lose_context_when_out_of_memory,
|
| GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext3d"),
|
| WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits(),
|
| NULL));
|
|
|