Skip to content

Commit

Permalink
Smoother blur rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal committed Jun 3, 2020
1 parent 18e3fb6 commit d86d625
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -129,7 +129,10 @@ private void renderBlurOverlay(RendererContext rendererContext) {
if (child.getZOrder() == EditorModel.Z_MASK) {
renderMask = true;
if (blurPaint == null) {
blurPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
blurPaint = new Paint();
blurPaint.setAntiAlias(true);
blurPaint.setFilterBitmap(true);
blurPaint.setDither(true);
}
blurPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT));
rendererContext.setMaskPaint(blurPaint);
Expand Down

0 comments on commit d86d625

Please sign in to comment.