aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathUtils.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-22 17:31:06 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-22 17:31:06 +0000
commit89ff637a847b613e04f7ca7ca387203f375115c5 (patch)
tree7d3c0dceb66b26aafcea85d4f3344e3718338437 /src/gpu/GrPathUtils.cpp
parentcf7be95b19f283e3c5410f977474f433a1e10dad (diff)
Pull out Effect Shaders in GPU Path Renderer
Move the effects in HairLinePathRender (and eventually others into their own class called GrBezierEffects. This will allow for more sharing of code between different path renderers on GPU. BUG= R=bsalomon@google.com, jvanverth@google.com, robertphillips@google.com Author: egdaniel@google.com Review URL: https://chromiumcodereview.appspot.com/23004010 git-svn-id: http://skia.googlecode.com/svn/trunk@10877 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrPathUtils.cpp')
-rw-r--r--src/gpu/GrPathUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrPathUtils.cpp b/src/gpu/GrPathUtils.cpp
index e354e413f1..d412b8cd9d 100644
--- a/src/gpu/GrPathUtils.cpp
+++ b/src/gpu/GrPathUtils.cpp
@@ -639,7 +639,7 @@ static void set_loop_klm(const SkScalar d[3], SkScalar k[4], SkScalar l[4], SkSc
// If (d0 < 0 && sign(k1) > 0) || (d0 > 0 && sign(k1) < 0),
// we need to flip the orientation of our curve.
// This is done by negating the k and l values
- if ( (d[0] < 0 && k[1] < 0) || (d[0] > 0 && k[1] > 0)) {
+ if ( (d[0] < 0 && k[1] > 0) || (d[0] > 0 && k[1] < 0)) {
for (int i = 0; i < 4; ++i) {
k[i] = -k[i];
l[i] = -l[i];