| 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGL2RenderingContextBase); | 26 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGL2RenderingContextBase); |
| 27 public: | 27 public: |
| 28 ~WebGL2RenderingContextBase() override; | 28 ~WebGL2RenderingContextBase() override; |
| 29 | 29 |
| 30 /* Buffer objects */ | 30 /* Buffer objects */ |
| 31 void copyBufferSubData(GLenum, GLenum, long long, long long, long long); | 31 void copyBufferSubData(GLenum, GLenum, long long, long long, long long); |
| 32 void getBufferSubData(GLenum target, long long offset, DOMArrayBuffer* retur
nedData); | 32 void getBufferSubData(GLenum target, long long offset, DOMArrayBuffer* retur
nedData); |
| 33 | 33 |
| 34 /* Framebuffer objects */ | 34 /* Framebuffer objects */ |
| 35 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); |
| 36 void framebufferTextureLayer(GLenum, GLenum, const WebGLTexture*, GLint, GLi
nt); | 36 void framebufferTextureLayer(ScriptState*, GLenum, GLenum, WebGLTexture*, GL
int, GLint); |
| 37 ScriptValue getInternalformatParameter(ScriptState*, GLenum, GLenum, GLenum)
; | 37 ScriptValue getInternalformatParameter(ScriptState*, GLenum, GLenum, GLenum)
; |
| 38 void invalidateFramebuffer(GLenum, Vector<GLenum>&); | 38 void invalidateFramebuffer(GLenum, Vector<GLenum>&); |
| 39 void invalidateSubFramebuffer(GLenum, Vector<GLenum>&, GLint, GLint, GLsizei
, GLsizei); | 39 void invalidateSubFramebuffer(GLenum, Vector<GLenum>&, GLint, GLint, GLsizei
, GLsizei); |
| 40 void readBuffer(GLenum); | 40 void readBuffer(GLenum); |
| 41 | 41 |
| 42 /* Renderbuffer objects */ | 42 /* Renderbuffer objects */ |
| 43 void renderbufferStorageMultisample(GLenum, GLsizei, GLenum, GLsizei, GLsize
i); | 43 void renderbufferStorageMultisample(GLenum, GLsizei, GLenum, GLsizei, GLsize
i); |
| 44 | 44 |
| 45 /* Texture objects */ | 45 /* Texture objects */ |
| 46 void texStorage2D(GLenum, GLsizei, GLenum, GLsizei, GLsizei); | 46 void texStorage2D(GLenum, GLsizei, GLenum, GLsizei, GLsizei); |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; | 254 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 257 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 258 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 258 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 259 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 259 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 260 | 260 |
| 261 } // namespace blink | 261 } // namespace blink |
| 262 | 262 |
| 263 #endif | 263 #endif |
| OLD | NEW |