From 1aa9974c1fa79ffa587fb53756a886aab6aa08e2 Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 16 Oct 2012 17:06:13 -0700 Subject: Add hook to manipulate SurfaceTexture transform Bug: 7302956 Change-Id: I32bdeb22630dbeba9f028e1c68167d10a5288a28 --- gallerycommon/src/com/android/gallery3d/common/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gallerycommon') 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; -- cgit v1.2.3