From b933055cf3f7f8ea89bfd3bc9c37a3891ff7310a Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 16 Jun 2014 17:31:48 -0400 Subject: stop using (deprecated) SkBitmap::Config Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b --- libs/hwui/PathCache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/hwui/PathCache.cpp') diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index 9dd5aa514d3f..97eb58300ec9 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -104,8 +104,7 @@ void PathCache::computeBounds(const SkRect& bounds, const SkPaint* paint, } static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { - bitmap.setConfig(SkBitmap::kA8_Config, width, height); - bitmap.allocPixels(); + bitmap.allocPixels(SkImageInfo::MakeA8(width, height)); bitmap.eraseColor(0); } -- cgit v1.2.3-59-g8ed1b