WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64119
[chromium] Fix crash when compositing gets disabled mid-paint
https://bugs.webkit.org/show_bug.cgi?id=64119
Summary
[chromium] Fix crash when compositing gets disabled mid-paint
Adrienne Walker
Reported
2011-07-07 12:32:08 PDT
[chromium] Fix crash when compositing gets disabled mid-paint
Attachments
Patch
(2.17 KB, patch)
2011-07-07 12:34 PDT
,
Adrienne Walker
no flags
Details
Formatted Diff
Diff
Patch
(1.56 KB, patch)
2011-07-07 13:34 PDT
,
Adrienne Walker
jamesr
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adrienne Walker
Comment 1
2011-07-07 12:34:42 PDT
Created
attachment 100018
[details]
Patch
Adrienne Walker
Comment 2
2011-07-07 12:40:50 PDT
http://code.google.com/p/chromium/issues/detail?id=88682
James Robinson
Comment 3
2011-07-07 13:07:12 PDT
Comment on
attachment 100018
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=100018&action=review
> Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:369 > + if (!m_rootLayer) > + return;
do we think painting a sublayer is turning the compositor off? we already have a null-check + early-out after updateRootLayerContents()
Adrienne Walker
Comment 4
2011-07-07 13:10:27 PDT
(In reply to
comment #3
)
> (From update of
attachment 100018
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=100018&action=review
> > > Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:369 > > + if (!m_rootLayer) > > + return; > > do we think painting a sublayer is turning the compositor off? we already have a null-check + early-out after updateRootLayerContents()
In this case, no. However, there's no reason it couldn't. I've fixed this bug at least three times now. Can you forgive some extra checks for sanity's sake? :)
James Robinson
Comment 5
2011-07-07 13:23:29 PDT
Comment on
attachment 100018
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=100018&action=review
>>> Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:369 >>> + return; >> >> do we think painting a sublayer is turning the compositor off? we already have a null-check + early-out after updateRootLayerContents() > > In this case, no. However, there's no reason it couldn't. > > I've fixed this bug at least three times now. Can you forgive some extra checks for sanity's sake? :)
Yeah I know, but it's also really valuable to know which checks are working and which aren't. We have some pretty defensive code in place to try to update compositing reqs for all layers before painting, so if that's failing then we should probably not bother since it's not free. See
http://trac.webkit.org/browser/trunk/Source/WebKit/chromium/src/WebViewImpl.cpp#L1146
Would you mind landing just the second check (in drawLayers()) without this, letting it go to canary, and seeing what that does?
Adrienne Walker
Comment 6
2011-07-07 13:29:18 PDT
(In reply to
comment #5
)
> (From update of
attachment 100018
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=100018&action=review
> Would you mind landing just the second check (in drawLayers()) without this, letting it go to canary, and seeing what that does?
Sure, will do.
Adrienne Walker
Comment 7
2011-07-07 13:34:19 PDT
Created
attachment 100026
[details]
Patch
James Robinson
Comment 8
2011-07-07 13:35:19 PDT
Comment on
attachment 100026
[details]
Patch Lesse what happens
Adrienne Walker
Comment 9
2011-07-07 13:37:56 PDT
Committed
r90587
: <
http://trac.webkit.org/changeset/90587
>
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