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

Unified Diff: gpu/command_buffer/client/gl_in_process_context.cc

Issue 221783002: Revert of gpu: Raise GL_OUT_OF_MEMORY when BeginQueryEXT fails to allocate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « gpu/command_buffer/client/gl_in_process_context.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gl_in_process_context.cc
diff --git a/gpu/command_buffer/client/gl_in_process_context.cc b/gpu/command_buffer/client/gl_in_process_context.cc
index 2b5e559ba64fd5c1386c15c183131f03ef7df3ed..1db894ffdd853d6a4a2172bfccad7c5836241de6 100644
--- a/gpu/command_buffer/client/gl_in_process_context.cc
+++ b/gpu/command_buffer/client/gl_in_process_context.cc
@@ -147,7 +147,6 @@
// Chromium-specific attributes
const int32 FAIL_IF_MAJOR_PERF_CAVEAT = 0x10002;
- const int32 LOSE_CONTEXT_WHEN_OUT_OF_MEMORY = 0x10003;
std::vector<int32> attrib_vector;
if (attribs.alpha_size >= 0) {
@@ -185,10 +184,6 @@
if (attribs.fail_if_major_perf_caveat > 0) {
attrib_vector.push_back(FAIL_IF_MAJOR_PERF_CAVEAT);
attrib_vector.push_back(attribs.fail_if_major_perf_caveat);
- }
- if (attribs.lose_context_when_out_of_memory > 0) {
- attrib_vector.push_back(LOSE_CONTEXT_WHEN_OUT_OF_MEMORY);
- attrib_vector.push_back(attribs.lose_context_when_out_of_memory);
}
attrib_vector.push_back(NONE);
@@ -255,7 +250,6 @@
share_group,
transfer_buffer_.get(),
bind_generates_resources,
- attribs.lose_context_when_out_of_memory > 0,
command_buffer_.get()));
if (use_global_share_group) {
@@ -308,9 +302,7 @@
depth_size(-1),
stencil_size(-1),
samples(-1),
- sample_buffers(-1),
- fail_if_major_perf_caveat(-1),
- lose_context_when_out_of_memory(-1) {}
+ sample_buffers(-1) {}
// static
GLInProcessContext* GLInProcessContext::CreateContext(
« no previous file with comments | « gpu/command_buffer/client/gl_in_process_context.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698