| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 setBounds(curve, curve, 0, 1); | 57 setBounds(curve, curve, 0, 1); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, do
uble tEnd); | 60 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, do
uble tEnd); |
| 61 | 61 |
| 62 void setBounds(const SkDQuad& curve) { | 62 void setBounds(const SkDQuad& curve) { |
| 63 setBounds(curve, curve, 0, 1); | 63 setBounds(curve, curve, 0, 1); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, doub
le tEnd); | 66 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, doub
le tEnd); |
| 67 |
| 68 bool valid() const { |
| 69 return fLeft <= fRight && fTop <= fBottom; |
| 70 } |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 #endif | 73 #endif |
| OLD | NEW |