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 SkDCubic&); | 52 void setBounds(const SkDCubic&); |
52 void setBounds(const SkDQuad&); | 53 void setBounds(const SkDQuad&); |
53 }; | 54 }; |
54 | 55 |
55 #endif | 56 #endif |
OLD | NEW |