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

Side by Side Diff: Source/core/html/canvas/WebGL2RenderingContextBase.h

Issue 1099853002: WebGL: add targets for WebGL 2 when check FBO targets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed kbr@'s feedback Created 5 years, 7 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
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGL2RenderingContextBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 ScriptValue getInt64Parameter(ScriptState*, GLenum); 175 ScriptValue getInt64Parameter(ScriptState*, GLenum);
176 176
177 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool); 177 void texSubImage3DImpl(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, I mage*, WebGLImageConversion::ImageHtmlDomSource, bool, bool);
178 178
179 /* WebGLRenderingContextBase overrides */ 179 /* WebGLRenderingContextBase overrides */
180 bool validateCapability(const char* functionName, GLenum) override; 180 bool validateCapability(const char* functionName, GLenum) override;
181 bool validateBufferTarget(const char* functionName, GLenum target) override; 181 bool validateBufferTarget(const char* functionName, GLenum target) override;
182 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web GLBuffer*) override; 182 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web GLBuffer*) override;
183 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target , bool useSixEnumsForCubeMap) override; 183 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target , bool useSixEnumsForCubeMap) override;
184 bool validateFramebufferTarget(GLenum target) override;
185 WebGLFramebuffer* getFramebufferBinding(GLenum target) override;
184 186
185 RefPtrWillBeMember<WebGLFramebuffer> m_readFramebufferBinding; 187 RefPtrWillBeMember<WebGLFramebuffer> m_readFramebufferBinding;
186 }; 188 };
187 189
188 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, 190 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,
189 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, 191 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2,
190 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ; 192 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ;
191 193
192 } // namespace blink 194 } // namespace blink
193 195
194 #endif 196 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGL2RenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698