| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 friend class WebGLCompressedTextureETC; | 596 friend class WebGLCompressedTextureETC; |
| 597 friend class WebGLCompressedTextureETC1; | 597 friend class WebGLCompressedTextureETC1; |
| 598 friend class WebGLCompressedTexturePVRTC; | 598 friend class WebGLCompressedTexturePVRTC; |
| 599 friend class WebGLCompressedTextureS3TC; | 599 friend class WebGLCompressedTextureS3TC; |
| 600 friend class WebGLCompressedTextureS3TCsRGB; | 600 friend class WebGLCompressedTextureS3TCsRGB; |
| 601 friend class WebGLRenderingContextErrorMessageCallback; | 601 friend class WebGLRenderingContextErrorMessageCallback; |
| 602 friend class WebGLVertexArrayObjectBase; | 602 friend class WebGLVertexArrayObjectBase; |
| 603 friend class ScopedDrawingBufferBinder; | 603 friend class ScopedDrawingBufferBinder; |
| 604 friend class ScopedTexture2DRestorer; | 604 friend class ScopedTexture2DRestorer; |
| 605 friend class ScopedFramebufferRestorer; | 605 friend class ScopedFramebufferRestorer; |
| 606 // To allow V8WebGL[2]RenderingContext to call visitChildDOMWrappers. | |
| 607 friend class V8WebGLRenderingContext; | |
| 608 friend class ScopedUnpackParametersResetRestore; | 606 friend class ScopedUnpackParametersResetRestore; |
| 609 | 607 |
| 610 WebGLRenderingContextBase(HTMLCanvasElement*, | 608 WebGLRenderingContextBase(HTMLCanvasElement*, |
| 611 std::unique_ptr<WebGraphicsContext3DProvider>, | 609 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 612 const CanvasContextCreationAttributes&, | 610 const CanvasContextCreationAttributes&, |
| 613 unsigned); | 611 unsigned); |
| 614 WebGLRenderingContextBase(OffscreenCanvas*, | 612 WebGLRenderingContextBase(OffscreenCanvas*, |
| 615 std::unique_ptr<WebGraphicsContext3DProvider>, | 613 std::unique_ptr<WebGraphicsContext3DProvider>, |
| 616 const CanvasContextCreationAttributes&, | 614 const CanvasContextCreationAttributes&, |
| 617 unsigned); | 615 unsigned); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 657 |
| 660 // Adds a compressed texture format. | 658 // Adds a compressed texture format. |
| 661 void addCompressedTextureFormat(GLenum); | 659 void addCompressedTextureFormat(GLenum); |
| 662 void removeAllCompressedTextureFormats(); | 660 void removeAllCompressedTextureFormats(); |
| 663 | 661 |
| 664 // Set UNPACK_ALIGNMENT to 1, all other parameters to 0. | 662 // Set UNPACK_ALIGNMENT to 1, all other parameters to 0. |
| 665 virtual void resetUnpackParameters(); | 663 virtual void resetUnpackParameters(); |
| 666 // Restore the client unpack parameters. | 664 // Restore the client unpack parameters. |
| 667 virtual void restoreUnpackParameters(); | 665 virtual void restoreUnpackParameters(); |
| 668 | 666 |
| 669 virtual void visitChildDOMWrappers(v8::Isolate*, | |
| 670 const v8::Persistent<v8::Object>&); | |
| 671 | |
| 672 PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, | 667 PassRefPtr<Image> drawImageIntoBuffer(PassRefPtr<Image>, |
| 673 int width, | 668 int width, |
| 674 int height, | 669 int height, |
| 675 const char* functionName); | 670 const char* functionName); |
| 676 | 671 |
| 677 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*); | 672 PassRefPtr<Image> videoFrameToImage(HTMLVideoElement*); |
| 678 | 673 |
| 679 // Structure for rendering to a DrawingBuffer, instead of directly | 674 // Structure for rendering to a DrawingBuffer, instead of directly |
| 680 // to the back-buffer of m_context. | 675 // to the back-buffer of m_context. |
| 681 RefPtr<DrawingBuffer> m_drawingBuffer; | 676 RefPtr<DrawingBuffer> m_drawingBuffer; |
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1666 context, | 1661 context, |
| 1667 context->is3d(), | 1662 context->is3d(), |
| 1668 context.is3d()); | 1663 context.is3d()); |
| 1669 | 1664 |
| 1670 } // namespace blink | 1665 } // namespace blink |
| 1671 | 1666 |
| 1672 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1667 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
| 1673 blink::WebGLRenderingContextBase::TextureUnitState); | 1668 blink::WebGLRenderingContextBase::TextureUnitState); |
| 1674 | 1669 |
| 1675 #endif // WebGLRenderingContextBase_h | 1670 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |