Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented May 18, 2020

When specifying blur on the 2D canvas the canvas applies it in bitmap pixels. However, because bitmapSize / cssSize = devicePixelRatio (source), the blur ends up being inconsistent with the CSS blur applied to DOM elements.

This change applies device-pixel ratio to the canvas blur so the two are consistent.

Fixes flutter/flutter#55933.

Requires flutter/goldens#97

@yjbanov yjbanov requested a review from ferhatb May 18, 2020 21:10
@auto-assign auto-assign bot requested a review from iskakaushik May 18, 2020 21:12
@yjbanov
Copy link
Contributor Author

yjbanov commented May 19, 2020

luci-engine failures are Fuchsia flakes. Ignoring.

@yjbanov yjbanov merged commit 2cabca4 into flutter:master May 19, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 20, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 20, 2020
wandyers pushed a commit to wandyers/engine that referenced this pull request May 23, 2020
* compensate for DPR in canvas blur
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter Web: Image in Container makes shadow different.

3 participants