| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 friend class WebGLCompressedTexturePVRTC; | 608 friend class WebGLCompressedTexturePVRTC; |
| 609 friend class WebGLCompressedTextureS3TC; | 609 friend class WebGLCompressedTextureS3TC; |
| 610 friend class WebGLCompressedTextureS3TCsRGB; | 610 friend class WebGLCompressedTextureS3TCsRGB; |
| 611 friend class WebGLRenderingContextErrorMessageCallback; | 611 friend class WebGLRenderingContextErrorMessageCallback; |
| 612 friend class WebGLVertexArrayObjectBase; | 612 friend class WebGLVertexArrayObjectBase; |
| 613 friend class ScopedDrawingBufferBinder; | 613 friend class ScopedDrawingBufferBinder; |
| 614 friend class ScopedTexture2DRestorer; | 614 friend class ScopedTexture2DRestorer; |
| 615 friend class ScopedFramebufferRestorer; | 615 friend class ScopedFramebufferRestorer; |
| 616 // To allow V8WebGL[2]RenderingContext to call visitChildDOMWrappers. | 616 // To allow V8WebGL[2]RenderingContext to call visitChildDOMWrappers. |
| 617 friend class V8WebGLRenderingContext; | 617 friend class V8WebGLRenderingContext; |
| 618 friend class ScopedUnpackParametersResetRestore; |
| 618 | 619 |
| 619 WebGLRenderingContextBase(HTMLCanvasElement*, | 620 WebGLRenderingContextBase(HTMLCanvasElement*, |
| 620 std::unique_ptr<WebGraphicsContext3DProvider>, | 621 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 621 const CanvasContextCreationAttributes&, | 622 const CanvasContextCreationAttributes&, |
| 622 unsigned); | 623 unsigned); |
| 623 WebGLRenderingContextBase(OffscreenCanvas*, | 624 WebGLRenderingContextBase(OffscreenCanvas*, |
| 624 std::unique_ptr<WebGraphicsContext3DProvider>, | 625 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 625 const CanvasContextCreationAttributes&, | 626 const CanvasContextCreationAttributes&, |
| 626 unsigned); | 627 unsigned); |
| 627 PassRefPtr<DrawingBuffer> createDrawingBuffer( | 628 PassRefPtr<DrawingBuffer> createDrawingBuffer( |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 | 980 |
| 980 // Convert texture internal format. | 981 // Convert texture internal format. |
| 981 GLenum convertTexInternalFormat(GLenum internalformat, GLenum type); | 982 GLenum convertTexInternalFormat(GLenum internalformat, GLenum type); |
| 982 | 983 |
| 983 enum TexImageFunctionType { | 984 enum TexImageFunctionType { |
| 984 TexImage, | 985 TexImage, |
| 985 TexSubImage, | 986 TexSubImage, |
| 986 CopyTexImage, | 987 CopyTexImage, |
| 987 CompressedTexImage | 988 CompressedTexImage |
| 988 }; | 989 }; |
| 990 |
| 991 // This must stay in sync with WebMediaPlayer::TexImageFunctionID. |
| 989 enum TexImageFunctionID { | 992 enum TexImageFunctionID { |
| 990 TexImage2D, | 993 TexImage2D, |
| 991 TexSubImage2D, | 994 TexSubImage2D, |
| 992 TexImage3D, | 995 TexImage3D, |
| 993 TexSubImage3D | 996 TexSubImage3D |
| 994 }; | 997 }; |
| 995 enum TexImageByGPUType { | 998 enum TexImageByGPUType { |
| 996 TexImage2DByGPU, | 999 TexImage2DByGPU, |
| 997 TexSubImage2DByGPU, | 1000 TexSubImage2DByGPU, |
| 998 TexSubImage3DByGPU | 1001 TexSubImage3DByGPU |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 context, | 1671 context, |
| 1669 context->is3d(), | 1672 context->is3d(), |
| 1670 context.is3d()); | 1673 context.is3d()); |
| 1671 | 1674 |
| 1672 } // namespace blink | 1675 } // namespace blink |
| 1673 | 1676 |
| 1674 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1677 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
| 1675 blink::WebGLRenderingContextBase::TextureUnitState); | 1678 blink::WebGLRenderingContextBase::TextureUnitState); |
| 1676 | 1679 |
| 1677 #endif // WebGLRenderingContextBase_h | 1680 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |