[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
vangelis at chromium.org
vangelis at chromium.org
Wed Dec 22 13:53:47 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 07951be65c6b0cd4af3d2a5c052680c8ff9e0ab0
Author: vangelis at chromium.org <vangelis at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Sep 28 23:34:27 2010 +0000
2010-09-28 Vangelis Kokkevis <vangelis at chromium.org>
Reviewed by Kenneth Russell.
[chromium] Keep the accelerated compositor around even after a page is
done using it to avoid startup costs in pages that frequently switch
the compositor on and off.
https://bugs.webkit.org/show_bug.cgi?id=45845
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog
index ecf4502..a28517a 100644
--- a/WebKit/chromium/ChangeLog
+++ b/WebKit/chromium/ChangeLog
@@ -1,3 +1,15 @@
+2010-09-28 Vangelis Kokkevis <vangelis at chromium.org>
+
+ Reviewed by Kenneth Russell.
+
+ [chromium] Keep the accelerated compositor around even after a page is
+ done using it to avoid startup costs in pages that frequently switch
+ the compositor on and off.
+ https://bugs.webkit.org/show_bug.cgi?id=45845
+
+ * src/WebViewImpl.cpp:
+ (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
+
2010-09-28 Nat Duca <nduca at chromium.org>
Reviewed by James Robinson.
diff --git a/WebKit/chromium/src/WebViewImpl.cpp b/WebKit/chromium/src/WebViewImpl.cpp
index f5b3ac0..c3df0c7 100644
--- a/WebKit/chromium/src/WebViewImpl.cpp
+++ b/WebKit/chromium/src/WebViewImpl.cpp
@@ -2296,25 +2296,29 @@ void WebViewImpl::setIsAcceleratedCompositingActive(bool active)
if (m_isAcceleratedCompositingActive == active)
return;
- if (active) {
- OwnPtr<GraphicsContext3D> context = m_temporaryOnscreenGraphicsContext3D.release();
- if (!context) {
- context = GraphicsContext3D::create(GraphicsContext3D::Attributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyToHostWindow);
- if (context)
- context->reshape(std::max(1, m_size.width), std::max(1, m_size.height));
- }
- m_layerRenderer = LayerRendererChromium::create(context.release());
- if (m_layerRenderer) {
- m_isAcceleratedCompositingActive = true;
- } else {
- m_isAcceleratedCompositingActive = false;
- m_compositorCreationFailed = true;
- }
+ if (!active) {
+ m_isAcceleratedCompositingActive = false;
+ return;
+ }
+
+ if (m_layerRenderer) {
+ m_isAcceleratedCompositingActive = true;
+ return;
+ }
+
+ OwnPtr<GraphicsContext3D> context = m_temporaryOnscreenGraphicsContext3D.release();
+ if (!context) {
+ context = GraphicsContext3D::create(GraphicsContext3D::Attributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyToHostWindow);
+ if (context)
+ context->reshape(std::max(1, m_size.width), std::max(1, m_size.height));
+ }
+ m_layerRenderer = LayerRendererChromium::create(context.release());
+ if (m_layerRenderer) {
+ m_isAcceleratedCompositingActive = true;
+ m_compositorCreationFailed = false;
} else {
- if (m_layerRenderer)
- m_layerRenderer->setRootLayer(0);
- m_layerRenderer = 0;
m_isAcceleratedCompositingActive = false;
+ m_compositorCreationFailed = true;
}
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list