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

Side by Side Diff: src/gpu/batches/GrDashLinePathRenderer.cpp

Issue 2041283002: Replace targetHasUnifiedMultisampling in GrPB constructor (Closed) Base URL: https://skia.googlesource.com/skia.git@fixdash
Patch Set: rebase Created 4 years, 6 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 "GrDashLinePathRenderer.h" 8 #include "GrDashLinePathRenderer.h"
9 9
10 #include "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 26 matching lines...) Expand all
37 SkAssertResult(args.fPath->isLine(pts)); 37 SkAssertResult(args.fPath->isLine(pts));
38 SkAutoTUnref<GrDrawBatch> batch(GrDashingEffect::CreateDashLineBatch(args.fC olor, 38 SkAutoTUnref<GrDrawBatch> batch(GrDashingEffect::CreateDashLineBatch(args.fC olor,
39 *args.f ViewMatrix, 39 *args.f ViewMatrix,
40 pts, 40 pts,
41 aaMode, 41 aaMode,
42 *args.f Style)); 42 *args.f Style));
43 if (!batch) { 43 if (!batch) {
44 return false; 44 return false;
45 } 45 }
46 46
47 GrPipelineBuilder pipelineBuilder(*args.fPaint, args.fDrawContext->isUnified Multisampled()); 47 GrPipelineBuilder pipelineBuilder(*args.fPaint, useHWAA);
48 pipelineBuilder.setState(GrPipelineBuilder::kHWAntialias_Flag, useHWAA);
49 pipelineBuilder.setUserStencil(args.fUserStencilSettings); 48 pipelineBuilder.setUserStencil(args.fUserStencilSettings);
50 49
51 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch); 50 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch);
52 return true; 51 return true;
53 } 52 }
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp ('k') | src/gpu/batches/GrDefaultPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698