Index: src/gpu/effects/GrOvalEffect.cpp |
diff --git a/src/gpu/effects/GrOvalEffect.cpp b/src/gpu/effects/GrOvalEffect.cpp |
index 94c5acd949471913193d4411500cbdcf118b52d7..4532ddfd3c4f1a1da3213a283f208cd1b3aaa362 100644 |
--- a/src/gpu/effects/GrOvalEffect.cpp |
+++ b/src/gpu/effects/GrOvalEffect.cpp |
@@ -12,8 +12,8 @@ |
#include "SkRect.h" |
#include "glsl/GrGLSLFragmentProcessor.h" |
#include "glsl/GrGLSLFragmentShaderBuilder.h" |
-#include "glsl/GrGLSLProgramBuilder.h" |
#include "glsl/GrGLSLProgramDataManager.h" |
+#include "glsl/GrGLSLUniformHandler.h" |
////////////////////////////////////////////////////////////////////////////// |
@@ -119,10 +119,10 @@ void GLCircleEffect::emitCode(EmitArgs& args) { |
const char *circleName; |
// The circle uniform is (center.x, center.y, radius + 0.5, 1 / (radius + 0.5)) for regular |
// fills and (..., radius - 0.5, 1 / (radius - 0.5)) for inverse fills. |
- fCircleUniform = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
- kVec4f_GrSLType, kDefault_GrSLPrecision, |
- "circle", |
- &circleName); |
+ fCircleUniform = args.fUniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ kVec4f_GrSLType, kDefault_GrSLPrecision, |
+ "circle", |
+ &circleName); |
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
const char* fragmentPos = fragBuilder->fragmentPosition(); |
@@ -291,10 +291,10 @@ void GLEllipseEffect::emitCode(EmitArgs& args) { |
const char *ellipseName; |
// The ellipse uniform is (center.x, center.y, 1 / rx^2, 1 / ry^2) |
// The last two terms can underflow on mediump, so we use highp. |
- fEllipseUniform = args.fBuilder->addUniform(GrGLSLProgramBuilder::kFragment_Visibility, |
- kVec4f_GrSLType, kHigh_GrSLPrecision, |
- "ellipse", |
- &ellipseName); |
+ fEllipseUniform = args.fUniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility, |
+ kVec4f_GrSLType, kHigh_GrSLPrecision, |
+ "ellipse", |
+ &ellipseName); |
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; |
const char* fragmentPos = fragBuilder->fragmentPosition(); |