aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-27 15:08:23 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-27 15:08:23 +0000
commitb36855108718adc2d8e9018c4accaa878bc249ee (patch)
treebd8976afb88ddddaf9865c635e9f5df3f41a67d6
parent3dcbd4673d7ee03ded1c08e6d58713cb07e9d1f1 (diff)
fix mask error for BW text, where I forgot to look at just the low-8 bits
of the right mask when computing the number of "full" runs. possibly related to crbug.com/178796 Review URL: https://codereview.chromium.org/13044012 git-svn-id: http://skia.googlecode.com/svn/trunk@8408 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/core/SkBlitBWMaskTemplate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkBlitBWMaskTemplate.h b/src/core/SkBlitBWMaskTemplate.h
index fa25274427..00d2326bff 100644
--- a/src/core/SkBlitBWMaskTemplate.h
+++ b/src/core/SkBlitBWMaskTemplate.h
@@ -63,6 +63,7 @@ static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, co
int left_mask = 0xFF >> (left_edge & 7);
int rite_mask = 0xFF << (8 - (rite_edge & 7));
+ rite_mask &= 0xFF; // only want low-8 bits of mask
int full_runs = (rite_edge >> 3) - ((left_edge + 7) >> 3);
// check for empty right mask, so we don't read off the end (or go slower than we need to)