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 |