-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGRESSION(267824@main): Changing HTMLCanvasElement width, height causes intermediate buffer allocations #23861
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
kkinnunen-apple:canvas-no-alloc-on-reset-1
Feb 6, 2024
Merged
REGRESSION(267824@main): Changing HTMLCanvasElement width, height causes intermediate buffer allocations #23861
webkit-commit-queue
merged 1 commit into
WebKit:main
from
kkinnunen-apple:canvas-no-alloc-on-reset-1
Feb 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
EWS run on previous version of this PR (hash 8e2a87e) |
8e2a87e
to
f531600
Compare
EWS run on previous version of this PR (hash f531600) |
f531600
to
c4bdacb
Compare
smfr
approved these changes
Feb 5, 2024
β¦ses intermediate buffer allocations https://bugs.webkit.org/show_bug.cgi?id=268745 rdar://122309325 Reviewed by Simon Fraser. Resizing is intended to leave the buffer unallocated, so that sequential width, height assignments will not allocate multiple times. This intention was nullified by CanvasRenderingContext2DBase::reset(). Calling resetTransform redundantly would recreate the buffer immediately from width, height attribute setters. The transform reset is redundant, the context transform is reset when the context state saver is restored and re-saved. Clearing the canvas doesn't need to use public CanvasRenderingContext2DBase::clearCanvas() that will mutate the context state. The state is in known state with initial transform, and thus it doesn't need transform mutation. * Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp: (WebCore::CanvasRenderingContext2DBase::reset): Canonical link: https://commits.webkit.org/274135@main
c4bdacb
to
26aaa25
Compare
Committed 274135@main (26aaa25): https://commits.webkit.org/274135@main Reviewed commits have been landed. Closing PR #23861 and removing active labels. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
26aaa25
c4bdacb
π§ͺ mac-wk2