Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 6cd6dda322b943d65017af6be1f0243c4f2fa747..8d17be7bfec597e377ef74fe1cec1b1bfadb4719 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2299,11 +2299,8 @@ void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
} |
void SkCanvas::EXPERIMENTAL_drawDrawable(SkCanvasDrawable* dr) { |
- if (dr) { |
- SkRect bounds; |
- if (!dr->getBounds(&bounds) || !this->quickReject(bounds)) { |
- this->onDrawDrawable(dr); |
- } |
+ if (dr && !this->quickReject(dr->getBounds())) { |
+ this->onDrawDrawable(dr); |
} |
} |