Skip to content

Remove use of SkDeserialProcs::fTypefaceProc#181047

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
bungeman:deserial
Jan 17, 2026
Merged

Remove use of SkDeserialProcs::fTypefaceProc#181047
auto-submit[bot] merged 1 commit into
flutter:masterfrom
bungeman:deserial

Conversation

@bungeman

Copy link
Copy Markdown
Contributor

SkDeserialProcs::fTypefaceProc took a void* and size_t, but the expectation was that the void* was a SkStream** and the size_t was always sizeof(SkStream*). Users should now use the less confusing replacement SkDeserialProcs::fTypefaceStreamProc which takes an SkStream&.

@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. platform-fuchsia Fuchsia code specifically labels Jan 15, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request correctly replaces the deprecated SkDeserialProcs::fTypefaceProc with the modern SkDeserialProcs::fTypefaceStreamProc. The changes are consistent and update the function signature for DeserializeTypefaceWithoutData and its usage accordingly. I have a couple of minor suggestions to improve code consistency and adherence to the style guide regarding parameter naming in the function declaration and definition.

Comment thread engine/src/flutter/shell/common/serialization_callbacks.h
Comment thread engine/src/flutter/shell/common/serialization_callbacks.cc
SkDeserialProcs::fTypefaceProc took a void* and size_t, but the
expectation was that the void* was a SkStream** and the size_t was
always sizeof(SkStream*). Users should now use the less confusing
replacement SkDeserialProcs::fTypefaceStreamProc which takes an
SkStream&.

@flar flar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 16, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue Jan 17, 2026
Merged via the queue into flutter:master with commit 38a22ff Jan 17, 2026
181 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jan 17, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 17, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 17, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 17, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 18, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 18, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 19, 2026
calltekk pushed a commit to calltekk/flutter that referenced this pull request Jan 19, 2026
SkDeserialProcs::fTypefaceProc took a void* and size_t, but the
expectation was that the void* was a SkStream** and the size_t was
always sizeof(SkStream*). Users should now use the less confusing
replacement SkDeserialProcs::fTypefaceStreamProc which takes an
SkStream&.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 19, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 19, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 21, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 21, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 21, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 22, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 22, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 22, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 23, 2026
flutter-zl pushed a commit to flutter-zl/flutter that referenced this pull request Feb 10, 2026
SkDeserialProcs::fTypefaceProc took a void* and size_t, but the
expectation was that the void* was a SkStream** and the size_t was
always sizeof(SkStream*). Users should now use the less confusing
replacement SkDeserialProcs::fTypefaceStreamProc which takes an
SkStream&.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine flutter/engine related. See also e: labels. platform-fuchsia Fuchsia code specifically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants