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

Unified Diff: Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 135573002: Rename getType() to type() in ArrayBufferView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missed a few Created 6 years, 11 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 | « Source/core/html/canvas/DataView.h ('k') | Source/modules/crypto/Crypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLRenderingContext.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
index 447cbb56c1076a1e00f5f3523516a84088e46dd1..0acd9acc58d03f2c7925b5dea873d4794c12e6db 100644
--- a/Source/core/html/canvas/WebGLRenderingContext.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContext.cpp
@@ -3090,7 +3090,7 @@ void WebGLRenderingContext::readPixels(GLint x, GLint y, GLsizei width, GLsizei
return;
}
// Validate array type against pixel type.
- if (pixels->getType() != ArrayBufferView::TypeUint8) {
+ if (pixels->type() != ArrayBufferView::TypeUint8) {
synthesizeGLError(GL_INVALID_OPERATION, "readPixels", "ArrayBufferView not Uint8Array");
return;
}
@@ -4757,7 +4757,7 @@ bool WebGLRenderingContext::validateTexFuncData(const char* functionName, GLint
switch (type) {
case GL_UNSIGNED_BYTE:
- if (pixels->getType() != ArrayBufferView::TypeUint8) {
+ if (pixels->type() != ArrayBufferView::TypeUint8) {
synthesizeGLError(GL_INVALID_OPERATION, functionName, "type UNSIGNED_BYTE but ArrayBufferView not Uint8Array");
return false;
}
@@ -4765,13 +4765,13 @@ bool WebGLRenderingContext::validateTexFuncData(const char* functionName, GLint
case GL_UNSIGNED_SHORT_5_6_5:
case GL_UNSIGNED_SHORT_4_4_4_4:
case GL_UNSIGNED_SHORT_5_5_5_1:
- if (pixels->getType() != ArrayBufferView::TypeUint16) {
+ if (pixels->type() != ArrayBufferView::TypeUint16) {
synthesizeGLError(GL_INVALID_OPERATION, functionName, "type UNSIGNED_SHORT but ArrayBufferView not Uint16Array");
return false;
}
break;
case GL_FLOAT: // OES_texture_float
- if (pixels->getType() != ArrayBufferView::TypeFloat32) {
+ if (pixels->type() != ArrayBufferView::TypeFloat32) {
synthesizeGLError(GL_INVALID_OPERATION, functionName, "type FLOAT but ArrayBufferView not Float32Array");
return false;
}
« no previous file with comments | « Source/core/html/canvas/DataView.h ('k') | Source/modules/crypto/Crypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698