| Index: src/pathops/SkPathOpsRect.cpp
|
| diff --git a/src/pathops/SkPathOpsRect.cpp b/src/pathops/SkPathOpsRect.cpp
|
| index 5dd3d8def5d0c2d295408450d2d22aeb8f40bf48..2ceed32900a3f3b97c329696e854e5b0aca735f0 100644
|
| --- a/src/pathops/SkPathOpsRect.cpp
|
| +++ b/src/pathops/SkPathOpsRect.cpp
|
| @@ -8,6 +8,11 @@
|
| #include "SkPathOpsLine.h"
|
| #include "SkPathOpsQuad.h"
|
| #include "SkPathOpsRect.h"
|
| +
|
| +void SkDRect::setBounds(const SkDLine& line) {
|
| + set(line[0]);
|
| + add(line[1]);
|
| +}
|
|
|
| void SkDRect::setBounds(const SkDQuad& quad) {
|
| set(quad[0]);
|
| @@ -22,6 +27,13 @@
|
| }
|
| for (int x = 0; x < roots; ++x) {
|
| add(quad.ptAtT(tValues[x]));
|
| + }
|
| +}
|
| +
|
| +void SkDRect::setRawBounds(const SkDQuad& quad) {
|
| + set(quad[0]);
|
| + for (int x = 1; x < 3; ++x) {
|
| + add(quad[x]);
|
| }
|
| }
|
|
|
| @@ -44,3 +56,10 @@
|
| add(c.ptAtT(tValues[x]));
|
| }
|
| }
|
| +
|
| +void SkDRect::setRawBounds(const SkDCubic& cubic) {
|
| + set(cubic[0]);
|
| + for (int x = 1; x < 4; ++x) {
|
| + add(cubic[x]);
|
| + }
|
| +}
|
|
|