| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebGL2RenderingContextBase_h | 5 #ifndef WebGL2RenderingContextBase_h |
| 6 #define WebGL2RenderingContextBase_h | 6 #define WebGL2RenderingContextBase_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/TraceWrapperMember.h" | 8 #include "bindings/core/v8/TraceWrapperMember.h" |
| 9 #include "modules/webgl/WebGLExtension.h" | 9 #include "modules/webgl/WebGLExtension.h" |
| 10 #include "modules/webgl/WebGLRenderingContextBase.h" | 10 #include "modules/webgl/WebGLRenderingContextBase.h" |
| (...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 void drawElementsInstanced(GLenum, GLsizei, GLenum, long long, GLsizei); | 836 void drawElementsInstanced(GLenum, GLsizei, GLenum, long long, GLsizei); |
| 837 void drawRangeElements(GLenum mode, | 837 void drawRangeElements(GLenum mode, |
| 838 GLuint start, | 838 GLuint start, |
| 839 GLuint end, | 839 GLuint end, |
| 840 GLsizei count, | 840 GLsizei count, |
| 841 GLenum type, | 841 GLenum type, |
| 842 long long offset); | 842 long long offset); |
| 843 | 843 |
| 844 /* Multiple Render Targets */ | 844 /* Multiple Render Targets */ |
| 845 void drawBuffers(const Vector<GLenum>&); | 845 void drawBuffers(const Vector<GLenum>&); |
| 846 void clearBufferiv(GLenum, GLint, NotShared<DOMInt32Array>); | 846 void clearBufferiv(GLenum, GLint, NotShared<DOMInt32Array>, GLuint); |
| 847 void clearBufferiv(GLenum, GLint, const Vector<GLint>&); | 847 void clearBufferiv(GLenum, GLint, const Vector<GLint>&, GLuint); |
| 848 void clearBufferuiv(GLenum, GLint, NotShared<DOMUint32Array>); | 848 void clearBufferuiv(GLenum, GLint, NotShared<DOMUint32Array>, GLuint); |
| 849 void clearBufferuiv(GLenum, GLint, const Vector<GLuint>&); | 849 void clearBufferuiv(GLenum, GLint, const Vector<GLuint>&, GLuint); |
| 850 void clearBufferfv(GLenum, GLint, NotShared<DOMFloat32Array>); | 850 void clearBufferfv(GLenum, GLint, NotShared<DOMFloat32Array>, GLuint); |
| 851 void clearBufferfv(GLenum, GLint, const Vector<GLfloat>&); | 851 void clearBufferfv(GLenum, GLint, const Vector<GLfloat>&, GLuint); |
| 852 void clearBufferfi(GLenum, GLint, GLfloat, GLint); | 852 void clearBufferfi(GLenum, GLint, GLfloat, GLint); |
| 853 | 853 |
| 854 /* Query Objects */ | 854 /* Query Objects */ |
| 855 WebGLQuery* createQuery(); | 855 WebGLQuery* createQuery(); |
| 856 void deleteQuery(WebGLQuery*); | 856 void deleteQuery(WebGLQuery*); |
| 857 GLboolean isQuery(WebGLQuery*); | 857 GLboolean isQuery(WebGLQuery*); |
| 858 void beginQuery(GLenum, WebGLQuery*); | 858 void beginQuery(GLenum, WebGLQuery*); |
| 859 void endQuery(GLenum); | 859 void endQuery(GLenum); |
| 860 ScriptValue getQuery(ScriptState*, GLenum, GLenum); | 860 ScriptValue getQuery(ScriptState*, GLenum, GLenum); |
| 861 ScriptValue getQueryParameter(ScriptState*, WebGLQuery*, GLenum); | 861 ScriptValue getQueryParameter(ScriptState*, WebGLQuery*, GLenum); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 | 975 |
| 976 // Helper function to validate target and the attachment combination for | 976 // Helper function to validate target and the attachment combination for |
| 977 // getFramebufferAttachmentParameters. Generate GL error and return false if | 977 // getFramebufferAttachmentParameters. Generate GL error and return false if |
| 978 // parameters are illegal. | 978 // parameters are illegal. |
| 979 bool ValidateGetFramebufferAttachmentParameterFunc(const char* function_name, | 979 bool ValidateGetFramebufferAttachmentParameterFunc(const char* function_name, |
| 980 GLenum target, | 980 GLenum target, |
| 981 GLenum attachment); | 981 GLenum attachment); |
| 982 | 982 |
| 983 bool ValidateClearBuffer(const char* function_name, | 983 bool ValidateClearBuffer(const char* function_name, |
| 984 GLenum buffer, | 984 GLenum buffer, |
| 985 GLsizei length); | 985 GLsizei length, |
| 986 GLuint src_offset); |
| 986 | 987 |
| 987 enum TexStorageType { | 988 enum TexStorageType { |
| 988 kTexStorageType2D, | 989 kTexStorageType2D, |
| 989 kTexStorageType3D, | 990 kTexStorageType3D, |
| 990 }; | 991 }; |
| 991 bool ValidateTexStorage(const char*, | 992 bool ValidateTexStorage(const char*, |
| 992 GLenum, | 993 GLenum, |
| 993 GLsizei, | 994 GLsizei, |
| 994 GLenum, | 995 GLenum, |
| 995 GLsizei, | 996 GLsizei, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 context, | 1129 context, |
| 1129 context->Is3d() && | 1130 context->Is3d() && |
| 1130 WebGLRenderingContextBase::GetWebGLVersion(context) >= 2, | 1131 WebGLRenderingContextBase::GetWebGLVersion(context) >= 2, |
| 1131 context.Is3d() && | 1132 context.Is3d() && |
| 1132 WebGLRenderingContextBase::GetWebGLVersion(&context) >= | 1133 WebGLRenderingContextBase::GetWebGLVersion(&context) >= |
| 1133 2); | 1134 2); |
| 1134 | 1135 |
| 1135 } // namespace blink | 1136 } // namespace blink |
| 1136 | 1137 |
| 1137 #endif | 1138 #endif |
| OLD | NEW |