Use vertex attributes for dash effect in gpu
authoregdaniel <egdaniel@google.com>
Thu, 12 Jun 2014 17:24:21 +0000 (10:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Jun 2014 17:24:21 +0000 (10:24 -0700)
commite61c411c1258a323a010558c08de3d9f8d170dca
tree295c5f7a9ec0001daf7b87e2573e9f74ffbe3d3b
parentb205d09b296e01f1c4debdf7f60d2f3e4cd2ea43
Use vertex attributes for dash effect in gpu

This will allow us to batch dashed lines together when drawing. Also, this removes the need for
a coord transform matrix in the shader, thus we save the cost of uploading a new matrix uniform
everytime we do a simple transform to the dashed line we are drawing.

BUG=skia:
R=bsalomon@google.com

Author: egdaniel@google.com

Review URL: https://codereview.chromium.org/326103002
expectations/gm/ignored-tests.txt
gm/dashing.cpp
include/core/SkStrokeRec.h
include/gpu/GrContext.h
src/core/SkStrokeRec.cpp
src/gpu/GrContext.cpp
src/gpu/GrStrokeInfo.h
src/gpu/SkGpuDevice.cpp
src/gpu/effects/GrDashingEffect.cpp
src/gpu/effects/GrDashingEffect.h