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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContextBase.h

Issue 1079983002: Introduce SmallTypedArray IDL type and use it for bufferSubData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void bindTexture(GLenum target, WebGLTexture*); 131 void bindTexture(GLenum target, WebGLTexture*);
132 void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 132 void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
133 void blendEquation(GLenum mode); 133 void blendEquation(GLenum mode);
134 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); 134 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
135 void blendFunc(GLenum sfactor, GLenum dfactor); 135 void blendFunc(GLenum sfactor, GLenum dfactor);
136 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 136 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
137 137
138 void bufferData(GLenum target, long long size, GLenum usage); 138 void bufferData(GLenum target, long long size, GLenum usage);
139 void bufferData(GLenum target, DOMArrayBuffer* data, GLenum usage); 139 void bufferData(GLenum target, DOMArrayBuffer* data, GLenum usage);
140 void bufferData(GLenum target, DOMArrayBufferView* data, GLenum usage); 140 void bufferData(GLenum target, DOMArrayBufferView* data, GLenum usage);
141 void bufferSubData(GLenum target, long long offset, const void* data, size_t byteLength);
141 void bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data); 142 void bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data);
142 void bufferSubData(GLenum target, long long offset, DOMArrayBufferView* data ); 143 void bufferSubData(GLenum target, long long offset, DOMArrayBufferView* data );
143 144
144 GLenum checkFramebufferStatus(GLenum target); 145 GLenum checkFramebufferStatus(GLenum target);
145 void clear(GLbitfield mask); 146 void clear(GLbitfield mask);
146 void clearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 147 void clearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
147 void clearDepth(GLfloat); 148 void clearDepth(GLfloat);
148 void clearStencil(GLint); 149 void clearStencil(GLint);
149 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha); 150 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha);
150 void compileShader(WebGLShader*); 151 void compileShader(WebGLShader*);
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 static IntSize oldestContextSize(); 1005 static IntSize oldestContextSize();
1005 }; 1006 };
1006 1007
1007 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1008 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1008 1009
1009 } // namespace blink 1010 } // namespace blink
1010 1011
1011 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1012 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1012 1013
1013 #endif // WebGLRenderingContextBase_h 1014 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698