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
Use device pixel scaled backing store for <canvas> with image-rendering: pixelated. #5950
Conversation
EWS run on previous version of this PR (hash 50db1d6) |
|
||
// image rendering mode can determine whether we use device pixel ratio for the backing store. | ||
if (oldStyle && oldStyle->imageRendering() != newStyle.imageRendering()) | ||
layer.setNeedsCompositingGeometryUpdate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contentsInfo.isUnscaledBitmapOnly()
is consulted in RenderLayerBacking::updateConfiguration()
so this should be setNeedsCompositingConfigurationUpdate()
.
50db1d6
to
307f4ae
Compare
EWS run on current version of this PR (hash 307f4ae) |
β¦ng: pixelated. https://bugs.webkit.org/show_bug.cgi?id=247251 <rdar://99895407> Reviewed by Simon Fraser. We need to do scaling during painting to apply the image-rendering effect. An alternative fix would be to set the image-rendering value on the GraphicsLayer, but its complicated to make that change dependent on having computed isUnscaledBitmapOnly. * LayoutTests/platform/ios-wk2/TestExpectations: * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::isUnscaledBitmapOnly const): * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::layerStyleChanged): Canonical link: https://commits.webkit.org/256299@main
307f4ae
to
8ed3d52
Compare
Committed 256299@main (8ed3d52): https://commits.webkit.org/256299@main Reviewed commits have been landed. Closing PR #5950 and removing active labels. |
8ed3d52
307f4ae