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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.h

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Complete VectorTraits<> specialization for VertexAttribState Created 6 years, 5 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 22 matching lines...) Expand all
33 33
34 class WebGLRenderingContext FINAL : public WebGLRenderingContextBase, public Scr iptWrappable { 34 class WebGLRenderingContext FINAL : public WebGLRenderingContextBase, public Scr iptWrappable {
35 public: 35 public:
36 static PassOwnPtrWillBeRawPtr<WebGLRenderingContext> create(HTMLCanvasElemen t*, WebGLContextAttributes*); 36 static PassOwnPtrWillBeRawPtr<WebGLRenderingContext> create(HTMLCanvasElemen t*, WebGLContextAttributes*);
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 virtual void trace(Visitor*) OVERRIDE;
44
43 private: 45 private:
44 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte xt3D>, WebGLContextAttributes*); 46 WebGLRenderingContext(HTMLCanvasElement*, PassOwnPtr<blink::WebGraphicsConte xt3D>, WebGLContextAttributes*);
45 47
46 // Enabled extension objects. 48 // Enabled extension objects.
47 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays; 49 RefPtrWillBeMember<ANGLEInstancedArrays> m_angleInstancedArrays;
48 RefPtr<EXTBlendMinMax> m_extBlendMinMax; 50 RefPtrWillBeMember<EXTBlendMinMax> m_extBlendMinMax;
49 RefPtr<EXTFragDepth> m_extFragDepth; 51 RefPtrWillBeMember<EXTFragDepth> m_extFragDepth;
50 RefPtr<EXTShaderTextureLOD> m_extShaderTextureLOD; 52 RefPtrWillBeMember<EXTShaderTextureLOD> m_extShaderTextureLOD;
51 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 53 RefPtrWillBeMember<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropi c;
52 RefPtr<OESTextureFloat> m_oesTextureFloat; 54 RefPtrWillBeMember<OESTextureFloat> m_oesTextureFloat;
53 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear; 55 RefPtrWillBeMember<OESTextureFloatLinear> m_oesTextureFloatLinear;
54 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat; 56 RefPtrWillBeMember<OESTextureHalfFloat> m_oesTextureHalfFloat;
55 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear; 57 RefPtrWillBeMember<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear;
56 RefPtr<OESStandardDerivatives> m_oesStandardDerivatives; 58 RefPtrWillBeMember<OESStandardDerivatives> m_oesStandardDerivatives;
57 RefPtr<OESVertexArrayObject> m_oesVertexArrayObject; 59 RefPtrWillBeMember<OESVertexArrayObject> m_oesVertexArrayObject;
58 RefPtr<OESElementIndexUint> m_oesElementIndexUint; 60 RefPtrWillBeMember<OESElementIndexUint> m_oesElementIndexUint;
59 RefPtr<WebGLLoseContext> m_webglLoseContext; 61 RefPtrWillBeMember<WebGLLoseContext> m_webglLoseContext;
60 RefPtr<WebGLDebugRendererInfo> m_webglDebugRendererInfo; 62 RefPtrWillBeMember<WebGLDebugRendererInfo> m_webglDebugRendererInfo;
61 RefPtr<WebGLDebugShaders> m_webglDebugShaders; 63 RefPtrWillBeMember<WebGLDebugShaders> m_webglDebugShaders;
62 RefPtr<WebGLDrawBuffers> m_webglDrawBuffers; 64 RefPtrWillBeMember<WebGLDrawBuffers> m_webglDrawBuffers;
63 RefPtr<WebGLCompressedTextureATC> m_webglCompressedTextureATC; 65 RefPtrWillBeMember<WebGLCompressedTextureATC> m_webglCompressedTextureATC;
64 RefPtr<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1; 66 RefPtrWillBeMember<WebGLCompressedTextureETC1> m_webglCompressedTextureETC1;
65 RefPtr<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRTC; 67 RefPtrWillBeMember<WebGLCompressedTexturePVRTC> m_webglCompressedTexturePVRT C;
66 RefPtr<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC; 68 RefPtrWillBeMember<WebGLCompressedTextureS3TC> m_webglCompressedTextureS3TC;
67 RefPtr<WebGLDepthTexture> m_webglDepthTexture; 69 RefPtrWillBeMember<WebGLDepthTexture> m_webglDepthTexture;
68 }; 70 };
69 71
70 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, 72 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context,
71 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1, 73 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) == 1,
72 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ; 74 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) == 1) ;
73 75
74 } // namespace WebCore 76 } // namespace WebCore
75 77
76 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698