commit | 2d10993c4276db5b28ef7cb909362fbbc26c460c | [log] [tgz] |
---|---|---|
author | Ruben <rglez@google.com> | Fri Apr 25 13:17:32 2014 -0700 |
committer | Ruben <rglez@google.com> | Fri Apr 25 13:17:32 2014 -0700 |
tree | d5007ecd11a9c37fc2280468f4fcacdccf686146 | |
parent | d732a611bd661fc2ac3c801a545cfbba0f179484 [diff] |
Add a few missed Trace.endSection() Change-Id: Ib55c3ca461778a7efb21c4558efe7c4bfe27eb95
diff --git a/src/com/android/bitmap/UnrefedPooledCache.java b/src/com/android/bitmap/UnrefedPooledCache.java index 5729ec4..7bc6d0d 100644 --- a/src/com/android/bitmap/UnrefedPooledCache.java +++ b/src/com/android/bitmap/UnrefedPooledCache.java
@@ -110,6 +110,7 @@ public void offer(V value) { Trace.beginSection("pool offer"); if (value.getRefCount() != 0 || !value.isEligibleForPooling()) { + Trace.endSection(); throw new IllegalArgumentException("unexpected offer of an invalid object: " + value); } mPool.offer(value);
diff --git a/src/com/android/bitmap/drawable/BasicBitmapDrawable.java b/src/com/android/bitmap/drawable/BasicBitmapDrawable.java index 42c4fbf..ffea5c8 100644 --- a/src/com/android/bitmap/drawable/BasicBitmapDrawable.java +++ b/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
@@ -142,6 +142,7 @@ public void bind(RequestKey key) { Trace.beginSection("bind"); if (mCurrKey != null && mCurrKey.equals(key)) { + Trace.endSection(); return; } setImage(key);