Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 199443004: gpu: Raise GL_OUT_OF_MEMORY when BeginQueryEXT fails to allocate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: checkmem: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 3c6d608e316e4a58a10475229a2258ae19277b7b..4ca8c68c1f0a0e5b75930d37fc4710570f58ea33 100644
--- a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -134,6 +134,8 @@ void WebGraphicsContext3DInProcessCommandBufferImpl::ConvertAttributes(
output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
output_attribs->fail_if_major_perf_caveat =
attributes.failIfMajorPerformanceCaveat ? 1 : 0;
+ output_attribs->lose_context_when_out_of_memory =
+ attributes.loseContextWhenOutOfMemory ? 1 : 0;
}
bool WebGraphicsContext3DInProcessCommandBufferImpl::MaybeInitializeGL() {

Powered by Google App Engine
This is Rietveld 408576698