diff options
Diffstat (limited to 'src/org/cyanogenmod/wallpapers/photophase/TextureManager.java')
-rw-r--r-- | src/org/cyanogenmod/wallpapers/photophase/TextureManager.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java b/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java index 65987c3..3c3ad78 100644 --- a/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java +++ b/src/org/cyanogenmod/wallpapers/photophase/TextureManager.java @@ -98,9 +98,9 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { // is associated to the destination target (only if aspect ratio will be applied) if (!Preferences.General.isFixAspectRatio()) { ti = GLESUtil.loadTexture( - mImage, mDimensions, effect, mDimensions, false, enqueue); + mImage, mDimensions, effect, mDimensions, false); } else { - ti = GLESUtil.loadTexture(mImage, mDimensions, null, null, false, enqueue); + ti = GLESUtil.loadTexture(mImage, mDimensions, null, null, false); ti.effect = effect; } @@ -109,7 +109,7 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { if (!enqueue) { // Invalid textures are also reported, so requestor can handle it TextureRequestor requestor = mPendingRequests.remove(0); - fixAspectRatio(requestor, ti, false); + fixAspectRatio(requestor, ti); requestor.setTextureHandle(ti); // Clean up memory @@ -252,7 +252,7 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { synchronized (mSync) { try { GLESTextureInfo ti = mQueue.remove(); - fixAspectRatio(requestor, ti, true); + fixAspectRatio(requestor, ti); requestor.setTextureHandle(ti); // Clean up memory @@ -436,9 +436,8 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { * @param request The requestor target * @param ti The original texture information * @param effect The effect to apply to the destination picture - * @param compress Compress the texture */ - void fixAspectRatio(TextureRequestor requestor, GLESTextureInfo ti, boolean compress) { + void fixAspectRatio(TextureRequestor requestor, GLESTextureInfo ti) { // Check if we have to apply any correction to the image if (Preferences.General.isFixAspectRatio()) { // Transform requestor dimensions to screen dimensions @@ -455,7 +454,7 @@ public class TextureManager implements OnMediaPictureDiscoveredListener { pixels.width(), pixels.height(), ThumbnailUtils.OPTIONS_RECYCLE_INPUT); - GLESTextureInfo dst = GLESUtil.loadTexture(thumb, ti.effect, pixels, compress); + GLESTextureInfo dst = GLESUtil.loadTexture(thumb, ti.effect, pixels); // Destroy references int[] textures = new int[]{ti.handle}; |