summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2014-12-10 18:02:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-10 18:02:12 +0000
commitd64d68d9c1c56d98e06d86b7438c46b108855c3b (patch)
tree2f08bf8b27505b02b7a86a0fc99d34e00afeb6b6
parentfe6a5ae92481d52093ae8accfbcda3793816d3ec (diff)
parent70ffbf9e8288296ef7009c8297bcb6da6a7f73b2 (diff)
downloadframeworks_base-d64d68d9c1c56d98e06d86b7438c46b108855c3b.zip
frameworks_base-d64d68d9c1c56d98e06d86b7438c46b108855c3b.tar.gz
frameworks_base-d64d68d9c1c56d98e06d86b7438c46b108855c3b.tar.bz2
Merge "drawBitmapMatrix is deprecated, code work-around"
-rw-r--r--core/jni/android/graphics/SkiaCanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/jni/android/graphics/SkiaCanvas.cpp b/core/jni/android/graphics/SkiaCanvas.cpp
index c7255a1..793d177 100644
--- a/core/jni/android/graphics/SkiaCanvas.cpp
+++ b/core/jni/android/graphics/SkiaCanvas.cpp
@@ -562,7 +562,9 @@ void SkiaCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, const
}
void SkiaCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) {
- mCanvas->drawBitmapMatrix(bitmap, matrix, paint);
+ SkAutoCanvasRestore acr(mCanvas, true);
+ mCanvas->concat(matrix);
+ mCanvas->drawBitmap(bitmap, 0, 0, paint);
}
void SkiaCanvas::drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop,