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

Side by Side Diff: Source/modules/webgl/WebGL2RenderingContext.h

Issue 1234883002: [Oilpan] Migrate classes under module/webgl onto oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Work for comments Created 5 years, 4 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGL2RenderingContext_h 5 #ifndef WebGL2RenderingContext_h
6 #define WebGL2RenderingContext_h 6 #define WebGL2RenderingContext_h
7 7
8 #include "core/html/canvas/CanvasRenderingContextFactory.h" 8 #include "core/html/canvas/CanvasRenderingContextFactory.h"
9 #include "modules/webgl/WebGL2RenderingContextBase.h" 9 #include "modules/webgl/WebGL2RenderingContextBase.h"
10 10
(...skipping 20 matching lines...) Expand all
31 CanvasRenderingContext::ContextType contextType() const override { return Ca nvasRenderingContext::ContextWebgl2; } 31 CanvasRenderingContext::ContextType contextType() const override { return Ca nvasRenderingContext::ContextWebgl2; }
32 unsigned version() const override { return 2; } 32 unsigned version() const override { return 2; }
33 String contextName() const override { return "WebGL2RenderingContext"; } 33 String contextName() const override { return "WebGL2RenderingContext"; }
34 void registerContextExtensions() override; 34 void registerContextExtensions() override;
35 35
36 DECLARE_VIRTUAL_TRACE(); 36 DECLARE_VIRTUAL_TRACE();
37 37
38 protected: 38 protected:
39 WebGL2RenderingContext(HTMLCanvasElement* passedCanvas, PassOwnPtr<WebGraphi csContext3D>, const WebGLContextAttributes& requestedAttributes); 39 WebGL2RenderingContext(HTMLCanvasElement* passedCanvas, PassOwnPtr<WebGraphi csContext3D>, const WebGLContextAttributes& requestedAttributes);
40 40
41 RefPtrWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform; 41 PersistentWillBeMember<CHROMIUMSubscribeUniform> m_chromiumSubscribeUniform;
42 RefPtrWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropi c; 42 PersistentWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisot ropic;
43 RefPtrWillBeMember<OESTextureFloatLinear> m_oesTextureFloatLinear; 43 PersistentWillBeMember<OESTextureFloatLinear> m_oesTextureFloatLinear;
44 RefPtrWillBeMember<WebGLCompressedTextureATC> m_webglCompressedTextureATC; 44 PersistentWillBeMember<WebGLCompressedTextureATC> m_webglCompressedTextureAT C;
45 RefPtrWillBeMember<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1; 45 PersistentWillBeMember<WebGLCompressedTextureETC1> m_webglCompressedTextureE TC1;
46 RefPtrWillBeMember<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRT C; 46 PersistentWillBeMember<WebGLCompressedTexturePVRTC> m_webglCompressedTexture PVRTC;
47 RefPtrWillBeMember<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; 47 PersistentWillBeMember<WebGLCompressedTextureS3TC> m_webglCompressedTextureS 3TC;
48 RefPtrWillBeMember<WebGLDebugRendererInfo> m_webglDebugRendererInfo; 48 PersistentWillBeMember<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
49 RefPtrWillBeMember<WebGLDebugShaders> m_webglDebugShaders; 49 PersistentWillBeMember<WebGLDebugShaders> m_webglDebugShaders;
50 RefPtrWillBeMember<WebGLLoseContext> m_webglLoseContext; 50 PersistentWillBeMember<WebGLLoseContext> m_webglLoseContext;
haraken 2015/08/04 00:06:52 These persistent handles can be removed if you mov
Ken Russell (switch to Gerrit) 2015/08/04 00:34:10 Understanding that this is the reason for the pers
peria 2015/08/04 09:10:25 Acknowledged. http://crbug.com/516607
51 }; 51 };
52 52
53 DEFINE_TYPE_CASTS(WebGL2RenderingContext, CanvasRenderingContext, context, 53 DEFINE_TYPE_CASTS(WebGL2RenderingContext, CanvasRenderingContext, context,
54 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 2, 54 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 2,
55 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 2) ; 55 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 2) ;
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif 59 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698