summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoonas Kylmälä <joonas.kylmala@iki.fi>2019-09-01 17:30:59 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-12-09 16:09:21 (GMT)
commit6a96f17f0626730dcb319f894cf2377a07302dbd (patch)
tree99998340888bd7d186c271b87364b9101c28c326
parentf171facab57489b58d74c77dad10e774bfdbbacd (diff)
downloadframeworks_base-6a96f17f0626730dcb319f894cf2377a07302dbd.zip
frameworks_base-6a96f17f0626730dcb319f894cf2377a07302dbd.tar.gz
frameworks_base-6a96f17f0626730dcb319f894cf2377a07302dbd.tar.bz2
Allow HW bitmaps with software renderingreplicant-9
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()) {