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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.idl

Issue 1406183010: Replace ARRAY_SIZE with WTF_ARRAY_LENGTH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 const GLenum BOOL_VEC3 = 0x8B58; 388 const GLenum BOOL_VEC3 = 0x8B58;
389 const GLenum BOOL_VEC4 = 0x8B59; 389 const GLenum BOOL_VEC4 = 0x8B59;
390 const GLenum FLOAT_MAT2 = 0x8B5A; 390 const GLenum FLOAT_MAT2 = 0x8B5A;
391 const GLenum FLOAT_MAT3 = 0x8B5B; 391 const GLenum FLOAT_MAT3 = 0x8B5B;
392 const GLenum FLOAT_MAT4 = 0x8B5C; 392 const GLenum FLOAT_MAT4 = 0x8B5C;
393 const GLenum SAMPLER_2D = 0x8B5E; 393 const GLenum SAMPLER_2D = 0x8B5E;
394 const GLenum SAMPLER_CUBE = 0x8B60; 394 const GLenum SAMPLER_CUBE = 0x8B60;
395 395
396 /* Vertex Arrays */ 396 /* Vertex Arrays */
397 const GLenum VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; 397 const GLenum VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
398 const GLenum VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; 398 const GLenum VERTEX_ATTRIB_WTF_ARRAY_LENGTH = 0x8623;
esprehn 2015/11/20 22:48:03 This is wrong, you're changing the web exposed API
haraken 2015/11/24 05:40:42 Done.
399 const GLenum VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; 399 const GLenum VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
400 const GLenum VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; 400 const GLenum VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
401 const GLenum VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; 401 const GLenum VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
402 const GLenum VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; 402 const GLenum VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
403 const GLenum VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; 403 const GLenum VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
404 404
405 /* Read Format */ 405 /* Read Format */
406 const GLenum IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; 406 const GLenum IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A;
407 const GLenum IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; 407 const GLenum IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B;
408 408
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 void vertexAttrib3fv(GLuint indx, Float32Array values); 695 void vertexAttrib3fv(GLuint indx, Float32Array values);
696 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); 696 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values);
697 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ; 697 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ;
698 void vertexAttrib4fv(GLuint indx, Float32Array values); 698 void vertexAttrib4fv(GLuint indx, Float32Array values);
699 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); 699 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values);
700 [CallWith=ScriptState] void vertexAttribPointer(GLuint indx, GLint size, GLe num type, GLboolean normalized, 700 [CallWith=ScriptState] void vertexAttribPointer(GLuint indx, GLint size, GLe num type, GLboolean normalized,
701 GLsizei stride, GLintptr off set); 701 GLsizei stride, GLintptr off set);
702 702
703 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); 703 void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
704 }; 704 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698