aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkCanvas.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2014-10-16 11:53:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-16 11:53:30 -0700
commit19653d1d004610b4ba07ce563a5701164e120e45 (patch)
tree16519c940c8b52f5f596a8759207ee5f31062a69 /src/core/SkCanvas.cpp
parentc9df8ce8212448a9d33b57d266a0aef5c28a98e9 (diff)
Implicit SkTextBlob bounds
Compute blob bounds when the client doesn't pass explicit run rects to the builder. This allows us to remove a couple of internal workarounds. R=reed@google.com,mtklein@google.com,bungeman@google.com Review URL: https://codereview.chromium.org/654873003
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r--src/core/SkCanvas.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index c57add408f..709cb4c0be 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -2195,9 +2195,7 @@ void SkCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPat
void SkCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
const SkPaint& paint) {
- // FIXME: temporarily disable quickreject for empty bounds,
- // pending implicit blob bounds implementation.
- if (!blob->bounds().isEmpty() && paint.canComputeFastBounds()) {
+ if (paint.canComputeFastBounds()) {
SkRect storage;
if (this->quickReject(paint.computeFastBounds(blob->bounds().makeOffset(x, y), &storage))) {