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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 virtual void destroyContext(); | 639 virtual void destroyContext(); |
640 void markContextChanged(ContentChangeType); | 640 void markContextChanged(ContentChangeType); |
641 | 641 |
642 void onErrorMessage(const char*, int32_t id); | 642 void onErrorMessage(const char*, int32_t id); |
643 | 643 |
644 void notifyCanvasContextChanged(); | 644 void notifyCanvasContextChanged(); |
645 | 645 |
646 // Query if depth_stencil buffer is supported. | 646 // Query if depth_stencil buffer is supported. |
647 bool isDepthStencilSupported() { return m_isDepthStencilSupported; } | 647 bool isDepthStencilSupported() { return m_isDepthStencilSupported; } |
648 | 648 |
649 // Helper to return the size in bytes of OpenGL data types | |
650 // like GL_FLOAT, GL_INT, etc. | |
651 unsigned sizeInBytes(GLenum type) const; | |
652 | |
653 // Check if each enabled vertex attribute is bound to a buffer. | 649 // Check if each enabled vertex attribute is bound to a buffer. |
654 bool validateRenderingState(const char*); | 650 bool validateRenderingState(const char*); |
655 | 651 |
656 bool validateWebGLObject(const char*, WebGLObject*); | 652 bool validateWebGLObject(const char*, WebGLObject*); |
657 | 653 |
658 // Adds a compressed texture format. | 654 // Adds a compressed texture format. |
659 void addCompressedTextureFormat(GLenum); | 655 void addCompressedTextureFormat(GLenum); |
660 void removeAllCompressedTextureFormats(); | 656 void removeAllCompressedTextureFormats(); |
661 | 657 |
662 // Set UNPACK_ALIGNMENT to 1, all other parameters to 0. | 658 // Set UNPACK_ALIGNMENT to 1, all other parameters to 0. |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 context, | 1659 context, |
1664 context->is3d(), | 1660 context->is3d(), |
1665 context.is3d()); | 1661 context.is3d()); |
1666 | 1662 |
1667 } // namespace blink | 1663 } // namespace blink |
1668 | 1664 |
1669 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1665 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
1670 blink::WebGLRenderingContextBase::TextureUnitState); | 1666 blink::WebGLRenderingContextBase::TextureUnitState); |
1671 | 1667 |
1672 #endif // WebGLRenderingContextBase_h | 1668 #endif // WebGLRenderingContextBase_h |
OLD | NEW |