diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-03-04 20:32:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-04 20:32:44 +0000 |
commit | e9f4e8c565de133a6cc16e562050d304e02e4cb6 (patch) | |
tree | 2df0096f5be4eb9495f3b3d1d6c5f64ea9cd161f | |
parent | ee4db343e856800b141dcf4d69fe96b1270339e4 (diff) | |
parent | 011dd556c4058a7832a584298f68c637a0eee0cd (diff) | |
download | android_packages_apps_Snap-e9f4e8c565de133a6cc16e562050d304e02e4cb6.tar.gz android_packages_apps_Snap-e9f4e8c565de133a6cc16e562050d304e02e4cb6.tar.bz2 android_packages_apps_Snap-e9f4e8c565de133a6cc16e562050d304e02e4cb6.zip |
Merge "Clean up comments" into gb-ub-photos-bryce
-rw-r--r-- | src/com/android/photos/drawables/AutoThumbnailDrawable.java | 8 |
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) { |