| 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 "modules/webgl/WebGLExtension.h" | 8 #include "modules/webgl/WebGLExtension.h" |
| 9 #include "modules/webgl/WebGLRenderingContextBase.h" | 9 #include "modules/webgl/WebGLRenderingContextBase.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class WebGLTexture; | 13 class WebGLTexture; |
| 14 | 14 |
| 15 class WebGLActiveInfo; | 15 class WebGLActiveInfo; |
| 16 class WebGLBuffer; | 16 class WebGLBuffer; |
| 17 class WebGLProgram; | 17 class WebGLProgram; |
| 18 class WebGLQuery; | 18 class WebGLQuery; |
| 19 class WebGLSampler; | 19 class WebGLSampler; |
| 20 class WebGLSync; | 20 class WebGLSync; |
| 21 class WebGLTransformFeedback; | 21 class WebGLTransformFeedback; |
| 22 class WebGLUniformLocation; | 22 class WebGLUniformLocation; |
| 23 class WebGLVertexArrayObject; | 23 class WebGLVertexArrayObject; |
| 24 | 24 |
| 25 class WebGL2RenderingContextBase : public WebGLRenderingContextBase { | 25 class WebGL2RenderingContextBase : public WebGLRenderingContextBase { |
| 26 USING_GARBAGE_COLLECTED_MIXIN(WebGL2RenderingContextBase); | |
| 27 public: | 26 public: |
| 28 ~WebGL2RenderingContextBase() override; | 27 ~WebGL2RenderingContextBase() override; |
| 29 | 28 |
| 30 /* Buffer objects */ | 29 /* Buffer objects */ |
| 31 void copyBufferSubData(GLenum, GLenum, long long, long long, long long); | 30 void copyBufferSubData(GLenum, GLenum, long long, long long, long long); |
| 32 void getBufferSubData(GLenum target, long long offset, DOMArrayBuffer* retur
nedData); | 31 void getBufferSubData(GLenum target, long long offset, DOMArrayBuffer* retur
nedData); |
| 33 | 32 |
| 34 /* Framebuffer objects */ | 33 /* Framebuffer objects */ |
| 35 bool validateTexFuncLayer(const char*, GLenum texTarget, GLint layer); | 34 bool validateTexFuncLayer(const char*, GLenum texTarget, GLint layer); |
| 36 void blitFramebuffer(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint,
GLbitfield, GLenum); | 35 void blitFramebuffer(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint,
GLbitfield, GLenum); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 GLint m_unpackSkipImages; | 313 GLint m_unpackSkipImages; |
| 315 }; | 314 }; |
| 316 | 315 |
| 317 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 316 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 318 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 317 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 319 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 318 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 320 | 319 |
| 321 } // namespace blink | 320 } // namespace blink |
| 322 | 321 |
| 323 #endif | 322 #endif |
| OLD | NEW |