Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index cf57c2d7006718aabfdff28cadbc8e21a0915e20..cc2f318713716d644f8637d7a99e03b81e69c007 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -55,7 +55,8 @@ const SkBitmap& SkBaseDevice::accessBitmap(bool changePixels) { |
SkPixelGeometry SkBaseDevice::CreateInfo::AdjustGeometry(const SkImageInfo& info, |
TileUsage tileUsage, |
- SkPixelGeometry geo) { |
+ SkPixelGeometry geo, |
+ bool preserveLCDText) { |
switch (tileUsage) { |
case kPossible_TileUsage: |
// (we think) for compatibility with old clients, we assume this layer can support LCD |
@@ -63,7 +64,7 @@ SkPixelGeometry SkBaseDevice::CreateInfo::AdjustGeometry(const SkImageInfo& info |
// our callers (reed/robertphilips). |
break; |
case kNever_TileUsage: |
- if (info.alphaType() != kOpaque_SkAlphaType) { |
+ if (!preserveLCDText) { |
geo = kUnknown_SkPixelGeometry; |
} |
break; |