diff options
author | 2012-04-12 14:27:42 +0000 | |
---|---|---|
committer | 2012-04-12 14:27:42 +0000 | |
commit | 2eb5bb1e28d61dd24fac1d730cc92e89c5748c4e (patch) | |
tree | d83c43128fd27e74d527214ce9753721f0eccb51 /src/core/SkPictureRecord.cpp | |
parent | 17b6ba41f2144cd3ff446d52da9df23ca7d77b90 (diff) |
can't perform fast top_bottom cull if the text is vertical
git-svn-id: http://skia.googlecode.com/svn/trunk@3659 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index ba49b729de..fdeec3fd27 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -319,7 +319,7 @@ void SkPictureRecord::addFontMetricsTopBottom(const SkPaint& paint, void SkPictureRecord::drawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, const SkPaint& paint) { - bool fast = paint.canComputeFastBounds(); + bool fast = !paint.isVerticalText() && paint.canComputeFastBounds(); addDraw(fast ? DRAW_TEXT_TOP_BOTTOM : DRAW_TEXT); addPaint(paint); @@ -356,7 +356,7 @@ void SkPictureRecord::drawPosText(const void* text, size_t byteLength, } } - bool fastBounds = paint.canComputeFastBounds(); + bool fastBounds = !paint.isVerticalText() && paint.canComputeFastBounds(); bool fast = canUseDrawH && fastBounds; if (fast) { @@ -404,7 +404,7 @@ void SkPictureRecord::drawPosTextH(const void* text, size_t byteLength, if (0 == points) return; - bool fast = paint.canComputeFastBounds(); + bool fast = !paint.isVerticalText() && paint.canComputeFastBounds(); addDraw(fast ? DRAW_POS_TEXT_H_TOP_BOTTOM : DRAW_POS_TEXT_H); addPaint(paint); |