aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2015-08-06 10:28:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-06 10:28:55 -0700
commitb4f9d0ec6cc95ce46f9351fee5adaffcfa729e38 (patch)
tree8228bd16c5d42c782475409f49c6dd9d14a77b52 /include/gpu
parente47829b6b1eeb6b0c97ccb3df3016d197046824c (diff)
Implement caching of stroked paths in the tessellating path renderer.
This requires adding the stroke info to the cache key, and doing the stroking and dashing before rendering as triangles. BUG=skia:3755 Committed: https://skia.googlesource.com/skia/+/29e0d3f267a03546f236023347cdb4595ece2fd1 Review URL: https://codereview.chromium.org/1275553002
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrTestUtils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrTestUtils.h b/include/gpu/GrTestUtils.h
index 6fed7e1761..91f36ea2d9 100644
--- a/include/gpu/GrTestUtils.h
+++ b/include/gpu/GrTestUtils.h
@@ -16,6 +16,7 @@
#include "SkRandom.h"
#include "SkStrokeRec.h"
+class GrStrokeInfo;
class SkMatrix;
class SkPath;
class SkRRect;
@@ -35,6 +36,7 @@ const SkRRect& TestRRectSimple(SkRandom*);
const SkPath& TestPath(SkRandom*);
const SkPath& TestPathConvex(SkRandom*);
SkStrokeRec TestStrokeRec(SkRandom*);
+GrStrokeInfo TestStrokeInfo(SkRandom*);
}