diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-02 14:43:13 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-02 14:43:13 +0000 |
commit | 828a3933dbfe452718e6602d1afaa2db4d80ab76 (patch) | |
tree | 56af77629470fae86de042bc0f9922e57bd5fafe /content/renderer/renderer_webkitplatformsupport_impl.cc | |
parent | f3cad76934b9282f7a8d795b27862210ad9f488a (diff) | |
download | chromium_src-828a3933dbfe452718e6602d1afaa2db4d80ab76.zip chromium_src-828a3933dbfe452718e6602d1afaa2db4d80ab76.tar.gz chromium_src-828a3933dbfe452718e6602d1afaa2db4d80ab76.tar.bz2 |
gpu: Lose context when BeginQueryEXT fails to allocate.
Instead of crashes, raise a GL_OUT_OF_MEMORY error. Since compositor
does not want to deal with these errors and it would leave it in a
bad state, add the ability to lose the context when GL_OUT_OF_MEMORY
occurs.
R=dmichael@chromium.org, jamesr@chromium.org, piman@chromium.org, piman
BUG=351587
Review URL: https://codereview.chromium.org/199443004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/renderer_webkitplatformsupport_impl.cc')
-rw-r--r-- | content/renderer/renderer_webkitplatformsupport_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc index 1a067f6..2bd6fca 100644 --- a/content/renderer/renderer_webkitplatformsupport_impl.cc +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc @@ -1005,10 +1005,11 @@ RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D( limits.command_buffer_size = buffer_size_kb * 1024; } } - + bool lose_context_when_out_of_memory = false; return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( gpu_channel_host.get(), attributes, + lose_context_when_out_of_memory, GURL(attributes.topDocumentURL), limits, static_cast<WebGraphicsContext3DCommandBufferImpl*>(share_context)); |