| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void registerContextExtensions() override; | 57 void registerContextExtensions() override; |
| 58 void setCanvasGetContextResult(RenderingContext&) final; | 58 void setCanvasGetContextResult(RenderingContext&) final; |
| 59 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; | 59 void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; |
| 60 | 60 |
| 61 EAGERLY_FINALIZE(); | 61 EAGERLY_FINALIZE(); |
| 62 DECLARE_VIRTUAL_TRACE(); | 62 DECLARE_VIRTUAL_TRACE(); |
| 63 | 63 |
| 64 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 64 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 WebGLRenderingContext(HTMLCanvasElement*, std::unique_ptr<WebGraphicsContext
3DProvider>, const WebGLContextAttributes&); | 67 WebGLRenderingContext(HTMLCanvasElement*, std::unique_ptr<WebGraphicsContext
3DProvider>, const CanvasContextCreationAttributes&); |
| 68 WebGLRenderingContext(OffscreenCanvas*, std::unique_ptr<WebGraphicsContext3D
Provider>, const WebGLContextAttributes&); | 68 WebGLRenderingContext(OffscreenCanvas*, std::unique_ptr<WebGraphicsContext3D
Provider>, const CanvasContextCreationAttributes&); |
| 69 | 69 |
| 70 // Enabled extension objects. | 70 // Enabled extension objects. |
| 71 Member<ANGLEInstancedArrays> m_angleInstancedArrays; | 71 Member<ANGLEInstancedArrays> m_angleInstancedArrays; |
| 72 Member<EXTBlendMinMax> m_extBlendMinMax; | 72 Member<EXTBlendMinMax> m_extBlendMinMax; |
| 73 Member<EXTDisjointTimerQuery> m_extDisjointTimerQuery; | 73 Member<EXTDisjointTimerQuery> m_extDisjointTimerQuery; |
| 74 Member<EXTFragDepth> m_extFragDepth; | 74 Member<EXTFragDepth> m_extFragDepth; |
| 75 Member<EXTShaderTextureLOD> m_extShaderTextureLOD; | 75 Member<EXTShaderTextureLOD> m_extShaderTextureLOD; |
| 76 Member<EXTsRGB> m_extsRGB; | 76 Member<EXTsRGB> m_extsRGB; |
| 77 Member<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; | 77 Member<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; |
| 78 Member<OESTextureFloat> m_oesTextureFloat; | 78 Member<OESTextureFloat> m_oesTextureFloat; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 94 Member<WebGLDepthTexture> m_webglDepthTexture; | 94 Member<WebGLDepthTexture> m_webglDepthTexture; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, | 97 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, |
| 98 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, | 98 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, |
| 99 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1)
; | 99 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1)
; |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| 102 | 102 |
| 103 #endif // WebGLRenderingContext_h | 103 #endif // WebGLRenderingContext_h |
| OLD | NEW |