| 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 "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/TraceWrapperMember.h" | 9 #include "bindings/core/v8/TraceWrapperMember.h" |
| 10 #include "modules/webgl/WebGLExtension.h" | 10 #include "modules/webgl/WebGLExtension.h" |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 DOMArrayBufferView*); | 486 DOMArrayBufferView*); |
| 487 void | 487 void |
| 488 texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, ImageData*); | 488 texSubImage3D(GLenum, GLint, GLint, GLint, GLint, GLenum, GLenum, ImageData*); |
| 489 void texSubImage3D(GLenum, | 489 void texSubImage3D(GLenum, |
| 490 GLint, | 490 GLint, |
| 491 GLint, | 491 GLint, |
| 492 GLint, | 492 GLint, |
| 493 GLint, | 493 GLint, |
| 494 GLenum, | 494 GLenum, |
| 495 GLenum, | 495 GLenum, |
| 496 HTMLCanvasElement*, | |
| 497 ExceptionState&); | |
| 498 void texSubImage3D(GLenum, | |
| 499 GLint, | |
| 500 GLint, | |
| 501 GLint, | |
| 502 GLint, | |
| 503 GLenum, | |
| 504 GLenum, | |
| 505 HTMLVideoElement*, | 496 HTMLVideoElement*, |
| 506 ExceptionState&); | 497 ExceptionState&); |
| 507 void texSubImage3D(GLenum, | 498 void texSubImage3D(GLenum, |
| 508 GLint, | 499 GLint, |
| 509 GLint, | 500 GLint, |
| 510 GLint, | 501 GLint, |
| 511 GLint, | 502 GLint, |
| 512 GLenum, | 503 GLenum, |
| 513 GLenum, | 504 GLenum, |
| 514 ImageBitmap*, | 505 ImageBitmap*, |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 WebGLBuffer*); | 821 WebGLBuffer*); |
| 831 | 822 |
| 832 WebGLImageConversion::PixelStoreParams getPackPixelStoreParams() override; | 823 WebGLImageConversion::PixelStoreParams getPackPixelStoreParams() override; |
| 833 WebGLImageConversion::PixelStoreParams getUnpackPixelStoreParams( | 824 WebGLImageConversion::PixelStoreParams getUnpackPixelStoreParams( |
| 834 TexImageDimension) override; | 825 TexImageDimension) override; |
| 835 | 826 |
| 836 bool checkAndTranslateAttachments(const char* functionName, | 827 bool checkAndTranslateAttachments(const char* functionName, |
| 837 GLenum, | 828 GLenum, |
| 838 Vector<GLenum>&); | 829 Vector<GLenum>&); |
| 839 | 830 |
| 831 IntRect getTextureSourceSubRectangle(GLsizei width, GLsizei height); |
| 832 |
| 840 /* WebGLRenderingContextBase overrides */ | 833 /* WebGLRenderingContextBase overrides */ |
| 841 unsigned getMaxWebGLLocationLength() const override { return 1024; }; | 834 unsigned getMaxWebGLLocationLength() const override { return 1024; }; |
| 842 bool validateCapability(const char* functionName, GLenum) override; | 835 bool validateCapability(const char* functionName, GLenum) override; |
| 843 bool validateBufferTarget(const char* functionName, GLenum target) override; | 836 bool validateBufferTarget(const char* functionName, GLenum target) override; |
| 844 bool validateAndUpdateBufferBindTarget(const char* functionName, | 837 bool validateAndUpdateBufferBindTarget(const char* functionName, |
| 845 GLenum, | 838 GLenum, |
| 846 WebGLBuffer*) override; | 839 WebGLBuffer*) override; |
| 847 bool validateFramebufferTarget(GLenum target) override; | 840 bool validateFramebufferTarget(GLenum target) override; |
| 848 | 841 |
| 849 bool validateReadPixelsFormatAndType(GLenum format, | 842 bool validateReadPixelsFormatAndType(GLenum format, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 context, | 941 context, |
| 949 context->is3d() && | 942 context->is3d() && |
| 950 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 943 WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 951 context.is3d() && | 944 context.is3d() && |
| 952 WebGLRenderingContextBase::getWebGLVersion(&context) >= | 945 WebGLRenderingContextBase::getWebGLVersion(&context) >= |
| 953 2); | 946 2); |
| 954 | 947 |
| 955 } // namespace blink | 948 } // namespace blink |
| 956 | 949 |
| 957 #endif | 950 #endif |
| OLD | NEW |