summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos
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
commitb078179c9219dc4cd99c2e4e7c5e5266587adaac (patch)
tree2ed1542f6e53437c49fa1f49d13674e01cecba5f /src/com/android/photos
parente118ac5340f04b2cd8e421bee3f85db723a51d38 (diff)
downloadandroid_packages_apps_Gallery2-b078179c9219dc4cd99c2e4e7c5e5266587adaac.tar.gz
android_packages_apps_Gallery2-b078179c9219dc4cd99c2e4e7c5e5266587adaac.tar.bz2
android_packages_apps_Gallery2-b078179c9219dc4cd99c2e4e7c5e5266587adaac.zip
Clean up comments
Change-Id: I29e6d7ffef6b6b319262982709794aadd7919d8c
Diffstat (limited to 'src/com/android/photos')
-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) {