diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-13 23:52:00 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-13 23:52:00 +0000 |
commit | b493ee621680084e4028e8c9f02cad13ea99cb08 (patch) | |
tree | 397ad9fe681aec54a7c00586edddc87a9de92aef /gpu/command_buffer/client/gles2_implementation.h | |
parent | ba496a7f57ef38960f419cfb64d342d69c19f257 (diff) | |
download | chromium_src-b493ee621680084e4028e8c9f02cad13ea99cb08.zip chromium_src-b493ee621680084e4028e8c9f02cad13ea99cb08.tar.gz chromium_src-b493ee621680084e4028e8c9f02cad13ea99cb08.tar.bz2 |
Handle the situation in command buffer when texImage2D fails. Current implementation breaks texImage2D into texImage2D with null data and one or more texSubImage2D calls. If the first texImage2D call fails, all the related texSubImage2D calls should be cancelled. However, at the moment they still get called, thus generates GL errors that shouldn't be generated. This CL fixes this issue.
BUG=79172
TEST=unittest, texture-npot.html green
Review URL: http://codereview.chromium.org/6839003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation.h')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h index 1017ef1..6104802 100644 --- a/gpu/command_buffer/client/gles2_implementation.h +++ b/gpu/command_buffer/client/gles2_implementation.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -280,6 +280,11 @@ class GLES2Implementation { GLsizei GetMaxIndexInElementArrayBuffer( GLuint buffer_id, GLsizei count, GLenum type, GLuint offset); + void TexSubImage2DImpl( + GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, + GLsizei height, GLenum format, GLenum type, const void* pixels, + GLboolean internal); + GLES2Util util_; GLES2CmdHelper* helper_; scoped_ptr<IdHandlerInterface> buffer_id_handler_; |