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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 GrShape shape(path, style); | 250 GrShape shape(path, style); |
251 args.fShape = &shape; | 251 args.fShape = &shape; |
252 args.fAntiAlias = false; | 252 args.fAntiAlias = false; |
253 tess.drawPath(args); | 253 tess.drawPath(args); |
254 } | 254 } |
255 | 255 |
256 DEF_GPUTEST_FOR_ALL_CONTEXTS(TessellatingPathRendererTests, reporter, ctxInfo) { | 256 DEF_GPUTEST_FOR_ALL_CONTEXTS(TessellatingPathRendererTests, reporter, ctxInfo) { |
257 sk_sp<GrDrawContext> drawContext(ctxInfo.grContext()->newDrawContext(SkBacki
ngFit::kApprox, | 257 sk_sp<GrDrawContext> drawContext(ctxInfo.grContext()->newDrawContext(SkBacki
ngFit::kApprox, |
258 800, 80
0, | 258 800, 80
0, |
259 kSkia88
88_GrPixelConfig, | 259 kSkia88
88_GrPixelConfig, |
| 260 nullptr
, |
260 0, | 261 0, |
261 kTopLef
t_GrSurfaceOrigin)); | 262 kTopLef
t_GrSurfaceOrigin)); |
262 if (!drawContext) { | 263 if (!drawContext) { |
263 return; | 264 return; |
264 } | 265 } |
265 | 266 |
266 GrTestTarget tt; | 267 GrTestTarget tt; |
267 ctxInfo.grContext()->getTestTarget(&tt, drawContext); | 268 ctxInfo.grContext()->getTestTarget(&tt, drawContext); |
268 GrResourceProvider* rp = tt.resourceProvider(); | 269 GrResourceProvider* rp = tt.resourceProvider(); |
269 | 270 |
270 test_path(drawContext.get(), rp, create_path_0()); | 271 test_path(drawContext.get(), rp, create_path_0()); |
271 test_path(drawContext.get(), rp, create_path_1()); | 272 test_path(drawContext.get(), rp, create_path_1()); |
272 test_path(drawContext.get(), rp, create_path_2()); | 273 test_path(drawContext.get(), rp, create_path_2()); |
273 test_path(drawContext.get(), rp, create_path_3()); | 274 test_path(drawContext.get(), rp, create_path_3()); |
274 test_path(drawContext.get(), rp, create_path_4()); | 275 test_path(drawContext.get(), rp, create_path_4()); |
275 test_path(drawContext.get(), rp, create_path_5()); | 276 test_path(drawContext.get(), rp, create_path_5()); |
276 test_path(drawContext.get(), rp, create_path_6()); | 277 test_path(drawContext.get(), rp, create_path_6()); |
277 test_path(drawContext.get(), rp, create_path_7()); | 278 test_path(drawContext.get(), rp, create_path_7()); |
278 test_path(drawContext.get(), rp, create_path_8()); | 279 test_path(drawContext.get(), rp, create_path_8()); |
279 test_path(drawContext.get(), rp, create_path_9()); | 280 test_path(drawContext.get(), rp, create_path_9()); |
280 test_path(drawContext.get(), rp, create_path_10()); | 281 test_path(drawContext.get(), rp, create_path_10()); |
281 test_path(drawContext.get(), rp, create_path_11()); | 282 test_path(drawContext.get(), rp, create_path_11()); |
282 test_path(drawContext.get(), rp, create_path_12()); | 283 test_path(drawContext.get(), rp, create_path_12()); |
283 test_path(drawContext.get(), rp, create_path_13()); | 284 test_path(drawContext.get(), rp, create_path_13()); |
284 test_path(drawContext.get(), rp, create_path_14()); | 285 test_path(drawContext.get(), rp, create_path_14()); |
285 test_path(drawContext.get(), rp, create_path_15()); | 286 test_path(drawContext.get(), rp, create_path_15()); |
286 } | 287 } |
287 #endif | 288 #endif |
OLD | NEW |