summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-02-03 20:52:59 +0800
committerChih-Chung Chang <chihchung@google.com>2012-02-07 13:07:51 +0800
commitfb2cfa223b47db3ee46df22dcdb92f4fb013dcdd (patch)
treedd62e9ca1594525c133c1d773c0999219b069a77
parentf0533365dc1c89253a551a77fbc987568bb8e650 (diff)
downloadframeworks_base-fb2cfa223b47db3ee46df22dcdb92f4fb013dcdd.zip
frameworks_base-fb2cfa223b47db3ee46df22dcdb92f4fb013dcdd.tar.gz
frameworks_base-fb2cfa223b47db3ee46df22dcdb92f4fb013dcdd.tar.bz2
Comment out a warning message to avoid log spamming.
The warning message happens a lot when the region decoder is used (like viewing a picture in the Gallery app). Change-Id: I435f92eac8f322b091f3ed14ee48d0b5f0d84a8a
-rw-r--r--core/jni/android/graphics/Graphics.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/jni/android/graphics/Graphics.cpp b/core/jni/android/graphics/Graphics.cpp
index 47ffd94..a1d41ee 100644
--- a/core/jni/android/graphics/Graphics.cpp
+++ b/core/jni/android/graphics/Graphics.cpp
@@ -518,12 +518,6 @@ JavaPixelAllocator::JavaPixelAllocator(JNIEnv* env)
bool JavaPixelAllocator::allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) {
JNIEnv* env = vm2env(fVM);
- // If allocating in the Java heap, only allow a single object to be
- // allocated for the lifetime of this object.
- if (fStorageObj != NULL) {
- SkDebugf("WARNING: One-shot allocator has already allocated (alloc count = %d)\n", fAllocCount);
-// sk_throw();
- }
fStorageObj = GraphicsJNI::allocateJavaPixelRef(env, bitmap, ctable);
fAllocCount += 1;
return fStorageObj != NULL;