| 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 GLuint destinationOffset, | 1051 GLuint destinationOffset, |
| 1052 GLuint length, | 1052 GLuint length, |
| 1053 WebGLBuffer**, | 1053 WebGLBuffer**, |
| 1054 void** outDestinationDataPtr, | 1054 void** outDestinationDataPtr, |
| 1055 long long* outDestinationByteLength); | 1055 long long* outDestinationByteLength); |
| 1056 const char* validateGetBufferSubDataBounds(const char* functionName, | 1056 const char* validateGetBufferSubDataBounds(const char* functionName, |
| 1057 WebGLBuffer*, | 1057 WebGLBuffer*, |
| 1058 GLintptr sourceByteOffset, | 1058 GLintptr sourceByteOffset, |
| 1059 long long destinationByteLength); | 1059 long long destinationByteLength); |
| 1060 | 1060 |
| 1061 bool canUseTexImageByGPU(TexImageFunctionID, | |
| 1062 GLint internalformat, | |
| 1063 GLenum type) override; | |
| 1064 | |
| 1065 void removeBoundBuffer(WebGLBuffer*) override; | 1061 void removeBoundBuffer(WebGLBuffer*) override; |
| 1066 | 1062 |
| 1067 void resetUnpackParameters() override; | 1063 void resetUnpackParameters() override; |
| 1068 void restoreUnpackParameters() override; | 1064 void restoreUnpackParameters() override; |
| 1069 | 1065 |
| 1070 void renderbufferStorageHelper(GLenum target, | 1066 void renderbufferStorageHelper(GLenum target, |
| 1071 GLsizei samples, | 1067 GLsizei samples, |
| 1072 GLenum internalformat, | 1068 GLenum internalformat, |
| 1073 GLsizei width, | 1069 GLsizei width, |
| 1074 GLsizei height, | 1070 GLsizei height, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 context, | 1113 context, |
| 1118 context->is3d() && | 1114 context->is3d() && |
| 1119 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 1115 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 1120 context.is3d() && | 1116 context.is3d() && |
| 1121 WebGLRenderingContextBase::getWebGLVersion(&context) >= | 1117 WebGLRenderingContextBase::getWebGLVersion(&context) >= |
| 1122 2); | 1118 2); |
| 1123 | 1119 |
| 1124 } // namespace blink | 1120 } // namespace blink |
| 1125 | 1121 |
| 1126 #endif | 1122 #endif |
| OLD | NEW |