| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 | |
| 9 #ifndef GrAARectRenderer_DEFINED | 8 #ifndef GrAARectRenderer_DEFINED |
| 10 #define GrAARectRenderer_DEFINED | 9 #define GrAARectRenderer_DEFINED |
| 11 | 10 |
| 12 #include "GrRefCnt.h" | |
| 13 #include "SkMatrix.h" | 11 #include "SkMatrix.h" |
| 14 #include "SkRect.h" | 12 #include "SkRect.h" |
| 13 #include "SkRefCnt.h" |
| 15 | 14 |
| 16 class GrGpu; | 15 class GrGpu; |
| 17 class GrDrawTarget; | 16 class GrDrawTarget; |
| 18 class GrIndexBuffer; | 17 class GrIndexBuffer; |
| 19 | 18 |
| 20 /* | 19 /* |
| 21 * This class wraps helper functions that draw AA rects (filled & stroked) | 20 * This class wraps helper functions that draw AA rects (filled & stroked) |
| 22 */ | 21 */ |
| 23 class GrAARectRenderer : public GrRefCnt { | 22 class GrAARectRenderer : public SkRefCnt { |
| 24 public: | 23 public: |
| 25 SK_DECLARE_INST_COUNT(GrAARectRenderer) | 24 SK_DECLARE_INST_COUNT(GrAARectRenderer) |
| 26 | 25 |
| 27 GrAARectRenderer() | 26 GrAARectRenderer() |
| 28 : fAAFillRectIndexBuffer(NULL) | 27 : fAAFillRectIndexBuffer(NULL) |
| 29 , fAAStrokeRectIndexBuffer(NULL) { | 28 , fAAStrokeRectIndexBuffer(NULL) { |
| 30 } | 29 } |
| 31 | 30 |
| 32 void reset(); | 31 void reset(); |
| 33 | 32 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 GrDrawTarget* target, | 100 GrDrawTarget* target, |
| 102 const SkRect& rect, | 101 const SkRect& rect, |
| 103 const SkMatrix& combinedMatrix); | 102 const SkMatrix& combinedMatrix); |
| 104 | 103 |
| 105 void geometryStrokeAARect(GrGpu* gpu, | 104 void geometryStrokeAARect(GrGpu* gpu, |
| 106 GrDrawTarget* target, | 105 GrDrawTarget* target, |
| 107 const SkRect& devOutside, | 106 const SkRect& devOutside, |
| 108 const SkRect& devInside, | 107 const SkRect& devInside, |
| 109 bool useVertexCoverage); | 108 bool useVertexCoverage); |
| 110 | 109 |
| 111 typedef GrRefCnt INHERITED; | 110 typedef SkRefCnt INHERITED; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 #endif // GrAARectRenderer_DEFINED | 113 #endif // GrAARectRenderer_DEFINED |
| OLD | NEW |