OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkPath.h" | 8 #include "SkPath.h" |
9 | 9 |
10 #if SK_SUPPORT_GPU | 10 #if SK_SUPPORT_GPU |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle); | 240 GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle); |
241 GrPathRenderer::DrawPathArgs args; | 241 GrPathRenderer::DrawPathArgs args; |
242 args.fTarget = dt; | 242 args.fTarget = dt; |
243 args.fPipelineBuilder = &pipelineBuilder; | 243 args.fPipelineBuilder = &pipelineBuilder; |
244 args.fResourceProvider = rp; | 244 args.fResourceProvider = rp; |
245 args.fColor = GrColor_WHITE; | 245 args.fColor = GrColor_WHITE; |
246 args.fViewMatrix = &SkMatrix::I(); | 246 args.fViewMatrix = &SkMatrix::I(); |
247 args.fPath = &path; | 247 args.fPath = &path; |
248 args.fStroke = &stroke; | 248 args.fStroke = &stroke; |
249 args.fAntiAlias = false; | 249 args.fAntiAlias = false; |
| 250 args.fOrigSrcPath = nullptr; |
| 251 args.fOrigStrokeInfo = nullptr; |
250 tess.drawPath(args); | 252 tess.drawPath(args); |
251 } | 253 } |
252 | 254 |
253 DEF_GPUTEST(TessellatingPathRendererTests, reporter, factory) { | 255 DEF_GPUTEST(TessellatingPathRendererTests, reporter, factory) { |
254 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); | 256 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); |
255 if (NULL == context) { | 257 if (NULL == context) { |
256 return; | 258 return; |
257 } | 259 } |
258 GrSurfaceDesc desc; | 260 GrSurfaceDesc desc; |
259 desc.fFlags = kRenderTarget_GrSurfaceFlag; | 261 desc.fFlags = kRenderTarget_GrSurfaceFlag; |
(...skipping 19 matching lines...) Expand all Loading... |
279 test_path(dt, rt, rp, create_path_8()); | 281 test_path(dt, rt, rp, create_path_8()); |
280 test_path(dt, rt, rp, create_path_9()); | 282 test_path(dt, rt, rp, create_path_9()); |
281 test_path(dt, rt, rp, create_path_10()); | 283 test_path(dt, rt, rp, create_path_10()); |
282 test_path(dt, rt, rp, create_path_11()); | 284 test_path(dt, rt, rp, create_path_11()); |
283 test_path(dt, rt, rp, create_path_12()); | 285 test_path(dt, rt, rp, create_path_12()); |
284 test_path(dt, rt, rp, create_path_13()); | 286 test_path(dt, rt, rp, create_path_13()); |
285 test_path(dt, rt, rp, create_path_14()); | 287 test_path(dt, rt, rp, create_path_14()); |
286 test_path(dt, rt, rp, create_path_15()); | 288 test_path(dt, rt, rp, create_path_15()); |
287 } | 289 } |
288 #endif | 290 #endif |
OLD | NEW |