summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com
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
commit2a9a6b53fb4a07b27773ee31171f441bc8aa08b3 (patch)
tree50dedcbe5f0b3e797f9d1e3d447b9e874307ebfa /gallerycommon/src/com
parent306d7745b13ed3e489556e1e0019130e434499b7 (diff)
downloadandroid_packages_apps_Snap-2a9a6b53fb4a07b27773ee31171f441bc8aa08b3.zip
android_packages_apps_Snap-2a9a6b53fb4a07b27773ee31171f441bc8aa08b3.tar.gz
android_packages_apps_Snap-2a9a6b53fb4a07b27773ee31171f441bc8aa08b3.tar.bz2
Add hook to manipulate SurfaceTexture transform
Bug: 7302956 Change-Id: I32bdeb22630dbeba9f028e1c68167d10a5288a28
Diffstat (limited to 'gallerycommon/src/com')
-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 f5a2667..3a68745 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;