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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 bool GrDashLinePathRenderer::onDrawPath(GrDrawTarget* target, | 33 bool GrDashLinePathRenderer::onDrawPath(GrDrawTarget* target, |
34 GrPipelineBuilder* pipelineBuilder, | 34 GrPipelineBuilder* pipelineBuilder, |
35 GrColor color, | 35 GrColor color, |
36 const SkMatrix& viewMatrix, | 36 const SkMatrix& viewMatrix, |
37 const SkPath& path, | 37 const SkPath& path, |
38 const GrStrokeInfo& stroke, | 38 const GrStrokeInfo& stroke, |
39 bool useAA) { | 39 bool useAA) { |
40 SkPoint pts[2]; | 40 SkPoint pts[2]; |
41 SkAssertResult(path.isLine(pts)); | 41 SkAssertResult(path.isLine(pts)); |
42 return GrDashingEffect::DrawDashLine(fGpu, target, pipelineBuilder, color, | 42 return GrDashingEffect::DrawDashLine(target, pipelineBuilder, color, |
43 viewMatrix, pts, useAA, stroke); | 43 viewMatrix, pts, useAA, stroke); |
44 } | 44 } |
OLD | NEW |