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

Unified Diff: Source/core/html/canvas/WebGLContextObject.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: Review-induced improvements + rebase 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/WebGLContextObject.h
diff --git a/Source/core/html/canvas/WebGLContextObject.h b/Source/core/html/canvas/WebGLContextObject.h
index ac04552fdcb2b41e73af348ebb67ba7d5476c796..7391504021889e8c5dc6f7894da8c319e77265aa 100644
--- a/Source/core/html/canvas/WebGLContextObject.h
+++ b/Source/core/html/canvas/WebGLContextObject.h
@@ -35,6 +35,7 @@ class WebGraphicsContext3D;
namespace blink {
class WebGLRenderingContextBase;
+class WebGLSharedWebGraphicsContext3D;
// WebGLContextObject the base class for objects that are owned by a specific
// WebGLRenderingContextBase.
@@ -51,8 +52,10 @@ public:
void detachContext();
+ virtual void trace(Visitor*) OVERRIDE;
+
protected:
- WebGLContextObject(WebGLRenderingContextBase*);
+ explicit WebGLContextObject(WebGLRenderingContextBase*);
virtual bool hasGroupOrContext() const OVERRIDE FINAL
{
@@ -62,7 +65,10 @@ protected:
virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const OVERRIDE FINAL;
private:
- WebGLRenderingContextBase* m_context;
+ RawPtrWillBeMember<WebGLRenderingContextBase> m_context;
+#if ENABLE(OILPAN)
+ RefPtr<WebGLSharedWebGraphicsContext3D> m_sharedWebGraphicsContext3D;
+#endif
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698