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 20:41:15 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-22 20:41:15 +0000
commit07e1c3fd5030869c480c15ff30d36bd161718262 (patch)
tree73203238dbc4cbab3af9c022e60d2ed2e7519adc /src/gpu/GrPathUtils.cpp
parentb6823c19b69d76059f1e16de4d48c4e3f013e3bc (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= Committed: http://code.google.com/p/skia/source/detail?r=10877 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@10884 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];