Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1734)

Unified Diff: tests/TessellatingPathRendererTests.cpp

Issue 1114353004: Implement vertex buffer caching in the tessellated path renderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Integrated cache invalidation based on SkPath GenID change Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/gpu/GrTessellatingPathRenderer.cpp ('K') | « tests/PathTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/TessellatingPathRendererTests.cpp
diff --git a/tests/TessellatingPathRendererTests.cpp b/tests/TessellatingPathRendererTests.cpp
index bc2d0d1452cf7ccd6221003f3c0fc8c28bc4dfec..398cd4e55589626ce9fe4e83681b94ae64ff364a 100644
--- a/tests/TessellatingPathRendererTests.cpp
+++ b/tests/TessellatingPathRendererTests.cpp
@@ -232,8 +232,8 @@ static SkPath create_path_15() {
return path;
}
-static void test_path(GrDrawTarget* dt, GrRenderTarget* rt, const SkPath& path) {
- GrTessellatingPathRenderer tess;
+static void test_path(GrContext* context, GrDrawTarget* dt, GrRenderTarget* rt, const SkPath& path) {
+ GrTessellatingPathRenderer tess(context);
GrPipelineBuilder pipelineBuilder;
pipelineBuilder.setRenderTarget(rt);
GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle);
@@ -258,21 +258,21 @@ DEF_GPUTEST(TessellatingPathRendererTests, reporter, factory) {
GrRenderTarget* rt = texture->asRenderTarget();
GrDrawTarget* dt = tt.target();
- test_path(dt, rt, create_path_0());
- test_path(dt, rt, create_path_1());
- test_path(dt, rt, create_path_2());
- test_path(dt, rt, create_path_3());
- test_path(dt, rt, create_path_4());
- test_path(dt, rt, create_path_5());
- test_path(dt, rt, create_path_6());
- test_path(dt, rt, create_path_7());
- test_path(dt, rt, create_path_8());
- test_path(dt, rt, create_path_9());
- test_path(dt, rt, create_path_10());
- test_path(dt, rt, create_path_11());
- test_path(dt, rt, create_path_12());
- test_path(dt, rt, create_path_13());
- test_path(dt, rt, create_path_14());
- test_path(dt, rt, create_path_15());
+ test_path(context, dt, rt, create_path_0());
+ test_path(context, dt, rt, create_path_1());
+ test_path(context, dt, rt, create_path_2());
+ test_path(context, dt, rt, create_path_3());
+ test_path(context, dt, rt, create_path_4());
+ test_path(context, dt, rt, create_path_5());
+ test_path(context, dt, rt, create_path_6());
+ test_path(context, dt, rt, create_path_7());
+ test_path(context, dt, rt, create_path_8());
+ test_path(context, dt, rt, create_path_9());
+ test_path(context, dt, rt, create_path_10());
+ test_path(context, dt, rt, create_path_11());
+ test_path(context, dt, rt, create_path_12());
+ test_path(context, dt, rt, create_path_13());
+ test_path(context, dt, rt, create_path_14());
+ test_path(context, dt, rt, create_path_15());
}
#endif
« src/gpu/GrTessellatingPathRenderer.cpp ('K') | « tests/PathTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698