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 "core/html/canvas/WebGLExtension.h" | 8 #include "core/html/canvas/WebGLExtension.h" |
9 #include "core/html/canvas/WebGLRenderingContextBase.h" | 9 #include "core/html/canvas/WebGLRenderingContextBase.h" |
10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class WebGLTexture; | 14 class WebGLTexture; |
15 | 15 |
16 class WebGLActiveInfo; | 16 class WebGLActiveInfo; |
17 class WebGLBuffer; | 17 class WebGLBuffer; |
18 class WebGLProgram; | 18 class WebGLProgram; |
19 class WebGLQuery; | 19 class WebGLQuery; |
20 class WebGLSampler; | 20 class WebGLSampler; |
21 class WebGLSync; | 21 class WebGLSync; |
22 class WebGLTransformFeedback; | 22 class WebGLTransformFeedback; |
23 class WebGLUniformLocation; | 23 class WebGLUniformLocation; |
24 class WebGLVertexArrayObject; | 24 class WebGLVertexArrayObject; |
25 | 25 |
26 class WebGL2RenderingContextBase : public WebGLRenderingContextBase { | 26 class WebGL2RenderingContextBase : public WebGLRenderingContextBase { |
27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGL2RenderingContextBase); | 27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN_NESTED(WebGL2RenderingContextBase, Web
GLRenderingContextBase); |
28 public: | 28 public: |
29 virtual ~WebGL2RenderingContextBase(); | 29 virtual ~WebGL2RenderingContextBase(); |
30 | 30 |
31 /* Buffer objects */ | 31 /* Buffer objects */ |
32 void copyBufferSubData(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr); | 32 void copyBufferSubData(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr); |
33 void getBufferSubData(GLenum target, GLintptr offset, DOMArrayBuffer* return
edData); | 33 void getBufferSubData(GLenum target, GLintptr offset, DOMArrayBuffer* return
edData); |
34 | 34 |
35 /* Framebuffer objects */ | 35 /* Framebuffer objects */ |
36 void blitFramebuffer(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint,
GLbitfield, GLenum); | 36 void blitFramebuffer(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint,
GLbitfield, GLenum); |
37 void framebufferTextureLayer(GLenum, GLenum, const WebGLTexture*, GLint, GLi
nt); | 37 void framebufferTextureLayer(GLenum, GLenum, const WebGLTexture*, GLint, GLi
nt); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web
GLBuffer*) override; | 171 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web
GLBuffer*) override; |
172 }; | 172 }; |
173 | 173 |
174 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 174 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
175 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 175 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
176 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 176 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
177 | 177 |
178 } // namespace blink | 178 } // namespace blink |
179 | 179 |
180 #endif | 180 #endif |
OLD | NEW |