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 25 matching lines...) Expand all Loading... |
36 static PassOwnPtrWillBeRawPtr<WebGLRenderingContext> create(HTMLCanvasElemen
t*, const CanvasContextCreationAttributes&); | 36 static PassOwnPtrWillBeRawPtr<WebGLRenderingContext> create(HTMLCanvasElemen
t*, const CanvasContextCreationAttributes&); |
37 virtual ~WebGLRenderingContext(); | 37 virtual ~WebGLRenderingContext(); |
38 | 38 |
39 virtual unsigned version() const override { return 1; } | 39 virtual unsigned version() const override { return 1; } |
40 virtual String contextName() const override { return "WebGLRenderingContext"
; } | 40 virtual String contextName() const override { return "WebGLRenderingContext"
; } |
41 virtual void registerContextExtensions() override; | 41 virtual void registerContextExtensions() override; |
42 | 42 |
43 DECLARE_VIRTUAL_TRACE(); | 43 DECLARE_VIRTUAL_TRACE(); |
44 | 44 |
45 private: | 45 private: |
46 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte
xt3D>, const WebGLContextAttributes&); | 46 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<WebGraphicsContext3D>,
const WebGLContextAttributes&); |
47 | 47 |
48 // Enabled extension objects. | 48 // Enabled extension objects. |
49 RefPtrWillBeMember<ANGLEInstancedArrays> m_angleInstancedArrays; | 49 RefPtrWillBeMember<ANGLEInstancedArrays> m_angleInstancedArrays; |
50 RefPtrWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform; | 50 RefPtrWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform; |
51 RefPtrWillBeMember<EXTBlendMinMax> m_extBlendMinMax; | 51 RefPtrWillBeMember<EXTBlendMinMax> m_extBlendMinMax; |
52 RefPtrWillBeMember<EXTFragDepth> m_extFragDepth; | 52 RefPtrWillBeMember<EXTFragDepth> m_extFragDepth; |
53 RefPtrWillBeMember<EXTShaderTextureLOD> m_extShaderTextureLOD; | 53 RefPtrWillBeMember<EXTShaderTextureLOD> m_extShaderTextureLOD; |
54 RefPtrWillBeMember<EXTsRGB> m_extsRGB; | 54 RefPtrWillBeMember<EXTsRGB> m_extsRGB; |
55 RefPtrWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropi
c; | 55 RefPtrWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropi
c; |
56 RefPtrWillBeMember<OESTextureFloat> m_oesTextureFloat; | 56 RefPtrWillBeMember<OESTextureFloat> m_oesTextureFloat; |
(...skipping 14 matching lines...) Expand all Loading... |
71 RefPtrWillBeMember<WebGLDepthTexture> m_webglDepthTexture; | 71 RefPtrWillBeMember<WebGLDepthTexture> m_webglDepthTexture; |
72 }; | 72 }; |
73 | 73 |
74 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, | 74 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, |
75 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, | 75 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, |
76 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1)
; | 76 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1)
; |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // WebGLRenderingContext_h | 80 #endif // WebGLRenderingContext_h |
OLD | NEW |