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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLTexture.h

Issue 1468883002: Fix the crash of compressedTexImage3D for the WebGL2 conformance test page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the check validation of level. Created 5 years, 1 month 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: third_party/WebKit/Source/modules/webgl/WebGLTexture.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLTexture.h b/third_party/WebKit/Source/modules/webgl/WebGLTexture.h
index c8c3524c6cf648666487d97a75940542cd691a88..84915380f8924a2a2dbd0a9b72dd2e5623ac1760 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLTexture.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLTexture.h
@@ -64,6 +64,7 @@ public:
GLsizei getHeight(GLenum target, GLint level) const;
GLsizei getDepth(GLenum target, GLint level) const;
bool isValid(GLenum target, GLint level) const;
+ bool isValidLevel(GLenum target, GLint level) const;
bool isImmutable() const { return m_immutable; }
static GLenum getValidFormatForInternalFormat(GLenum);

Powered by Google App Engine
This is Rietveld 408576698