diff options
author | bsalomon <bsalomon@google.com> | 2015-05-22 10:37:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-22 10:37:30 -0700 |
commit | 424cc26add7ed491c6941d0c0c3a0e6d83190307 (patch) | |
tree | 19dc3d09aca0febddcfa6dc5f4f81459f344e24e /src/effects/gradients/SkSweepGradient.cpp | |
parent | 92fc2ae58331662ec411a048686cb4801e0a909a (diff) |
Remove init from GrGLContextInfo and caps classes
Make Gr*Caps, GrGLContext* noncopyable
Review URL: https://codereview.chromium.org/1153813002
Diffstat (limited to 'src/effects/gradients/SkSweepGradient.cpp')
-rw-r--r-- | src/effects/gradients/SkSweepGradient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp index 686d87742e..ce4edae9b8 100644 --- a/src/effects/gradients/SkSweepGradient.cpp +++ b/src/effects/gradients/SkSweepGradient.cpp @@ -277,7 +277,7 @@ void GrGLSweepGradient::emitCode(GrGLFPBuilder* builder, const GrSweepGradient& ge = fp.cast<GrSweepGradient>(); this->emitUniforms(builder, ge); SkString coords2D = builder->getFragmentShaderBuilder()->ensureFSCoords2D(coords, 0); - const GrGLContextInfo ctxInfo = builder->ctxInfo(); + const GrGLContextInfo& ctxInfo = builder->ctxInfo(); SkString t; // 0.1591549430918 is 1/(2*pi), used since atan returns values [-pi, pi] // On Intel GPU there is an issue where it reads the second arguement to atan "- %s.x" as an int |