summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
author Mike Reed <reed@google.com> 2014-06-16 17:31:48 -0400
committer Mike Reed <reed@google.com> 2014-06-20 10:28:37 -0400
commitb933055cf3f7f8ea89bfd3bc9c37a3891ff7310a (patch)
tree7d68b96a6fd02ca6ece664d5c53ee9778ef49d17 /libs/hwui/PathCache.cpp
parent9285d1bf9c57e5f1da8f8d8ef7a6a38b2f0e4ec3 (diff)
stop using (deprecated) SkBitmap::Config
Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r--libs/hwui/PathCache.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}