Index: Source/core/html/canvas/WebGLProgram.h |
diff --git a/Source/core/html/canvas/WebGLProgram.h b/Source/core/html/canvas/WebGLProgram.h |
index 9cc0c599df77e9817b4e4e080d19e58bc9a5123c..9c3a4df415b872e543fd1f993bc47a5641d83ef6 100644 |
--- a/Source/core/html/canvas/WebGLProgram.h |
+++ b/Source/core/html/canvas/WebGLProgram.h |
@@ -38,7 +38,7 @@ class WebGLProgram FINAL : public WebGLSharedObject, public ScriptWrappable { |
public: |
virtual ~WebGLProgram(); |
- static PassRefPtr<WebGLProgram> create(WebGLRenderingContextBase*); |
+ static PassRefPtrWillBeRawPtr<WebGLProgram> create(WebGLRenderingContextBase*); |
unsigned numActiveAttribLocations(); |
GLint getActiveAttribLocation(GLuint index); |
@@ -59,8 +59,10 @@ public: |
bool attachShader(WebGLShader*); |
bool detachShader(WebGLShader*); |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
protected: |
- WebGLProgram(WebGLRenderingContextBase*); |
+ explicit WebGLProgram(WebGLRenderingContextBase*); |
virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject) OVERRIDE; |
@@ -78,8 +80,8 @@ private: |
// program or not. |
unsigned m_linkCount; |
- RefPtr<WebGLShader> m_vertexShader; |
- RefPtr<WebGLShader> m_fragmentShader; |
+ RefPtrWillBeMember<WebGLShader> m_vertexShader; |
+ RefPtrWillBeMember<WebGLShader> m_fragmentShader; |
bool m_infoValid; |
}; |