Skip to content

Commit

Permalink
Comments about memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimezis committed Jun 12, 2016
1 parent ba3d8ff commit a75e594
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
import android.support.v8.renderscript.ScriptIntrinsicBlur;

/**
* Blur using RenderScript. Currently the fastest blur algorithm
* but has additional overhead because of Bitmap copying to Allocation object.
* Blur using RenderScript, processed on GPU. Currently the fastest blur algorithm.
*/
public final class RenderScriptBlur implements BlurAlgorithm {
private RenderScript renderScript;
Expand Down Expand Up @@ -39,6 +38,7 @@ private boolean canReuseAllocation(Bitmap bitmap) {
*/
@Override
public final Bitmap blur(Bitmap bitmap, float blurRadius) {
//Allocation will use the same backing array of pixels as bitmap if created with USAGE_SHARED flag
Allocation inAllocation = Allocation.createFromBitmap(renderScript, bitmap);
Bitmap outputBitmap;

Expand Down

0 comments on commit a75e594

Please sign in to comment.