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 #ifndef SkPathOpsRect_DEFINED | 7 #ifndef SkPathOpsRect_DEFINED |
8 #define SkPathOpsRect_DEFINED | 8 #define SkPathOpsRect_DEFINED |
9 | 9 |
10 #include "SkPathOpsPoint.h" | 10 #include "SkPathOpsPoint.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 double width() const { | 43 double width() const { |
44 return fRight - fLeft; | 44 return fRight - fLeft; |
45 } | 45 } |
46 | 46 |
47 double height() const { | 47 double height() const { |
48 return fBottom - fTop; | 48 return fBottom - fTop; |
49 } | 49 } |
50 | 50 |
51 void setBounds(const SkDConic&); | 51 void setBounds(const SkDConic& curve) { |
52 void setBounds(const SkDCubic&); | 52 setBounds(curve, curve, 0, 1); |
53 void setBounds(const SkDQuad&); | 53 } |
| 54 |
| 55 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, do
uble tEnd); |
| 56 |
| 57 void setBounds(const SkDCubic& curve) { |
| 58 setBounds(curve, curve, 0, 1); |
| 59 } |
| 60 |
| 61 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, do
uble tEnd); |
| 62 |
| 63 void setBounds(const SkDQuad& curve) { |
| 64 setBounds(curve, curve, 0, 1); |
| 65 } |
| 66 |
| 67 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, doub
le tEnd); |
54 }; | 68 }; |
55 | 69 |
56 #endif | 70 #endif |
OLD | NEW |