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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } | 545 WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } |
546 Extensions3DUtil* extensionsUtil(); | 546 Extensions3DUtil* extensionsUtil(); |
547 | 547 |
548 void reshape(int width, int height) override; | 548 void reshape(int width, int height) override; |
549 | 549 |
550 void markLayerComposited() override; | 550 void markLayerComposited() override; |
551 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) override; | 551 ImageData* paintRenderingResultsToImageData(SourceDrawingBuffer) override; |
552 | 552 |
553 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } | 553 unsigned maxVertexAttribs() const { return m_maxVertexAttribs; } |
554 | 554 |
| 555 void setSurfaceHandle(int); |
| 556 |
555 DECLARE_VIRTUAL_TRACE(); | 557 DECLARE_VIRTUAL_TRACE(); |
556 | 558 |
557 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 559 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
558 | 560 |
559 // Returns approximate gpu memory allocated per pixel. | 561 // Returns approximate gpu memory allocated per pixel. |
560 int externallyAllocatedBytesPerPixel() override; | 562 int externallyAllocatedBytesPerPixel() override; |
561 | 563 |
562 class TextureUnitState { | 564 class TextureUnitState { |
563 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 565 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
564 | 566 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 GLint m_stencilFuncRef, | 777 GLint m_stencilFuncRef, |
776 m_stencilFuncRefBack; // Note that these are the user specified values, | 778 m_stencilFuncRefBack; // Note that these are the user specified values, |
777 // not the internal clamped value. | 779 // not the internal clamped value. |
778 GLuint m_stencilFuncMask, m_stencilFuncMaskBack; | 780 GLuint m_stencilFuncMask, m_stencilFuncMaskBack; |
779 | 781 |
780 bool m_isDepthStencilSupported; | 782 bool m_isDepthStencilSupported; |
781 | 783 |
782 bool m_synthesizedErrorsToConsole; | 784 bool m_synthesizedErrorsToConsole; |
783 int m_numGLErrorsToConsoleAllowed; | 785 int m_numGLErrorsToConsoleAllowed; |
784 | 786 |
| 787 int m_surfaceHandle; |
| 788 |
785 unsigned long m_onePlusMaxNonDefaultTextureUnit; | 789 unsigned long m_onePlusMaxNonDefaultTextureUnit; |
786 | 790 |
787 std::unique_ptr<Extensions3DUtil> m_extensionsUtil; | 791 std::unique_ptr<Extensions3DUtil> m_extensionsUtil; |
788 | 792 |
789 enum ExtensionFlags { | 793 enum ExtensionFlags { |
790 ApprovedExtension = 0x00, | 794 ApprovedExtension = 0x00, |
791 // Extension that is behind the draft extensions runtime flag: | 795 // Extension that is behind the draft extensions runtime flag: |
792 DraftExtension = 0x01, | 796 DraftExtension = 0x01, |
793 }; | 797 }; |
794 | 798 |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 context, | 1669 context, |
1666 context->is3d(), | 1670 context->is3d(), |
1667 context.is3d()); | 1671 context.is3d()); |
1668 | 1672 |
1669 } // namespace blink | 1673 } // namespace blink |
1670 | 1674 |
1671 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1675 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
1672 blink::WebGLRenderingContextBase::TextureUnitState); | 1676 blink::WebGLRenderingContextBase::TextureUnitState); |
1673 | 1677 |
1674 #endif // WebGLRenderingContextBase_h | 1678 #endif // WebGLRenderingContextBase_h |
OLD | NEW |