summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-03-04 12:29:42 -0800
committerBobby Georgescu <georgescu@google.com>2013-03-04 12:29:42 -0800
commit011dd556c4058a7832a584298f68c637a0eee0cd (patch)
tree904e15a32a0fd39059ddc750b14a13f928aeeaff /src
parent22fc7aac58ceceea9aaa391023cab8a02a8eb004 (diff)
downloadandroid_packages_apps_Snap-011dd556c4058a7832a584298f68c637a0eee0cd.tar.gz
android_packages_apps_Snap-011dd556c4058a7832a584298f68c637a0eee0cd.tar.bz2
android_packages_apps_Snap-011dd556c4058a7832a584298f68c637a0eee0cd.zip
Clean up comments
Change-Id: I29e6d7ffef6b6b319262982709794aadd7919d8c
Diffstat (limited to 'src')
-rw-r--r--src/com/android/photos/drawables/AutoThumbnailDrawable.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/com/android/photos/drawables/AutoThumbnailDrawable.java b/src/com/android/photos/drawables/AutoThumbnailDrawable.java
index 8959ecd82..09b344147 100644
--- a/src/com/android/photos/drawables/AutoThumbnailDrawable.java
+++ b/src/com/android/photos/drawables/AutoThumbnailDrawable.java
@@ -56,11 +56,6 @@ public abstract class AutoThumbnailDrawable<T> extends Drawable {
private int mImageWidth, mImageHeight;
private Rect mBounds = new Rect();
private int mSampleSize = 1;
- // mSampleSize is the target sample size for the full-size dimensions
- // of the image (so if a preferred, smaller image is used, it might
- // not reflect the sample size used when decoding that image). This
- // value is used in refreshSampleSizeLocked to determine whether the
- // image needs to be refreshed.
public AutoThumbnailDrawable() {
mPaint.setAntiAlias(true);
@@ -71,11 +66,8 @@ public abstract class AutoThumbnailDrawable<T> extends Drawable {
protected abstract byte[] getPreferredImageBytes(T data);
protected abstract InputStream getFallbackImageStream(T data);
-
- // Must hold mLock when calling on different thread from setImage
protected abstract boolean dataChangedLocked(T data);
- // Must only be called from one thread (usually the UI thread)
public void setImage(T data, int width, int height) {
if (!dataChangedLocked(data)) return;
synchronized (mLock) {