From 17e8e7f090bf84986b3fc2c9822daa83c8719ecc Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 16 May 2012 14:20:20 -0400 Subject: Disable the incorrect culling of vertical text. bug:6242553 Change-Id: Ied1865b667c21d0a59586ec8b36db276f892ccbc --- src/core/SkPictureRecord.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index ba49b72..fdeec3f 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); -- cgit v1.1