[webkit-changes] [WebKit/WebKit] 5ab3ad: [UnfiedPDF] Flicker of low-resolution content when...
Simon Fraser
noreply at github.com
Wed May 8 18:49:14 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5ab3ad6fd099efc7c3e3a9fb10394603c6f6b928
https://github.com/WebKit/WebKit/commit/5ab3ad6fd099efc7c3e3a9fb10394603c6f6b928
Author: Simon Fraser <simon.fraser at apple.com>
Date: 2024-05-08 (Wed, 08 May 2024)
Changed paths:
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/AsyncPDFRenderer.h
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/AsyncPDFRenderer.mm
Log Message:
-----------
[UnfiedPDF] Flicker of low-resolution content when toggling a checkbox
https://bugs.webkit.org/show_bug.cgi?id=273912
rdar://127773717
Reviewed by Abrar Rahman Protyasha.
The fine-grained tile invalidation added in 277837 at main adds a check on the "contentVersion",
which increments whenever an annotation, like a checkbox, changes state. This caused us to
throw away rendered tiles in `AsyncPDFRenderer::willRepaintTile()`, which resulted in a flash
of the blurry page background until we got the new tile.
It's OK to paint tiles with a stale contentVersion; we'll paint the new state once we've got
a rendered tile with the new content.
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/AsyncPDFRenderer.h:
(WebKit::AsyncPDFRenderer::TileRenderInfo::equivalentForPaintingIgnoringContentVersion const):
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/AsyncPDFRenderer.mm:
(WebKit::AsyncPDFRenderer::renderInfoIsValidForTile const):
(WebKit::AsyncPDFRenderer::willRepaintTile):
(WebKit::AsyncPDFRenderer::didCompleteTileRender):
Canonical link: https://commits.webkit.org/278544@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list