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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 String contextName() const override { return "WebGLRenderingContext"; } | 54 String contextName() const override { return "WebGLRenderingContext"; } |
55 void registerContextExtensions() override; | 55 void registerContextExtensions() override; |
56 | 56 |
57 EAGERLY_FINALIZE(); | 57 EAGERLY_FINALIZE(); |
58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
59 | 59 |
60 private: | 60 private: |
61 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<WebGraphicsContext3D>,
const WebGLContextAttributes&); | 61 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<WebGraphicsContext3D>,
const WebGLContextAttributes&); |
62 | 62 |
63 // Enabled extension objects. | 63 // Enabled extension objects. |
64 PersistentWillBeMember<ANGLEInstancedArrays> m_angleInstancedArrays; | 64 RefPtrWillBeMember<ANGLEInstancedArrays> m_angleInstancedArrays; |
65 PersistentWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform; | 65 RefPtrWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform; |
66 PersistentWillBeMember<EXTBlendMinMax> m_extBlendMinMax; | 66 RefPtrWillBeMember<EXTBlendMinMax> m_extBlendMinMax; |
67 PersistentWillBeMember<EXTFragDepth> m_extFragDepth; | 67 RefPtrWillBeMember<EXTFragDepth> m_extFragDepth; |
68 PersistentWillBeMember<EXTShaderTextureLOD> m_extShaderTextureLOD; | 68 RefPtrWillBeMember<EXTShaderTextureLOD> m_extShaderTextureLOD; |
69 PersistentWillBeMember<EXTsRGB> m_extsRGB; | 69 RefPtrWillBeMember<EXTsRGB> m_extsRGB; |
70 PersistentWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisot
ropic; | 70 RefPtrWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropi
c; |
71 PersistentWillBeMember<OESTextureFloat> m_oesTextureFloat; | 71 RefPtrWillBeMember<OESTextureFloat> m_oesTextureFloat; |
72 PersistentWillBeMember<OESTextureFloatLinear> m_oesTextureFloatLinear; | 72 RefPtrWillBeMember<OESTextureFloatLinear> m_oesTextureFloatLinear; |
73 PersistentWillBeMember<OESTextureHalfFloat> m_oesTextureHalfFloat; | 73 RefPtrWillBeMember<OESTextureHalfFloat> m_oesTextureHalfFloat; |
74 PersistentWillBeMember<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinea
r; | 74 RefPtrWillBeMember<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear; |
75 PersistentWillBeMember<OESStandardDerivatives> m_oesStandardDerivatives; | 75 RefPtrWillBeMember<OESStandardDerivatives> m_oesStandardDerivatives; |
76 PersistentWillBeMember<OESVertexArrayObject> m_oesVertexArrayObject; | 76 RefPtrWillBeMember<OESVertexArrayObject> m_oesVertexArrayObject; |
77 PersistentWillBeMember<OESElementIndexUint> m_oesElementIndexUint; | 77 RefPtrWillBeMember<OESElementIndexUint> m_oesElementIndexUint; |
78 PersistentWillBeMember<WebGLLoseContext> m_webglLoseContext; | 78 RefPtrWillBeMember<WebGLLoseContext> m_webglLoseContext; |
79 PersistentWillBeMember<WebGLDebugRendererInfo> m_webglDebugRendererInfo; | 79 RefPtrWillBeMember<WebGLDebugRendererInfo> m_webglDebugRendererInfo; |
80 PersistentWillBeMember<WebGLDebugShaders> m_webglDebugShaders; | 80 RefPtrWillBeMember<WebGLDebugShaders> m_webglDebugShaders; |
81 PersistentWillBeMember<WebGLDrawBuffers> m_webglDrawBuffers; | 81 RefPtrWillBeMember<WebGLDrawBuffers> m_webglDrawBuffers; |
82 PersistentWillBeMember<WebGLCompressedTextureATC> m_webglCompressedTextureAT
C; | 82 RefPtrWillBeMember<WebGLCompressedTextureATC> m_webglCompressedTextureATC; |
83 PersistentWillBeMember<WebGLCompressedTextureETC1> m_webglCompressedTextureE
TC1; | 83 RefPtrWillBeMember<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1; |
84 PersistentWillBeMember<WebGLCompressedTexturePVRTC> m_webglCompressedTexture
PVRTC; | 84 RefPtrWillBeMember<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRT
C; |
85 PersistentWillBeMember<WebGLCompressedTextureS3TC> m_webglCompressedTextureS
3TC; | 85 RefPtrWillBeMember<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; |
86 PersistentWillBeMember<WebGLDepthTexture> m_webglDepthTexture; | 86 RefPtrWillBeMember<WebGLDepthTexture> m_webglDepthTexture; |
87 }; | 87 }; |
88 | 88 |
89 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, | 89 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, |
90 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, | 90 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, |
91 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1)
; | 91 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1)
; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif // WebGLRenderingContext_h | 95 #endif // WebGLRenderingContext_h |
OLD | NEW |