Bug 46239 - [chromium] Check if the acceleratedCompositingEnabled setting is active in WebViewImpl::graphicsContext3D()
Summary: [chromium] Check if the acceleratedCompositingEnabled setting is active in We...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: James Robinson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-21 18:50 PDT by James Robinson
Modified: 2010-09-21 22:53 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.50 KB, patch)
2010-09-21 18:54 PDT, James Robinson
no flags Details | Formatted Diff | Diff
Patch (3.58 KB, patch)
2010-09-21 20:11 PDT, James Robinson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Robinson 2010-09-21 18:50:23 PDT
[chromium] Check if the acceleratedCompositingEnabled setting is active in WebViewImpl::graphicsContext3D()
Comment 1 James Robinson 2010-09-21 18:54:29 PDT
Created attachment 68325 [details]
Patch
Comment 2 Kenneth Russell 2010-09-21 19:00:03 PDT
Comment on attachment 68325 [details]
Patch

If I'm reading the diff correctly, you're missing a return statement if accelerated compositing isn't enabled for the page. The patch looks good otherwise, but r- for this serious issue.
Comment 3 Vangelis Kokkevis 2010-09-21 19:21:49 PDT
Comment on attachment 68325 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=68325&action=review

> WebKit/chromium/src/WebViewImpl.cpp:2437
> +    if (m_page->settings()->acceleratedCompositingEnabled()) {

For good measure you could in addition also call allowsAcceleratedCompositing() which will return false if the compositor failed to initialize on this webview.  This will prevent a page with multiple canvas' to continuously try to create a GL context and fail.
Comment 4 James Robinson 2010-09-21 20:03:37 PDT
(In reply to comment #2)
> (From update of attachment 68325 [details])
> If I'm reading the diff correctly, you're missing a return statement if accelerated compositing isn't enabled for the page. The patch looks good otherwise, but r- for this serious issue.

Oh snap, good catch.  I really need to crank up the warning level for the chromium linux build.  Will fix.
Comment 5 James Robinson 2010-09-21 20:11:19 PDT
Created attachment 68332 [details]
Patch
Comment 6 Kenneth Russell 2010-09-21 21:47:24 PDT
Comment on attachment 68332 [details]
Patch

Looks good.
Comment 7 James Robinson 2010-09-21 22:53:26 PDT
Comment on attachment 68332 [details]
Patch

Clearing flags on attachment: 68332

Committed r68015: <http://trac.webkit.org/changeset/68015>
Comment 8 James Robinson 2010-09-21 22:53:30 PDT
All reviewed patches have been landed.  Closing bug.