Index: Source/modules/webgl/WebGLUniformLocation.cpp |
diff --git a/Source/modules/webgl/WebGLUniformLocation.cpp b/Source/modules/webgl/WebGLUniformLocation.cpp |
index 7c946ed5ae0f8e32a1fbcdcd819a60a2890af284..97da33af51ef5f873b49cd361a8efa33169ad9e5 100644 |
--- a/Source/modules/webgl/WebGLUniformLocation.cpp |
+++ b/Source/modules/webgl/WebGLUniformLocation.cpp |
@@ -30,9 +30,9 @@ |
namespace blink { |
-PassRefPtrWillBeRawPtr<WebGLUniformLocation> WebGLUniformLocation::create(WebGLProgram* program, GLint location) |
+WebGLUniformLocation* WebGLUniformLocation::create(WebGLProgram* program, GLint location) |
{ |
- return adoptRefWillBeNoop(new WebGLUniformLocation(program, location)); |
+ return new WebGLUniformLocation(program, location); |
} |
WebGLUniformLocation::WebGLUniformLocation(WebGLProgram* program, GLint location) |
@@ -49,7 +49,7 @@ WebGLProgram* WebGLUniformLocation::program() const |
// longer valid. |
if (m_program->linkCount() != m_linkCount) |
return 0; |
- return m_program.get(); |
+ return m_program; |
} |
GLint WebGLUniformLocation::location() const |