summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-02-03 15:06:05 -0800
committerRomain Guy <romainguy@google.com>2011-02-03 16:20:08 -0800
commit2fc941e4650d618ff6e122f28b616d9032ffa134 (patch)
treec05148e4502efbb492d93e45386601eab522faa4 /graphics/java
parentef36255f876aa1a61dcf5e879f4380887dda3854 (diff)
downloadframeworks_base-2fc941e4650d618ff6e122f28b616d9032ffa134.zip
frameworks_base-2fc941e4650d618ff6e122f28b616d9032ffa134.tar.gz
frameworks_base-2fc941e4650d618ff6e122f28b616d9032ffa134.tar.bz2
Fixes cache misses and extra allocations.
Bug #3421454 Change-Id: If4d5c960a7e4c581a9d213073e658284b4e1c497
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Canvas.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java
index c1deed3..136e9b4 100644
--- a/graphics/java/android/graphics/Canvas.java
+++ b/graphics/java/android/graphics/Canvas.java
@@ -104,7 +104,7 @@ public class Canvas {
public Canvas() {
// 0 means no native bitmap
mNativeCanvas = initRaster(0);
- mFinalizer = new CanvasFinalizer(0);
+ mFinalizer = new CanvasFinalizer(mNativeCanvas);
}
/**