From 19653d1d004610b4ba07ce563a5701164e120e45 Mon Sep 17 00:00:00 2001 From: fmalita Date: Thu, 16 Oct 2014 11:53:30 -0700 Subject: 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 --- src/core/SkCanvas.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/core/SkCanvas.cpp') 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))) { -- cgit v1.2.3