OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 | 8 |
9 #ifndef SkPerspIter_DEFINED | 9 #ifndef SkPerspIter_DEFINED |
10 #define SkPerspIter_DEFINED | 10 #define SkPerspIter_DEFINED |
11 | 11 |
| 12 #include "SkFixed.h" |
12 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
13 | 14 |
14 class SkPerspIter { | 15 class SkPerspIter { |
15 public: | 16 public: |
16 /** Iterate a line through the matrix [x,y] ... [x+count-1, y]. | 17 /** Iterate a line through the matrix [x,y] ... [x+count-1, y]. |
17 @param m The matrix we will be iterating a line through | 18 @param m The matrix we will be iterating a line through |
18 @param x The initial X coordinate to be mapped through the matrix | 19 @param x The initial X coordinate to be mapped through the matrix |
19 @param y The initial Y coordinate to be mapped through the matrix | 20 @param y The initial Y coordinate to be mapped through the matrix |
20 @param count The number of points (x,y) (x+1,y) (x+2,y) ... we will even
tually map | 21 @param count The number of points (x,y) (x+1,y) (x+2,y) ... we will even
tually map |
21 */ | 22 */ |
(...skipping 16 matching lines...) Expand all Loading... |
38 kCount = (1 << kShift) | 39 kCount = (1 << kShift) |
39 }; | 40 }; |
40 const SkMatrix& fMatrix; | 41 const SkMatrix& fMatrix; |
41 SkFixed fStorage[kCount * 2]; | 42 SkFixed fStorage[kCount * 2]; |
42 SkFixed fX, fY; | 43 SkFixed fX, fY; |
43 SkScalar fSX, fSY; | 44 SkScalar fSX, fSY; |
44 int fCount; | 45 int fCount; |
45 }; | 46 }; |
46 | 47 |
47 #endif | 48 #endif |
OLD | NEW |