expandBounds method

  1. @override
void expandBounds(
  1. GRect layerBounds,
  2. GRect outputBounds
)
override

Expands the filter's bounds to include the blur effect.

The layerBounds parameter is the original bounds of the content.

The outputBounds parameter is the expanded bounds of the filter.

Implementation

@override
void expandBounds(GRect layerBounds, GRect outputBounds) {
  _rect.copyFrom(layerBounds).inflate(blurX, blurY);
  outputBounds.expandToInclude(_rect);
}