diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/html/canvas/WebGLProgram.cpp | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLProgram.cpp')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLProgram.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/WebCore/html/canvas/WebGLProgram.cpp b/Source/WebCore/html/canvas/WebGLProgram.cpp index 1b752e6e0..40d35949e 100644 --- a/Source/WebCore/html/canvas/WebGLProgram.cpp +++ b/Source/WebCore/html/canvas/WebGLProgram.cpp @@ -10,10 +10,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -30,16 +30,16 @@ #include "WebGLProgram.h" #include "WebGLContextGroup.h" -#include "WebGLRenderingContextBase.h" +#include "WebGLRenderingContext.h" namespace WebCore { -Ref<WebGLProgram> WebGLProgram::create(WebGLRenderingContextBase* ctx) +PassRefPtr<WebGLProgram> WebGLProgram::create(WebGLRenderingContext* ctx) { - return adoptRef(*new WebGLProgram(ctx)); + return adoptRef(new WebGLProgram(ctx)); } -WebGLProgram::WebGLProgram(WebGLRenderingContextBase* ctx) +WebGLProgram::WebGLProgram(WebGLRenderingContext* ctx) : WebGLSharedObject(ctx) , m_linkStatus(false) , m_linkCount(0) @@ -58,11 +58,11 @@ void WebGLProgram::deleteObjectImpl(GraphicsContext3D* context3d, Platform3DObje context3d->deleteProgram(obj); if (m_vertexShader) { m_vertexShader->onDetached(context3d); - m_vertexShader = nullptr; + m_vertexShader = 0; } if (m_fragmentShader) { m_fragmentShader->onDetached(context3d); - m_fragmentShader = nullptr; + m_fragmentShader = 0; } } @@ -148,12 +148,12 @@ bool WebGLProgram::detachShader(WebGLShader* shader) case GraphicsContext3D::VERTEX_SHADER: if (m_vertexShader != shader) return false; - m_vertexShader = nullptr; + m_vertexShader = 0; return true; case GraphicsContext3D::FRAGMENT_SHADER: if (m_fragmentShader != shader) return false; - m_fragmentShader = nullptr; + m_fragmentShader = 0; return true; default: return false; @@ -169,7 +169,7 @@ void WebGLProgram::cacheActiveAttribLocations(GraphicsContext3D* context3d) m_activeAttribLocations.resize(static_cast<size_t>(numAttribs)); for (int i = 0; i < numAttribs; ++i) { ActiveInfo info; - context3d->getActiveAttribImpl(object(), i, info); + context3d->getActiveAttrib(object(), i, info); m_activeAttribLocations[i] = context3d->getAttribLocation(object(), info.name); } } |