| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum internal
format, GLsizei width, GLsizei height, const char* functionName) override; | 264 void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum internal
format, GLsizei width, GLsizei height, const char* functionName) override; |
| 265 | 265 |
| 266 // Helper function to check texture 3D target and texture bound to the targe
t. | 266 // Helper function to check texture 3D target and texture bound to the targe
t. |
| 267 // Generate GL errors and return 0 if target is invalid or texture bound is | 267 // Generate GL errors and return 0 if target is invalid or texture bound is |
| 268 // null. Otherwise, return the texture bound to the target. | 268 // null. Otherwise, return the texture bound to the target. |
| 269 WebGLTexture* validateTexture3DBinding(const char* functionName, GLenum targ
et); | 269 WebGLTexture* validateTexture3DBinding(const char* functionName, GLenum targ
et); |
| 270 | 270 |
| 271 WebGLBuffer* validateBufferDataTarget(const char* functionName, GLenum targe
t) override; | 271 WebGLBuffer* validateBufferDataTarget(const char* functionName, GLenum targe
t) override; |
| 272 bool validateBufferDataUsage(const char* functionName, GLenum usage) overrid
e; | 272 bool validateBufferDataUsage(const char* functionName, GLenum usage) overrid
e; |
| 273 | 273 |
| 274 bool canUseTexImageCanvasByGPU(GLint internalformat, GLenum type) override; |
| 275 |
| 274 void removeBoundBuffer(WebGLBuffer*) override; | 276 void removeBoundBuffer(WebGLBuffer*) override; |
| 275 | 277 |
| 276 void resetUnpackParameters() override; | 278 void resetUnpackParameters() override; |
| 277 void restoreUnpackParameters() override; | 279 void restoreUnpackParameters() override; |
| 278 | 280 |
| 279 bool transformFeedbackActive() const override; | 281 bool transformFeedbackActive() const override; |
| 280 bool transformFeedbackPaused() const override; | 282 bool transformFeedbackPaused() const override; |
| 281 void setTransformFeedbackActive(bool); | 283 void setTransformFeedbackActive(bool); |
| 282 void setTransformFeedbackPaused(bool); | 284 void setTransformFeedbackPaused(bool); |
| 283 | 285 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 ScopedPersistent<v8::Array> m_queryWrappers; | 318 ScopedPersistent<v8::Array> m_queryWrappers; |
| 317 }; | 319 }; |
| 318 | 320 |
| 319 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 321 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 320 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 322 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 321 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 323 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 322 | 324 |
| 323 } // namespace blink | 325 } // namespace blink |
| 324 | 326 |
| 325 #endif | 327 #endif |
| OLD | NEW |