commit | 8528541dd7f09f5bd76f3f1ce5f45d08ac7347c7 | [log] [tgz] |
---|---|---|
author | cdalton <cdalton@nvidia.com> | Thu Feb 18 12:37:07 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 18 12:37:08 2016 -0800 |
tree | 4460d0e509b06809417b72fe5287a0c3d823e9b5 | |
parent | d689bf874826d38c6ef0d8b802b74d61fab5ec2f [diff] [blame] |
Add more specialized fragment builders Adds specialized fragment builders for primitive and fragment processors. Removes fragment-specific functionality from the Xfer fragment builder. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1709153002 Review URL: https://codereview.chromium.org/1709153002
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp index 5aef212..7940203 100644 --- a/src/effects/SkDisplacementMapEffect.cpp +++ b/src/effects/SkDisplacementMapEffect.cpp
@@ -553,7 +553,7 @@ // a number smaller than that to approximate 0, but // leave room for 32-bit float GPU rounding errors. - GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder; + GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; fragBuilder->codeAppendf("\t\tvec4 %s = ", dColor); fragBuilder->appendTextureLookup(args.fSamplers[0], args.fCoords[0].c_str(), args.fCoords[0].getType());