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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 TraceWrapperMember<WebGLTexture> m_texture2DBinding; | 590 TraceWrapperMember<WebGLTexture> m_texture2DBinding; |
591 TraceWrapperMember<WebGLTexture> m_textureCubeMapBinding; | 591 TraceWrapperMember<WebGLTexture> m_textureCubeMapBinding; |
592 TraceWrapperMember<WebGLTexture> m_texture3DBinding; | 592 TraceWrapperMember<WebGLTexture> m_texture3DBinding; |
593 TraceWrapperMember<WebGLTexture> m_texture2DArrayBinding; | 593 TraceWrapperMember<WebGLTexture> m_texture2DArrayBinding; |
594 | 594 |
595 DECLARE_TRACE(); | 595 DECLARE_TRACE(); |
596 DECLARE_TRACE_WRAPPERS(); | 596 DECLARE_TRACE_WRAPPERS(); |
597 }; | 597 }; |
598 | 598 |
599 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const override; | 599 PassRefPtr<Image> getImage(AccelerationHint, SnapshotReason) const override; |
| 600 ImageData* toImageData(SnapshotReason) const override; |
600 void setFilterQuality(SkFilterQuality) override; | 601 void setFilterQuality(SkFilterQuality) override; |
601 bool isWebGL2OrHigher() { return version() >= 2; } | 602 bool isWebGL2OrHigher() { return version() >= 2; } |
602 | 603 |
603 void getHTMLOrOffscreenCanvas(HTMLCanvasElementOrOffscreenCanvas&) const; | 604 void getHTMLOrOffscreenCanvas(HTMLCanvasElementOrOffscreenCanvas&) const; |
604 | 605 |
605 void commit(ExceptionState&); | 606 void commit(ExceptionState&); |
606 | 607 |
607 protected: | 608 protected: |
608 friend class EXTDisjointTimerQuery; | 609 friend class EXTDisjointTimerQuery; |
609 friend class WebGLDrawBuffers; | 610 friend class WebGLDrawBuffers; |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 context, | 1553 context, |
1553 context->is3d(), | 1554 context->is3d(), |
1554 context.is3d()); | 1555 context.is3d()); |
1555 | 1556 |
1556 } // namespace blink | 1557 } // namespace blink |
1557 | 1558 |
1558 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1559 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
1559 blink::WebGLRenderingContextBase::TextureUnitState); | 1560 blink::WebGLRenderingContextBase::TextureUnitState); |
1560 | 1561 |
1561 #endif // WebGLRenderingContextBase_h | 1562 #endif // WebGLRenderingContextBase_h |
OLD | NEW |