| 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 #ifndef GrRectBatchFactory_DEFINED | 8 #ifndef GrRectBatchFactory_DEFINED |
| 9 #define GrRectBatchFactory_DEFINED | 9 #define GrRectBatchFactory_DEFINED |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const SkMatrix& viewMatrix, | 48 const SkMatrix& viewMatrix, |
| 49 const SkMatrix& localMatrix, | 49 const SkMatrix& localMatrix, |
| 50 const SkRect& rect, | 50 const SkRect& rect, |
| 51 const SkRect& devRect) { | 51 const SkRect& devRect) { |
| 52 return GrAAFillRectBatch::Create(color, viewMatrix, localMatrix, rect, devRe
ct); | 52 return GrAAFillRectBatch::Create(color, viewMatrix, localMatrix, rect, devRe
ct); |
| 53 } | 53 } |
| 54 | 54 |
| 55 inline GrDrawBatch* CreateNonAAStroke(GrColor color, | 55 inline GrDrawBatch* CreateNonAAStroke(GrColor color, |
| 56 const SkMatrix& viewMatrix, | 56 const SkMatrix& viewMatrix, |
| 57 const SkRect& rect, | 57 const SkRect& rect, |
| 58 SkScalar strokeWidth, | 58 const SkStrokeRec& strokeRec, |
| 59 bool snapToPixelCenters) { | 59 bool snapToPixelCenters) { |
| 60 return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeWidth,
snapToPixelCenters); | 60 return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeRec, sn
apToPixelCenters); |
| 61 } | 61 } |
| 62 | 62 |
| 63 inline GrDrawBatch* CreateAAStroke(GrColor color, | 63 inline GrDrawBatch* CreateAAStroke(GrColor color, |
| 64 const SkMatrix& viewMatrix, | 64 const SkMatrix& viewMatrix, |
| 65 const SkRect& rect, | 65 const SkRect& rect, |
| 66 const SkStrokeRec& stroke) { | 66 const SkStrokeRec& stroke) { |
| 67 return GrAAStrokeRectBatch::Create(color, viewMatrix, rect, stroke); | 67 return GrAAStrokeRectBatch::Create(color, viewMatrix, rect, stroke); |
| 68 } | 68 } |
| 69 | 69 |
| 70 // First rect is outer; second rect is inner | 70 // First rect is outer; second rect is inner |
| 71 GrDrawBatch* CreateAAFillNestedRects(GrColor, | 71 GrDrawBatch* CreateAAFillNestedRects(GrColor, |
| 72 const SkMatrix& viewMatrix, | 72 const SkMatrix& viewMatrix, |
| 73 const SkRect rects[2]); | 73 const SkRect rects[2]); |
| 74 | 74 |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif | 77 #endif |
| OLD | NEW |