summaryrefslogtreecommitdiffstats
path: root/libs/input
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2014-06-16 17:31:48 -0400
committerMike Reed <reed@google.com>2014-06-20 10:28:37 -0400
commitb933055cf3f7f8ea89bfd3bc9c37a3891ff7310a (patch)
tree7d68b96a6fd02ca6ece664d5c53ee9778ef49d17 /libs/input
parent9285d1bf9c57e5f1da8f8d8ef7a6a38b2f0e4ec3 (diff)
downloadframeworks_base-b933055cf3f7f8ea89bfd3bc9c37a3891ff7310a.zip
frameworks_base-b933055cf3f7f8ea89bfd3bc9c37a3891ff7310a.tar.gz
frameworks_base-b933055cf3f7f8ea89bfd3bc9c37a3891ff7310a.tar.bz2
stop using (deprecated) SkBitmap::Config
Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
Diffstat (limited to 'libs/input')
-rw-r--r--libs/input/SpriteController.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/input/SpriteController.cpp b/libs/input/SpriteController.cpp
index 3f6ccc9..063383b 100644
--- a/libs/input/SpriteController.cpp
+++ b/libs/input/SpriteController.cpp
@@ -206,9 +206,8 @@ void SpriteController::doUpdateSprites() {
} else {
SkBitmap surfaceBitmap;
ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format);
- surfaceBitmap.setConfig(SkBitmap::kARGB_8888_Config,
- outBuffer.width, outBuffer.height, bpr);
- surfaceBitmap.setPixels(outBuffer.bits);
+ surfaceBitmap.installPixels(SkImageInfo::MakeN32Premul(outBuffer.width, outBuffer.height),
+ outBuffer.bits, bpr);
SkCanvas surfaceCanvas(surfaceBitmap);