Index: src/utils/SkCanvasStateUtils.cpp |
diff --git a/src/utils/SkCanvasStateUtils.cpp b/src/utils/SkCanvasStateUtils.cpp |
index c5b558a1fbb51ea5bcf2d1c10ba08f062bba7320..64f62dd8b190fb507da998294b489438157dd0c7 100644 |
--- a/src/utils/SkCanvasStateUtils.cpp |
+++ b/src/utils/SkCanvasStateUtils.cpp |
@@ -223,7 +223,7 @@ |
layerState->height = bitmap.height(); |
switch (bitmap.colorType()) { |
- case kPMColor_SkColorType: |
+ case kN32_SkColorType: |
layerState->raster.config = kARGB_8888_RasterConfig; |
break; |
case kRGB_565_SkColorType: |
@@ -281,7 +281,7 @@ |
SkBitmap bitmap; |
SkColorType colorType = |
- layerState.raster.config == kARGB_8888_RasterConfig ? kPMColor_SkColorType : |
+ layerState.raster.config == kARGB_8888_RasterConfig ? kN32_SkColorType : |
layerState.raster.config == kRGB_565_RasterConfig ? kRGB_565_SkColorType : |
kUnknown_SkColorType; |