summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonas Kylmälä <joonas.kylmala@iki.fi>2019-09-01 17:30:59 (GMT)
committerJoonas Kylmälä <joonas.kylmala@iki.fi>2019-09-01 17:30:59 (GMT)
commitbbb766887c5b1185f5c6682b3e10765cbe81bc6b (patch)
tree2140dd92249603f68b1960824ce09b2aa9180b06
parentda9bab529acdb0bf5a0cbf3ac1962ca57fb6b5d7 (diff)
downloadframeworks_base-bbb766887c5b1185f5c6682b3e10765cbe81bc6b.zip
frameworks_base-bbb766887c5b1185f5c6682b3e10765cbe81bc6b.tar.gz
frameworks_base-bbb766887c5b1185f5c6682b3e10765cbe81bc6b.tar.bz2
Allow HW bitmaps with software renderinghistory/before-09-december-2019
Fixes "E AndroidRuntime: java.lang.IllegalArgumentException: Software rendering doesn't support hardware bitmaps" Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r--graphics/java/android/graphics/BaseCanvas.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/BaseCanvas.java b/graphics/java/android/graphics/BaseCanvas.java
index 71ee6c2..096008e 100644
--- a/graphics/java/android/graphics/BaseCanvas.java
+++ b/graphics/java/android/graphics/BaseCanvas.java
@@ -55,7 +55,7 @@ public abstract class BaseCanvas {
* @hide
*/
protected int mDensity = Bitmap.DENSITY_NONE;
- private boolean mAllowHwBitmapsInSwMode = false;
+ private boolean mAllowHwBitmapsInSwMode = true;
protected void throwIfCannotDraw(Bitmap bitmap) {
if (bitmap.isRecycled()) {