summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2012-05-07 17:45:44 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2012-05-07 20:17:38 -0700
commit30ca5cd11a23f06f2f8eeaa587685450826f800f (patch)
tree69cdc7dc7653340c0fb27daccf1f82af7a0e45ed /graphics
parent476b03b0c0d5cae4d1b114c6f80858d59ba36cad (diff)
downloadframeworks_base-30ca5cd11a23f06f2f8eeaa587685450826f800f.zip
frameworks_base-30ca5cd11a23f06f2f8eeaa587685450826f800f.tar.gz
frameworks_base-30ca5cd11a23f06f2f8eeaa587685450826f800f.tar.bz2
Fix bug #6408393 Character corruption is caused when locale is changed
- free the TextLayoutCache on Locale change - also free TextLayoutCache when memory is low Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Canvas.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java
index 7e92973..3949afd 100644
--- a/graphics/java/android/graphics/Canvas.java
+++ b/graphics/java/android/graphics/Canvas.java
@@ -1617,6 +1617,13 @@ public class Canvas {
*/
public static native void freeCaches();
+ /**
+ * Free up text layout caches
+ *
+ * @hide
+ */
+ public static native void freeTextLayoutCaches();
+
private static native int initRaster(int nativeBitmapOrZero);
private static native void native_setBitmap(int nativeCanvas, int bitmap);
private static native int native_saveLayer(int nativeCanvas, RectF bounds,