OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #ifndef SkLineClipper_DEFINED | 7 #ifndef SkLineClipper_DEFINED |
9 #define SkLineClipper_DEFINED | 8 #define SkLineClipper_DEFINED |
10 | 9 |
11 #include "SkRect.h" | 10 #include "SkRect.h" |
(...skipping 25 matching lines...) Expand all Loading... |
37 return false and ignore dst[]. | 36 return false and ignore dst[]. |
38 | 37 |
39 ClipLine is specialized for scan-conversion, as it adds vertical | 38 ClipLine is specialized for scan-conversion, as it adds vertical |
40 segments on the sides to show where the line extended beyond the | 39 segments on the sides to show where the line extended beyond the |
41 left or right sides. IntersectLine does not. | 40 left or right sides. IntersectLine does not. |
42 */ | 41 */ |
43 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint
dst[2]); | 42 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint
dst[2]); |
44 }; | 43 }; |
45 | 44 |
46 #endif | 45 #endif |
OLD | NEW |