diff options
author | rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-20 17:43:08 +0000 |
---|---|---|
committer | rileya@google.com <rileya@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-20 17:43:08 +0000 |
commit | b3e50f23c57d058820701219e66b6bfb8e0681a4 (patch) | |
tree | 3803840df781deb9a9f9cbfa1626b94ec5182c3b /src/effects/gradients/SkTwoPointConicalGradient.cpp | |
parent | f0fed9f9785e5ca69b8f050ed3aa7ed37fbd6e41 (diff) |
Reapply r5101 and r5102: Made gradient effects use GrTextureStripAtlas.
git-svn-id: http://skia.googlecode.com/svn/trunk@5192 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/gradients/SkTwoPointConicalGradient.cpp')
-rw-r--r-- | src/effects/gradients/SkTwoPointConicalGradient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp index 528291bdc1..e1d8cb4d1e 100644 --- a/src/effects/gradients/SkTwoPointConicalGradient.cpp +++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp @@ -468,6 +468,7 @@ GrGLConical2Gradient::GrGLConical2Gradient( } void GrGLConical2Gradient::setupVariables(GrGLShaderBuilder* builder) { + INHERITED::setupVariables(builder); // 2 copies of uniform array, 1 for each of vertex & fragment shader, // to work around Xoom bug. Doesn't seem to cause performance decrease // in test apps, but need to keep an eye on it. @@ -631,8 +632,9 @@ void GrGLConical2Gradient::emitFS(GrGLShaderBuilder* builder, void GrGLConical2Gradient::setData(const GrGLUniformManager& uman, const GrCustomStage& baseData, - const GrRenderTarget*, + const GrRenderTarget* target, int stageNum) { + INHERITED::setData(uman, baseData, target, stageNum); const GrConical2Gradient& data = static_cast<const GrConical2Gradient&>(baseData); GrAssert(data.isDegenerate() == fIsDegenerate); |