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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 8879059: Ignore random GL_OUT_OF_MEMORY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 4565 matching lines...) Expand 10 before | Expand all | Expand 10 after
4576 void GLES2DecoderImpl::CopyRealGLErrorsToWrapper() { 4576 void GLES2DecoderImpl::CopyRealGLErrorsToWrapper() {
4577 GLenum error; 4577 GLenum error;
4578 while ((error = glGetError()) != GL_NO_ERROR) { 4578 while ((error = glGetError()) != GL_NO_ERROR) {
4579 SetGLError(error, NULL); 4579 SetGLError(error, NULL);
4580 } 4580 }
4581 } 4581 }
4582 4582
4583 void GLES2DecoderImpl::ClearRealGLErrors() { 4583 void GLES2DecoderImpl::ClearRealGLErrors() {
4584 GLenum error; 4584 GLenum error;
4585 while ((error = glGetError()) != GL_NO_ERROR) { 4585 while ((error = glGetError()) != GL_NO_ERROR) {
4586 NOTREACHED() << "GL error " << error << " was unhandled."; 4586 if (error != GL_OUT_OF_MEMORY) {
4587 // GL_OUT_OF_MEMORY can legally happen on lost device.
4588 NOTREACHED() << "GL error " << error << " was unhandled.";
4589 }
4587 } 4590 }
4588 } 4591 }
4589 4592
4590 bool GLES2DecoderImpl::SetBlackTextureForNonRenderableTextures() { 4593 bool GLES2DecoderImpl::SetBlackTextureForNonRenderableTextures() {
4591 DCHECK(current_program_); 4594 DCHECK(current_program_);
4592 // Only check if there are some unrenderable textures. 4595 // Only check if there are some unrenderable textures.
4593 if (!texture_manager()->HaveUnrenderableTextures()) { 4596 if (!texture_manager()->HaveUnrenderableTextures()) {
4594 return false; 4597 return false;
4595 } 4598 }
4596 bool textures_set = false; 4599 bool textures_set = false;
(...skipping 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after
7857 7860
7858 } 7861 }
7859 7862
7860 // Include the auto-generated part of this file. We split this because it means 7863 // Include the auto-generated part of this file. We split this because it means
7861 // we can easily edit the non-auto generated parts right here in this file 7864 // we can easily edit the non-auto generated parts right here in this file
7862 // instead of having to edit some template or the code generator. 7865 // instead of having to edit some template or the code generator.
7863 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 7866 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
7864 7867
7865 } // namespace gles2 7868 } // namespace gles2
7866 } // namespace gpu 7869 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698