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 "GrDashLinePathRenderer.h" | 8 #include "GrDashLinePathRenderer.h" |
9 | 9 |
10 #include "GrGpu.h" | 10 #include "GrGpu.h" |
(...skipping 26 matching lines...) Expand all Loading... |
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 } |
OLD | NEW |