Bug 84373

Summary: [chromium] Some filters require inflating damage rect in CCDamageTracker
Product: WebKit Reporter: Dana Jansens <danakj>
Component: New BugsAssignee: Dana Jansens <danakj>
Status: RESOLVED FIXED    
Severity: Normal CC: backer, cc-bugs, enne, jamesr, piman, shawnsingh, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Dana Jansens
Reported 2012-04-19 12:58:13 PDT
[chromium] Blur should move damage around in the blurred layer
Attachments
Patch (9.87 KB, patch)
2012-04-19 13:03 PDT, Dana Jansens
no flags
Patch (10.81 KB, patch)
2012-04-20 08:51 PDT, Dana Jansens
no flags
Dana Jansens
Comment 1 2012-04-19 13:03:11 PDT
Shawn Singh
Comment 2 2012-04-19 19:41:39 PDT
Comment on attachment 137956 [details] Patch Just a few trivial nits on my part. Otherwise it LGTM. View in context: https://bugs.webkit.org/attachment.cgi?id=137956&action=review > Source/WebCore/ChangeLog:3 > + [chromium] Blur should move damage around in the blurred layer Could we re-title this to "Filters may need to inflate damage rect in CCDamageTracker" > Source/WebCore/ChangeLog:9 > + and their damage should be moved along with them. perhaps s/moved along with them/expanded to include total blurred region ?? > Source/WebCore/platform/graphics/chromium/cc/CCDamageTracker.cpp:147 > + // Filters can spread damage around in the surface. > + if (filters.hasFilterThatMovesPixels()) { > + int top, right, bottom, left; > + filters.getOutsets(top, right, bottom, left); > + m_currentDamageRect.move(-left, -top); > + m_currentDamageRect.expand(left + right, top + bottom); > + } Can we make this into a helper function like "expandDamageRectIfNeeded()" > Source/WebKit/chromium/tests/CCDamageTrackerTest.cpp:336 > + // Damage position on the surface should be: position of updateRect (10, 11) relative to the child (100, 100), but blurred out by the blur outsets. s/blurred out/expanded
Dana Jansens
Comment 3 2012-04-19 22:13:25 PDT
Comment on attachment 137956 [details] Patch Thanks for looking at this Shawn. Will update the patch in the morning.
Dana Jansens
Comment 4 2012-04-20 08:51:25 PDT
WebKit Review Bot
Comment 5 2012-04-20 10:57:38 PDT
Comment on attachment 138099 [details] Patch Clearing flags on attachment: 138099 Committed r114763: <http://trac.webkit.org/changeset/114763>
WebKit Review Bot
Comment 6 2012-04-20 10:57:51 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.