Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 35
36 class WebGLRenderingContext final : public WebGLRenderingContextBase { 36 class WebGLRenderingContext final : public WebGLRenderingContextBase {
37 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
38 public: 38 public:
39 class Factory : public CanvasRenderingContextFactory { 39 class Factory : public CanvasRenderingContextFactory {
40 WTF_MAKE_NONCOPYABLE(Factory); 40 WTF_MAKE_NONCOPYABLE(Factory);
41 public: 41 public:
42 Factory() {} 42 Factory() {}
43 ~Factory() override {} 43 ~Factory() override {}
44 44
45 PassOwnPtrWillBeRawPtr<CanvasRenderingContext> create(HTMLCanvasElement* , const CanvasContextCreationAttributes&, Document&) override; 45 RawPtr<CanvasRenderingContext> create(HTMLCanvasElement*, const CanvasCo ntextCreationAttributes&, Document&) override;
46 CanvasRenderingContext::ContextType contextType() const override { retur n CanvasRenderingContext::ContextWebgl; } 46 CanvasRenderingContext::ContextType contextType() const override { retur n CanvasRenderingContext::ContextWebgl; }
47 void onError(HTMLCanvasElement*, const String& error) override; 47 void onError(HTMLCanvasElement*, const String& error) override;
48 }; 48 };
49 49
50 ~WebGLRenderingContext() override; 50 ~WebGLRenderingContext() override;
51 51
52 CanvasRenderingContext::ContextType contextType() const override { return Ca nvasRenderingContext::ContextWebgl; } 52 CanvasRenderingContext::ContextType contextType() const override { return Ca nvasRenderingContext::ContextWebgl; }
53 unsigned version() const override { return 1; } 53 unsigned version() const override { return 1; }
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 Member<ANGLEInstancedArrays> m_angleInstancedArrays;
65 PersistentWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform; 65 Member<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform;
66 PersistentWillBeMember<EXTBlendMinMax> m_extBlendMinMax; 66 Member<EXTBlendMinMax> m_extBlendMinMax;
67 PersistentWillBeMember<EXTDisjointTimerQuery> m_extDisjointTimerQuery; 67 Member<EXTDisjointTimerQuery> m_extDisjointTimerQuery;
68 PersistentWillBeMember<EXTFragDepth> m_extFragDepth; 68 Member<EXTFragDepth> m_extFragDepth;
69 PersistentWillBeMember<EXTShaderTextureLOD> m_extShaderTextureLOD; 69 Member<EXTShaderTextureLOD> m_extShaderTextureLOD;
70 PersistentWillBeMember<EXTsRGB> m_extsRGB; 70 Member<EXTsRGB> m_extsRGB;
71 PersistentWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisot ropic; 71 Member<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic;
72 PersistentWillBeMember<OESTextureFloat> m_oesTextureFloat; 72 Member<OESTextureFloat> m_oesTextureFloat;
73 PersistentWillBeMember<OESTextureFloatLinear> m_oesTextureFloatLinear; 73 Member<OESTextureFloatLinear> m_oesTextureFloatLinear;
74 PersistentWillBeMember<OESTextureHalfFloat> m_oesTextureHalfFloat; 74 Member<OESTextureHalfFloat> m_oesTextureHalfFloat;
75 PersistentWillBeMember<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinea r; 75 Member<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear;
76 PersistentWillBeMember<OESStandardDerivatives> m_oesStandardDerivatives; 76 Member<OESStandardDerivatives> m_oesStandardDerivatives;
77 PersistentWillBeMember<OESVertexArrayObject> m_oesVertexArrayObject; 77 Member<OESVertexArrayObject> m_oesVertexArrayObject;
78 PersistentWillBeMember<OESElementIndexUint> m_oesElementIndexUint; 78 Member<OESElementIndexUint> m_oesElementIndexUint;
79 PersistentWillBeMember<WebGLLoseContext> m_webglLoseContext; 79 Member<WebGLLoseContext> m_webglLoseContext;
80 PersistentWillBeMember<WebGLDebugRendererInfo> m_webglDebugRendererInfo; 80 Member<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
81 PersistentWillBeMember<WebGLDebugShaders> m_webglDebugShaders; 81 Member<WebGLDebugShaders> m_webglDebugShaders;
82 PersistentWillBeMember<WebGLDrawBuffers> m_webglDrawBuffers; 82 Member<WebGLDrawBuffers> m_webglDrawBuffers;
83 PersistentWillBeMember<WebGLCompressedTextureASTC> m_webglCompressedTextureA STC; 83 Member<WebGLCompressedTextureASTC> m_webglCompressedTextureASTC;
84 PersistentWillBeMember<WebGLCompressedTextureATC> m_webglCompressedTextureAT C; 84 Member<WebGLCompressedTextureATC> m_webglCompressedTextureATC;
85 PersistentWillBeMember<WebGLCompressedTextureETC1> m_webglCompressedTextureE TC1; 85 Member<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1;
86 PersistentWillBeMember<WebGLCompressedTexturePVRTC> m_webglCompressedTexture PVRTC; 86 Member<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC;
87 PersistentWillBeMember<WebGLCompressedTextureS3TC> m_webglCompressedTextureS 3TC; 87 Member<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC;
88 PersistentWillBeMember<WebGLDepthTexture> m_webglDepthTexture; 88 Member<WebGLDepthTexture> m_webglDepthTexture;
89 }; 89 };
90 90
91 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, 91 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context,
92 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, 92 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1,
93 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ; 93 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ;
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif // WebGLRenderingContext_h 97 #endif // WebGLRenderingContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698