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

Avoid segfault when converting no-op ColorFilter to ImageFilter #37596

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Nov 14, 2022

When constructing the DlColorFilterImageFilter, it doesn't tolerate nullptr. But if Skia decides the color filter is a no-op, we're giving it nullptr.

It might be useful to have something in DL to signify no-op, or otherwise optimize these away, but it's probably a micro-optimization if anything and we should at least avoid crashing.

fixes flutter/flutter#115143

Copy link
Contributor

@flar flar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 14, 2022
@auto-submit auto-submit bot merged commit 91656a5 into flutter:main Nov 14, 2022
@zanderso
Copy link
Member

Thanks!

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 14, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 14, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 15, 2022
…115335)

* 6976132e5 [web] Switch to doubles (flutter/engine#37336)

* c3d7c5967 Roll Skia from a434f9b69660 to 33c62dafffc9 (9 revisions) (flutter/engine#37598)

* 91656a5ff Avoid segfault when converting no-op ColorFilter to ImageFilter (flutter/engine#37596)

* 965f87d31 Archive windows gen_snapshot.exe. (flutter/engine#35414)

* 16dba68e5 [Impeller] Only apply the rrect blur fast path for solid Colors (flutter/engine#37594)

* d366183c0 Roll Dart SDK from 7cbcf48157cf to 6f5478a58387 (2 revisions) (flutter/engine#37597)

* 88f56870b Roll Fuchsia Linux SDK from dRHIZSishiboEHMdw... to B0OuUvWOY24LI1WoF... (flutter/engine#37603)

* 28eeba518 [Multiwindow, macOS] FlutterCompositor::Present receives view_id (flutter/engine#37391)

* 8d815657c Roll Skia from 33c62dafffc9 to b474a43dcc34 (6 revisions) (flutter/engine#37606)

* 78ae24140 Revert "[web] Switch to doubles (#37336)" (flutter/engine#37609)
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#115335)

* 6976132e5 [web] Switch to doubles (flutter/engine#37336)

* c3d7c5967 Roll Skia from a434f9b69660 to 33c62dafffc9 (9 revisions) (flutter/engine#37598)

* 91656a5ff Avoid segfault when converting no-op ColorFilter to ImageFilter (flutter/engine#37596)

* 965f87d31 Archive windows gen_snapshot.exe. (flutter/engine#35414)

* 16dba68e5 [Impeller] Only apply the rrect blur fast path for solid Colors (flutter/engine#37594)

* d366183c0 Roll Dart SDK from 7cbcf48157cf to 6f5478a58387 (2 revisions) (flutter/engine#37597)

* 88f56870b Roll Fuchsia Linux SDK from dRHIZSishiboEHMdw... to B0OuUvWOY24LI1WoF... (flutter/engine#37603)

* 28eeba518 [Multiwindow, macOS] FlutterCompositor::Present receives view_id (flutter/engine#37391)

* 8d815657c Roll Skia from 33c62dafffc9 to b474a43dcc34 (6 revisions) (flutter/engine#37606)

* 78ae24140 Revert "[web] Switch to doubles (flutter#37336)" (flutter/engine#37609)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…lutter#115335)

* 6976132e5 [web] Switch to doubles (flutter/engine#37336)

* c3d7c5967 Roll Skia from a434f9b69660 to 33c62dafffc9 (9 revisions) (flutter/engine#37598)

* 91656a5ff Avoid segfault when converting no-op ColorFilter to ImageFilter (flutter/engine#37596)

* 965f87d31 Archive windows gen_snapshot.exe. (flutter/engine#35414)

* 16dba68e5 [Impeller] Only apply the rrect blur fast path for solid Colors (flutter/engine#37594)

* d366183c0 Roll Dart SDK from 7cbcf48157cf to 6f5478a58387 (2 revisions) (flutter/engine#37597)

* 88f56870b Roll Fuchsia Linux SDK from dRHIZSishiboEHMdw... to B0OuUvWOY24LI1WoF... (flutter/engine#37603)

* 28eeba518 [Multiwindow, macOS] FlutterCompositor::Present receives view_id (flutter/engine#37391)

* 8d815657c Roll Skia from 33c62dafffc9 to b474a43dcc34 (6 revisions) (flutter/engine#37606)

* 78ae24140 Revert "[web] Switch to doubles (flutter#37336)" (flutter/engine#37609)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App Crashes when using certain BlendMode values with ColorFilter in BackdropFilter
4 participants