| Index: src/core/SkPaint.cpp
|
| diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
|
| index c7cbce18c77e48f3f864dd91446b8be82cfedd87..f67395970bc6615981db995a99c6e1adabc97eb9 100644
|
| --- a/src/core/SkPaint.cpp
|
| +++ b/src/core/SkPaint.cpp
|
| @@ -2552,51 +2552,3 @@ bool SkPaint::nothingToDraw() const {
|
| }
|
| return false;
|
| }
|
| -
|
| -
|
| -//////////// Move these to their own file soon.
|
| -
|
| -SK_DEFINE_INST_COUNT(SkDrawLooper)
|
| -
|
| -bool SkDrawLooper::canComputeFastBounds(const SkPaint& paint) {
|
| - SkCanvas canvas;
|
| -
|
| - this->init(&canvas);
|
| - for (;;) {
|
| - SkPaint p(paint);
|
| - if (this->next(&canvas, &p)) {
|
| - p.setLooper(NULL);
|
| - if (!p.canComputeFastBounds()) {
|
| - return false;
|
| - }
|
| - } else {
|
| - break;
|
| - }
|
| - }
|
| - return true;
|
| -}
|
| -
|
| -void SkDrawLooper::computeFastBounds(const SkPaint& paint, const SkRect& src,
|
| - SkRect* dst) {
|
| - SkCanvas canvas;
|
| -
|
| - this->init(&canvas);
|
| - for (bool firstTime = true;; firstTime = false) {
|
| - SkPaint p(paint);
|
| - if (this->next(&canvas, &p)) {
|
| - SkRect r(src);
|
| -
|
| - p.setLooper(NULL);
|
| - p.computeFastBounds(r, &r);
|
| - canvas.getTotalMatrix().mapRect(&r);
|
| -
|
| - if (firstTime) {
|
| - *dst = r;
|
| - } else {
|
| - dst->join(r);
|
| - }
|
| - } else {
|
| - break;
|
| - }
|
| - }
|
| -}
|
|
|