OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkLineClipper_DEFINED | 8 #ifndef SkLineClipper_DEFINED |
9 #define SkLineClipper_DEFINED | 9 #define SkLineClipper_DEFINED |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 ClipLine is specialized for scan-conversion, as it adds vertical | 39 ClipLine is specialized for scan-conversion, as it adds vertical |
40 segments on the sides to show where the line extended beyond the | 40 segments on the sides to show where the line extended beyond the |
41 left or right sides. IntersectLine does not. | 41 left or right sides. IntersectLine does not. |
42 */ | 42 */ |
43 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, | 43 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, |
44 SkPoint dst[2]); | 44 SkPoint dst[2]); |
45 }; | 45 }; |
46 | 46 |
47 #endif | 47 #endif |
OLD | NEW |