From 011dd556c4058a7832a584298f68c637a0eee0cd Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Mon, 4 Mar 2013 12:29:42 -0800 Subject: Clean up comments Change-Id: I29e6d7ffef6b6b319262982709794aadd7919d8c --- src/com/android/photos/drawables/AutoThumbnailDrawable.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/com/android/photos') 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 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 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) { -- cgit v1.2.3