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

delete DL ops no longer needed after removing SkCanvasRecorder#39863

Merged
auto-submit[bot] merged 1 commit intoflutter:mainfrom
flar:remove-SkCanvas-exclusive-DL-ops
Feb 25, 2023
Merged

delete DL ops no longer needed after removing SkCanvasRecorder#39863
auto-submit[bot] merged 1 commit intoflutter:mainfrom
flar:remove-SkCanvas-exclusive-DL-ops

Conversation

@flar
Copy link
Contributor

@flar flar commented Feb 24, 2023

This is pretty simple "obsolete code" fallout from removing DisplayListCanvasRecorder. Some of the DisplayList ops were only ever captured on a theoretical basis from an SkCanvas object. Since we no longer capture from SkCanvas, we can delete the methods and objects that aren't directly recordable from our own DisplayList APIs. These include:

  • DLBuilder::setAttributesFromPaint(SkPaint)
  • DL::setBlender (we only use the BlendMode enum, not custom blender objects)
  • DL::drawPicture (no more SkPictures in the ui.Canvas/flow layers work flow)
  • DL::drawSkVertices (no longer need to capture opaque SkVertices objects)
  • DL::drawLattice (only ever appeared as a general form of drawImageNine)

The 1000 lines are almost all straight deletions, and maybe some comment updates to no longer discuss objects we never see. Lots of Impeller::UNIMPLEMENTED removals...

@flar flar force-pushed the remove-SkCanvas-exclusive-DL-ops branch from 6a8e416 to 7076b8b Compare February 25, 2023 00:21
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@flar flar added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 25, 2023
@auto-submit auto-submit bot merged commit de9093d into flutter:main Feb 25, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 25, 2023
dnfield pushed a commit to dnfield/engine that referenced this pull request Feb 27, 2023
…er#39863)

delete DL ops no longer needed after removing SkCanvasRecorder
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 e: impeller

Projects

Status: ✅ Done
Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants