summaryrefslogtreecommitdiffstats
path: root/gallerycommon
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-10-16 17:06:13 -0700
committerJohn Reck <jreck@google.com>2012-10-16 17:06:13 -0700
commit4ce48412b86ac28042bf70e4cbe051ffc3dd489d (patch)
tree918564b480e534a492bfa63b71a1ed5127ba240e /gallerycommon
parent84440670da46866867ace3be2c358a54db984a6d (diff)
downloadandroid_packages_apps_Gallery2-4ce48412b86ac28042bf70e4cbe051ffc3dd489d.tar.gz
android_packages_apps_Gallery2-4ce48412b86ac28042bf70e4cbe051ffc3dd489d.tar.bz2
android_packages_apps_Gallery2-4ce48412b86ac28042bf70e4cbe051ffc3dd489d.zip
Add hook to manipulate SurfaceTexture transform
Bug: 7302956 Change-Id: I32bdeb22630dbeba9f028e1c68167d10a5288a28
Diffstat (limited to 'gallerycommon')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/Utils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/Utils.java b/gallerycommon/src/com/android/gallery3d/common/Utils.java
index f5a266706..3a68745c4 100644
--- a/gallerycommon/src/com/android/gallery3d/common/Utils.java
+++ b/gallerycommon/src/com/android/gallery3d/common/Utils.java
@@ -76,7 +76,7 @@ public class Utils {
// Throws IllegalArgumentException if the input is <= 0 or
// the answer overflows.
public static int nextPowerOf2(int n) {
- if (n <= 0 || n > (1 << 30)) throw new IllegalArgumentException();
+ if (n <= 0 || n > (1 << 30)) throw new IllegalArgumentException("n is invalid: " + n);
n -= 1;
n |= n >> 16;
n |= n >> 8;