[chromium] Defer commits between page unload and first invalidation in threaded compo...
authorJames Robinson <jamesr@chromium.org>
Mon, 29 Oct 2012 23:49:00 +0000 (23:49 +0000)
committerJames Robinson <jamesr@chromium.org>
Mon, 29 Oct 2012 23:49:00 +0000 (23:49 +0000)
commit5f6b8289d9ae2c5f2049fd6011cadb17b52bcff4
tree0755448fc99a1846eef552ce22826701413e31f3
parentb0f07b57195c8739eba546be9881723a5d934b50
[chromium] Defer commits between page unload and first invalidation in threaded compositing mode
https://bugs.webkit.org/show_bug.cgi?id=100702

Reviewed by Adrienne Walker.

In threaded compositing mode, it's not terribly useful to commit after unloading a page and before receiving
the first invalidation for the new page since the document is likely not loaded enough to paint usefully.
This defers commits from the time compositing is deactivated (which in force compositing mode only happens
at FrameView destruction) until we get the first invalidation from WebCore.

* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::invalidateContentsAndRootView):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::invalidateRect):
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
(WebKit):
* src/WebViewImpl.h:
(WebViewImpl):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/ChromeClientImpl.cpp
Source/WebKit/chromium/src/WebViewImpl.cpp
Source/WebKit/chromium/src/WebViewImpl.h