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

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

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 months 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 | Annotate | Revision Log
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 #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(WebGL2RenderingContextBase);
28 public: 28 public:
29 virtual ~WebGL2RenderingContextBase(); 29 ~WebGL2RenderingContextBase() override;
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);
38 ScriptValue getInternalformatParameter(ScriptState*, GLenum, GLenum, GLenum) ; 38 ScriptValue getInternalformatParameter(ScriptState*, GLenum, GLenum, GLenum) ;
39 void invalidateFramebuffer(GLenum, Vector<GLenum>&); 39 void invalidateFramebuffer(GLenum, Vector<GLenum>&);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 WillBeHeapVector<RefPtrWillBeMember<WebGLSampler>> m_samplerUnits; 223 WillBeHeapVector<RefPtrWillBeMember<WebGLSampler>> m_samplerUnits;
224 }; 224 };
225 225
226 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, 226 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,
227 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, 227 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2,
228 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ; 228 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ;
229 229
230 } // namespace blink 230 } // namespace blink
231 231
232 #endif 232 #endif
OLDNEW
« no previous file with comments | « Source/modules/webgl/OESVertexArrayObject.h ('k') | Source/modules/webgl/WebGLCompressedTextureATC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698