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

Side by Side Diff: tests/TessellatingPathRendererTests.cpp

Issue 1966903004: Remove clip from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@fix2_nvpr
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 const SkPath& path) { 236 const SkPath& path) {
237 GrTessellatingPathRenderer tess; 237 GrTessellatingPathRenderer tess;
238 GrPipelineBuilder pipelineBuilder; 238 GrPipelineBuilder pipelineBuilder;
239 pipelineBuilder.setXPFactory( 239 pipelineBuilder.setXPFactory(
240 GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref(); 240 GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref();
241 pipelineBuilder.setRenderTarget(rt); 241 pipelineBuilder.setRenderTarget(rt);
242 GrStyle style(SkStrokeRec::kFill_InitStyle); 242 GrStyle style(SkStrokeRec::kFill_InitStyle);
243 GrPathRenderer::DrawPathArgs args; 243 GrPathRenderer::DrawPathArgs args;
244 args.fTarget = dt; 244 args.fTarget = dt;
245 args.fPipelineBuilder = &pipelineBuilder; 245 args.fPipelineBuilder = &pipelineBuilder;
246 args.fClip = &GrClip::WideOpen();
246 args.fResourceProvider = rp; 247 args.fResourceProvider = rp;
247 args.fColor = GrColor_WHITE; 248 args.fColor = GrColor_WHITE;
248 args.fViewMatrix = &SkMatrix::I(); 249 args.fViewMatrix = &SkMatrix::I();
249 args.fPath = &path; 250 args.fPath = &path;
250 args.fStyle = &style; 251 args.fStyle = &style;
251 args.fAntiAlias = false; 252 args.fAntiAlias = false;
252 tess.drawPath(args); 253 tess.drawPath(args);
253 } 254 }
254 255
255 DEF_GPUTEST_FOR_ALL_CONTEXTS(TessellatingPathRendererTests, reporter, ctxInfo) { 256 DEF_GPUTEST_FOR_ALL_CONTEXTS(TessellatingPathRendererTests, reporter, ctxInfo) {
(...skipping 22 matching lines...) Expand all
278 test_path(dt, rt, rp, create_path_8()); 279 test_path(dt, rt, rp, create_path_8());
279 test_path(dt, rt, rp, create_path_9()); 280 test_path(dt, rt, rp, create_path_9());
280 test_path(dt, rt, rp, create_path_10()); 281 test_path(dt, rt, rp, create_path_10());
281 test_path(dt, rt, rp, create_path_11()); 282 test_path(dt, rt, rp, create_path_11());
282 test_path(dt, rt, rp, create_path_12()); 283 test_path(dt, rt, rp, create_path_12());
283 test_path(dt, rt, rp, create_path_13()); 284 test_path(dt, rt, rp, create_path_13());
284 test_path(dt, rt, rp, create_path_14()); 285 test_path(dt, rt, rp, create_path_14());
285 test_path(dt, rt, rp, create_path_15()); 286 test_path(dt, rt, rp, create_path_15());
286 } 287 }
287 #endif 288 #endif
OLDNEW
« src/gpu/GrDrawTarget.cpp ('K') | « tests/GLProgramsTest.cpp ('k') | tools/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698