Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h

Issue 1412613004: Set attachment for bound framebuffer in FramebufferTextureLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698