| 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 15 matching lines...) Expand all Loading... |
| 26 SkAutoTUnref<GrDrawBatch> batch(GrDashingEffect::CreateDashLineBatch(args.fC
olor, | 26 SkAutoTUnref<GrDrawBatch> batch(GrDashingEffect::CreateDashLineBatch(args.fC
olor, |
| 27 *args.f
ViewMatrix, | 27 *args.f
ViewMatrix, |
| 28 pts, | 28 pts, |
| 29 args.fA
ntiAlias, | 29 args.fA
ntiAlias, |
| 30 msaaIsE
nabled, | 30 msaaIsE
nabled, |
| 31 *args.f
Style)); | 31 *args.f
Style)); |
| 32 if (!batch) { | 32 if (!batch) { |
| 33 return false; | 33 return false; |
| 34 } | 34 } |
| 35 | 35 |
| 36 args.fTarget->drawBatch(*args.fPipelineBuilder, batch); | 36 args.fTarget->drawBatch(*args.fPipelineBuilder, *args.fClip, batch); |
| 37 return true; | 37 return true; |
| 38 } | 38 } |
| OLD | NEW |