X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fhtml%2Fcanvas%2FWebGLProgram.h;h=9c3a4df415b872e543fd1f993bc47a5641d83ef6;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=f68b33048ae0f01290c586f0fc2249a0a32ee1b7;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/html/canvas/WebGLProgram.h b/src/third_party/WebKit/Source/core/html/canvas/WebGLProgram.h index f68b330..9c3a4df 100644 --- a/src/third_party/WebKit/Source/core/html/canvas/WebGLProgram.h +++ b/src/third_party/WebKit/Source/core/html/canvas/WebGLProgram.h @@ -26,19 +26,19 @@ #ifndef WebGLProgram_h #define WebGLProgram_h -#include "bindings/v8/ScriptWrappable.h" +#include "bindings/core/v8/ScriptWrappable.h" #include "core/html/canvas/WebGLSharedObject.h" #include "core/html/canvas/WebGLShader.h" #include "wtf/PassRefPtr.h" #include "wtf/Vector.h" -namespace WebCore { +namespace blink { class WebGLProgram FINAL : public WebGLSharedObject, public ScriptWrappable { public: virtual ~WebGLProgram(); - static PassRefPtr create(WebGLRenderingContextBase*); + static PassRefPtrWillBeRawPtr 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,12 +80,12 @@ private: // program or not. unsigned m_linkCount; - RefPtr m_vertexShader; - RefPtr m_fragmentShader; + RefPtrWillBeMember m_vertexShader; + RefPtrWillBeMember m_fragmentShader; bool m_infoValid; }; -} // namespace WebCore +} // namespace blink #endif // WebGLProgram_h