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

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

Issue 2698863002: Implement WebGL2's uniform*() with sub source. (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
index bb7392ec15658fc1e330f6ad7c87f972877e60fb..fd5e11322a7c71bcf75dece509f649499f38534b 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
@@ -1357,42 +1357,42 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
// Helper function to validate input parameters for uniform functions.
bool validateUniformParameters(const char* functionName,
const WebGLUniformLocation*,
- DOMFloat32Array*,
- GLsizei mod);
- bool validateUniformParameters(const char* functionName,
- const WebGLUniformLocation*,
- DOMInt32Array*,
- GLsizei mod);
- bool validateUniformParameters(const char* functionName,
- const WebGLUniformLocation*,
void*,
GLsizei,
- GLsizei mod);
+ GLsizei mod,
+ GLuint srcOffset,
+ GLuint srcLength);
bool validateUniformMatrixParameters(const char* functionName,
const WebGLUniformLocation*,
GLboolean transpose,
DOMFloat32Array*,
- GLsizei mod);
+ GLsizei mod,
+ GLuint srcOffset,
+ GLuint srcLength);
bool validateUniformMatrixParameters(const char* functionName,
const WebGLUniformLocation*,
GLboolean transpose,
void*,
GLsizei,
- GLsizei mod);
+ GLsizei mod,
+ GLuint srcOffset,
+ GLuint srcLength);
template <typename WTFTypedArray>
bool validateUniformParameters(
const char* functionName,
const WebGLUniformLocation* location,
const TypedFlexibleArrayBufferView<WTFTypedArray>& v,
- GLsizei requiredMinSize) {
+ GLsizei requiredMinSize,
+ GLuint srcOffset,
+ GLuint srcLength) {
if (!v.dataMaybeOnStack()) {
synthesizeGLError(GL_INVALID_VALUE, functionName, "no array");
return false;
}
- return validateUniformMatrixParameters(functionName, location, false,
- v.dataMaybeOnStack(), v.length(),
- requiredMinSize);
+ return validateUniformMatrixParameters(
+ functionName, location, false, v.dataMaybeOnStack(), v.length(),
+ requiredMinSize, srcOffset, srcLength);
}
// Helper function to validate the target for bufferData and

Powered by Google App Engine
This is Rietveld 408576698