| 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 GrAAStrokeRectBatch_DEFINED | 8 #ifndef GrAAStrokeRectBatch_DEFINED |
| 9 #define GrAAStrokeRectBatch_DEFINED | 9 #define GrAAStrokeRectBatch_DEFINED |
| 10 | 10 |
| 11 #include "GrBatch.h" | |
| 12 #include "GrColor.h" | 11 #include "GrColor.h" |
| 13 #include "GrTypes.h" | 12 #include "GrTypes.h" |
| 13 #include "GrVertexBatch.h" |
| 14 #include "SkMatrix.h" | 14 #include "SkMatrix.h" |
| 15 #include "SkRect.h" | 15 #include "SkRect.h" |
| 16 | 16 |
| 17 class GrAAStrokeRectBatch : public GrVertexBatch { | 17 class GrAAStrokeRectBatch : public GrVertexBatch { |
| 18 public: | 18 public: |
| 19 // TODO support AA rotated stroke rects by copying around view matrices | 19 // TODO support AA rotated stroke rects by copying around view matrices |
| 20 struct Geometry { | 20 struct Geometry { |
| 21 GrColor fColor; | 21 GrColor fColor; |
| 22 SkRect fDevOutside; | 22 SkRect fDevOutside; |
| 23 SkRect fDevOutsideAssist; | 23 SkRect fDevOutsideAssist; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool fMiterStroke; | 101 bool fMiterStroke; |
| 102 bool fCanTweakAlphaForCoverage; | 102 bool fCanTweakAlphaForCoverage; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 BatchTracker fBatch; | 105 BatchTracker fBatch; |
| 106 SkSTArray<1, Geometry, true> fGeoData; | 106 SkSTArray<1, Geometry, true> fGeoData; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 | 109 |
| 110 #endif | 110 #endif |
| OLD | NEW |