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

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

Issue 1091543002: IDL: Add [FlexibleArrayBufferView] and use for bufferSubData Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-includes-for-type-tuning
Patch Set: add warning about the storage's life-time 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 class ANGLEInstancedArrays; 57 class ANGLEInstancedArrays;
58 class CHROMIUMSubscribeUniform; 58 class CHROMIUMSubscribeUniform;
59 class CHROMIUMValuebuffer; 59 class CHROMIUMValuebuffer;
60 class EXTBlendMinMax; 60 class EXTBlendMinMax;
61 class EXTFragDepth; 61 class EXTFragDepth;
62 class EXTShaderTextureLOD; 62 class EXTShaderTextureLOD;
63 class EXTsRGB; 63 class EXTsRGB;
64 class EXTTextureFilterAnisotropic; 64 class EXTTextureFilterAnisotropic;
65 class ExceptionState; 65 class ExceptionState;
66 class FlexibleArrayBufferView;
66 class HTMLImageElement; 67 class HTMLImageElement;
67 class HTMLVideoElement; 68 class HTMLVideoElement;
68 class ImageBuffer; 69 class ImageBuffer;
69 class ImageData; 70 class ImageData;
70 class IntSize; 71 class IntSize;
71 class OESElementIndexUint; 72 class OESElementIndexUint;
72 class OESStandardDerivatives; 73 class OESStandardDerivatives;
73 class OESTextureFloat; 74 class OESTextureFloat;
74 class OESTextureFloatLinear; 75 class OESTextureFloatLinear;
75 class OESTextureHalfFloat; 76 class OESTextureHalfFloat;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 134 void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
134 void blendEquation(GLenum mode); 135 void blendEquation(GLenum mode);
135 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); 136 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
136 void blendFunc(GLenum sfactor, GLenum dfactor); 137 void blendFunc(GLenum sfactor, GLenum dfactor);
137 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 138 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
138 139
139 void bufferData(GLenum target, long long size, GLenum usage); 140 void bufferData(GLenum target, long long size, GLenum usage);
140 void bufferData(GLenum target, DOMArrayBuffer* data, GLenum usage); 141 void bufferData(GLenum target, DOMArrayBuffer* data, GLenum usage);
141 void bufferData(GLenum target, DOMArrayBufferView* data, GLenum usage); 142 void bufferData(GLenum target, DOMArrayBufferView* data, GLenum usage);
142 void bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data); 143 void bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data);
143 void bufferSubData(GLenum target, long long offset, DOMArrayBufferView* data ); 144 void bufferSubData(GLenum target, long long offset, const FlexibleArrayBuffe rView& data);
144 145
145 GLenum checkFramebufferStatus(GLenum target); 146 GLenum checkFramebufferStatus(GLenum target);
146 void clear(GLbitfield mask); 147 void clear(GLbitfield mask);
147 void clearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 148 void clearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
148 void clearDepth(GLfloat); 149 void clearDepth(GLfloat);
149 void clearStencil(GLint); 150 void clearStencil(GLint);
150 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha); 151 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha);
151 void compileShader(WebGLShader*); 152 void compileShader(WebGLShader*);
152 153
153 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, DOMArrayBufferView* data); 154 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, DOMArrayBufferView* data);
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 static IntSize oldestContextSize(); 1006 static IntSize oldestContextSize();
1006 }; 1007 };
1007 1008
1008 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1009 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1009 1010
1010 } // namespace blink 1011 } // namespace blink
1011 1012
1012 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1013 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1013 1014
1014 #endif // WebGLRenderingContextBase_h 1015 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « Source/core/dom/FlexibleArrayBufferView.h ('k') | Source/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698