Skip to content

[canvaskit] Use ImageFilter.filterBounds to adjust ImageFilter paintbounds #130453

@harryterkelsen

Description

@harryterkelsen

Is there an existing issue for this?

Use case

The CanvasKit backend in Flutter Web calculates rough paint bounds when rendering. However, for ImageFilters the paint bounds are inaccurate because they do not reflect how the image filter changes the bounds of the content it filters.

Proposal

Use ImageFilter.filterBounds (or equivalent API) when it is made available in CanvasKit (potential PR https://skia-review.googlesource.com/c/skia/+/721299)

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listc: renderingUI glitches reported at the engine/skia or impeller rendering levele: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions