commit | 0333247337b910bb981c6ba17ca0cc76d5b614ff | [log] [tgz] |
---|---|---|
author | nicolasroard <nicolasroard@google.com> | Tue Apr 16 15:56:35 2013 -0700 |
committer | nicolasroard <nicolasroard@google.com> | Tue Apr 16 16:00:03 2013 -0700 |
tree | d7207eefabb34106f54373c176872582905e1c85 | |
parent | f3f0aae490911245ad6a5602b77b72f0546b93cc [diff] |
Make convertBitmap() protected so that Frames can use it. bug:8633011 Change-Id: Ic731a1d906a6a388a22568f396111f8ca3b4475e
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java index 0a45e83..cfbb560 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
@@ -141,7 +141,7 @@ return bitmap; } - private static Allocation convertBitmap(Bitmap bitmap) { + protected static Allocation convertBitmap(Bitmap bitmap) { return Allocation.createFromBitmap(CachingPipeline.getRenderScriptContext(), bitmap, Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT | Allocation.USAGE_GRAPHICS_TEXTURE);