RESOLVED FIXED Bug 49827
[chromium] Renderer is resizing IOSurfaces when accelerated compositing is disabled.
https://bugs.webkit.org/show_bug.cgi?id=49827
Summary [chromium] Renderer is resizing IOSurfaces when accelerated compositing is di...
Jonathan Backer
Reported 2010-11-19 13:57:38 PST
Resizing too often.
Attachments
Patch (1.20 KB, patch)
2010-11-19 13:58 PST, Jonathan Backer
no flags
Patch (1.42 KB, patch)
2010-11-23 05:58 PST, Jonathan Backer
no flags
Patch (1.44 KB, patch)
2010-11-23 06:04 PST, Jonathan Backer
no flags
Jonathan Backer
Comment 1 2010-11-19 13:58:35 PST
Jonathan Backer
Comment 2 2010-11-19 14:00:58 PST
When accelerated compositing is triggered, m_layerRenderer is created. If we fall back to software rendering, m_layerRenderer is still set. At this point, we are resizing unnecessarily.
Jonathan Backer
Comment 3 2010-11-19 14:04:46 PST
Comment on attachment 74423 [details] Patch If it looks OK, can you please commit because I don't have committer status.
Alexey Proskuryakov
Comment 4 2010-11-19 20:59:58 PST
Even though this is platform-specific code, it still needs a regression test, or an explanation of why there is none. Is this a measurable performance improvement?
Simon Fraser (smfr)
Comment 5 2010-11-19 21:39:08 PST
This bug has the worst title ever. What is resizing too often, and why?
Jonathan Backer
Comment 6 2010-11-22 05:55:34 PST
Updated the title to be more descriptive. Accelerated compositing on the Mac OS X version of Chromium (the only port currently using this code path) is to IOSurfaces, which do not need to be resized when accelerated compositing is disabled. As these surfaces are not visible when accelerated compositing is disabled, it does not cause any display artifacts. Fixing this bug will improve performance, but that improvement will probably be slight. This change is intended as a code clean-up in preparation for using this code path on Linux (http://codereview.chromium.org/5105006/) and Windows (http://codereview.chromium.org/4815001/). On the Linux side, this change does cause a noticeable performance improvement (less lag when switching from software rendering to accelerated compositing after doing a bunch of resizes). An improvement was not noticed on the Windows side.
Kenneth Russell
Comment 7 2010-11-22 14:33:46 PST
Comment on attachment 74423 [details] Patch Please update the ChangeLog with the new synopsis.
Jonathan Backer
Comment 8 2010-11-23 05:58:38 PST
WebKit Review Bot
Comment 9 2010-11-23 06:01:15 PST
Attachment 74654 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebKit/chromium/ChangeLog', u'WebKit/chromium/src/WebViewImpl.cpp']" exit_code: 1 WebKit/chromium/ChangeLog:8: Line contains tab character. [whitespace/tab] [5] WebKit/chromium/ChangeLog:9: Line contains tab character. [whitespace/tab] [5] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jonathan Backer
Comment 10 2010-11-23 06:04:55 PST
Kenneth Russell
Comment 11 2010-11-23 10:45:51 PST
Comment on attachment 74655 [details] Patch Looks good to me.
WebKit Commit Bot
Comment 12 2010-11-23 11:35:15 PST
The commit-queue encountered the following flaky tests while processing attachment 74655 [details]: transitions/transition-timing-function.html fast/profiler/throw-exception-from-eval.html Please file bugs against the tests. These tests were authored by kmccullough@apple.com, oliver@apple.com, pol@apple.com, and timothy@apple.com. The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 13 2010-11-23 13:06:09 PST
The commit-queue encountered the following flaky tests while processing attachment 74655 [details]: http/tests/security/xssAuditor/full-block-link-onclick.html Please file bugs against the tests. These tests were authored by dbates@webkit.org. The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 14 2010-11-23 13:07:22 PST
Comment on attachment 74655 [details] Patch Clearing flags on attachment: 74655 Committed r72623: <http://trac.webkit.org/changeset/72623>
WebKit Commit Bot
Comment 15 2010-11-23 13:07:28 PST
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.