aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/SkGlyph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkGlyph.cpp b/src/core/SkGlyph.cpp
index 3b72ac5a96..3d9389ce4c 100644
--- a/src/core/SkGlyph.cpp
+++ b/src/core/SkGlyph.cpp
@@ -45,11 +45,11 @@ static size_t format_rowbytes(int width, SkMask::Format format) {
return bits_to_bytes(width);
case SkMask::kA8_Format:
case SkMask::k3D_Format:
- return SkAlign4(width);
+ return width;
case SkMask::kARGB32_Format:
return width * sizeof(uint32_t);
case SkMask::kLCD16_Format:
- return SkAlign4(width * sizeof(uint16_t));
+ return width * sizeof(uint16_t);
default:
SK_ABORT("Unknown mask format.");
break;