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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 GLuint destination_offset, | 1052 GLuint destination_offset, |
1053 GLuint length, | 1053 GLuint length, |
1054 WebGLBuffer**, | 1054 WebGLBuffer**, |
1055 void** out_destination_data_ptr, | 1055 void** out_destination_data_ptr, |
1056 long long* out_destination_byte_length); | 1056 long long* out_destination_byte_length); |
1057 const char* ValidateGetBufferSubDataBounds(const char* function_name, | 1057 const char* ValidateGetBufferSubDataBounds(const char* function_name, |
1058 WebGLBuffer*, | 1058 WebGLBuffer*, |
1059 GLintptr source_byte_offset, | 1059 GLintptr source_byte_offset, |
1060 long long destination_byte_length); | 1060 long long destination_byte_length); |
1061 | 1061 |
1062 bool CanUseTexImageByGPU(TexImageFunctionID, | |
1063 GLint internalformat, | |
1064 GLenum type) override; | |
1065 | |
1066 void RemoveBoundBuffer(WebGLBuffer*) override; | 1062 void RemoveBoundBuffer(WebGLBuffer*) override; |
1067 | 1063 |
1068 void ResetUnpackParameters() override; | 1064 void ResetUnpackParameters() override; |
1069 void RestoreUnpackParameters() override; | 1065 void RestoreUnpackParameters() override; |
1070 | 1066 |
1071 void RenderbufferStorageHelper(GLenum target, | 1067 void RenderbufferStorageHelper(GLenum target, |
1072 GLsizei samples, | 1068 GLsizei samples, |
1073 GLenum internalformat, | 1069 GLenum internalformat, |
1074 GLsizei width, | 1070 GLsizei width, |
1075 GLsizei height, | 1071 GLsizei height, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 context, | 1114 context, |
1119 context->Is3d() && | 1115 context->Is3d() && |
1120 WebGLRenderingContextBase::GetWebGLVersion(context) >= 2, | 1116 WebGLRenderingContextBase::GetWebGLVersion(context) >= 2, |
1121 context.Is3d() && | 1117 context.Is3d() && |
1122 WebGLRenderingContextBase::GetWebGLVersion(&context) >= | 1118 WebGLRenderingContextBase::GetWebGLVersion(&context) >= |
1123 2); | 1119 2); |
1124 | 1120 |
1125 } // namespace blink | 1121 } // namespace blink |
1126 | 1122 |
1127 #endif | 1123 #endif |
OLD | NEW |