WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
86884
[chromium] Expand damage from the background-blurred layer to ensure readback is only including pixels below that layer
https://bugs.webkit.org/show_bug.cgi?id=86884
Summary
[chromium] Expand damage from the background-blurred layer to ensure readback...
Dana Jansens
Reported
2012-05-18 12:39:04 PDT
[chromium] Expand damage from the background-blurred layer to ensure readback is only including pixels below that layer
Attachments
Patch
(9.87 KB, patch)
2012-05-18 12:44 PDT
,
Dana Jansens
no flags
Details
Formatted Diff
Diff
Patch for landing
(9.89 KB, patch)
2012-05-22 08:43 PDT
,
Dana Jansens
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dana Jansens
Comment 1
2012-05-18 12:44:05 PDT
Created
attachment 142765
[details]
Patch
Adrienne Walker
Comment 2
2012-05-21 12:39:54 PDT
Comment on
attachment 142765
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=142765&action=review
> Source/WebCore/ChangeLog:15 > + Consider layers in back-to-front order A, B, and C, where layer B has > + a blur background filter applied, and C exactly covers A. When B does > + its readback to perform its blur, it should include the pixels of A > + not C. With partial swap, if B is damaged, that damaged area will read > + pixels from outside of the damage rect. Those pixels should use the > + contents of A, not C, so we must expand the damage to ensure we redraw > + all pixels that are going to be included in the blur for the current > + frame.
How does C enter into this? I understand that if B is damaged we need to expand the damage to include B and layers below B, but that doesn't seem to be affected by C.
Dana Jansens
Comment 3
2012-05-21 15:42:14 PDT
C draws over top of A. If you damage B and do a readback on the next frame (with partial swap), you will be reading the pixels of C instead of A.
Dana Jansens
Comment 4
2012-05-21 16:08:43 PDT
http://i.imgur.com/2zlPR.png
Hope this helps. The blue damage should be expanded so that the pixels read back to draw it are blurring the contents of A not C.
Adrienne Walker
Comment 5
2012-05-21 16:48:30 PDT
(In reply to
comment #3
)
> C draws over top of A. If you damage B and do a readback on the next frame (with partial swap), you will be reading the pixels of C instead of A.
Sure, but this patch is about damage rects, not about readback order. Wouldn't you need the exact same damage rect regardless of whether C was involved? I'm just trying to understand why you constructed the example like that, because I feel like I'm missing something.
Adrienne Walker
Comment 6
2012-05-21 17:17:19 PDT
Comment on
attachment 142765
[details]
Patch Ok, I see. The damage rects are still wrong even if C isn't there, but having C in the example makes the readback pixels wrong too. Sorry for my confusion. :)
WebKit Review Bot
Comment 7
2012-05-21 18:13:24 PDT
Comment on
attachment 142765
[details]
Patch Rejecting
attachment 142765
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: mit-queue/Source/WebKit/chromium/third_party/skia/src --revision 3995 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 45>At revision 3995. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output:
http://queues.webkit.org/results/12749138
Dana Jansens
Comment 8
2012-05-22 08:43:46 PDT
Created
attachment 143310
[details]
Patch for landing
WebKit Review Bot
Comment 9
2012-05-22 09:09:28 PDT
Comment on
attachment 143310
[details]
Patch for landing Clearing flags on attachment: 143310 Committed
r117981
: <
http://trac.webkit.org/changeset/117981
>
WebKit Review Bot
Comment 10
2012-05-22 09:09:34 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug