aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTestUtils.h
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2015-08-05 13:18:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-05 13:18:03 -0700
commit29e0d3f267a03546f236023347cdb4595ece2fd1 (patch)
treeb898c54e81f166d482cd3e52e09a0663beed7d27 /include/gpu/GrTestUtils.h
parent94df02344bd819a6aff0e9fdd31c2e9ba9bab34d (diff)
Implement caching of stroked paths in the tessellated 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 Review URL: https://codereview.chromium.org/1275553002
Diffstat (limited to 'include/gpu/GrTestUtils.h')
-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*);
}