diff options
Diffstat (limited to 'Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp')
-rw-r--r-- | Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp b/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp index 0005ce8ee..213743003 100644 --- a/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp +++ b/Source/WebKit2/WebProcess/WebPage/qt/LayerTreeHostQt.cpp @@ -26,8 +26,6 @@ #include "config.h" -#if USE(ACCELERATED_COMPOSITING) - #include "LayerTreeHostQt.h" #include "DrawingAreaImpl.h" @@ -94,7 +92,6 @@ LayerTreeHostQt::LayerTreeHostQt(WebPage* webPage) m_nonCompositedContentLayer->setName("LayerTreeHostQt non-composited content"); #endif m_nonCompositedContentLayer->setDrawsContent(true); - m_nonCompositedContentLayer->setContentsOpaque(m_webPage->drawsBackground() && !m_webPage->drawsTransparentBackground()); m_nonCompositedContentLayer->setSize(m_webPage->size()); m_rootLayer->addChild(m_nonCompositedContentLayer.get()); @@ -142,6 +139,7 @@ void LayerTreeHostQt::setShouldNotifyAfterNextScheduledLayerFlush(bool notifyAft void LayerTreeHostQt::setRootCompositingLayer(WebCore::GraphicsLayer* graphicsLayer) { m_nonCompositedContentLayer->removeAllChildren(); + m_nonCompositedContentLayer->setContentsOpaque(m_webPage->drawsBackground() && !m_webPage->drawsTransparentBackground()); // Add the accelerated layer tree hierarchy. if (graphicsLayer) @@ -397,7 +395,6 @@ bool LayerTreeHost::supportsAcceleratedCompositing() return true; } -#if USE(TILED_BACKING_STORE) void LayerTreeHostQt::createTile(WebLayerID layerID, int tileID, const UpdateInfo& updateInfo) { m_webPage->send(Messages::LayerTreeHostProxy::CreateTileForLayer(layerID, tileID, updateInfo)); @@ -459,20 +456,5 @@ void LayerTreeHostQt::purgeBackingStores() ASSERT(!m_directlyCompositedImageRefCounts.size()); } -#endif - -} // namespace WebKit -#else -#include "LayerTreeHost.h" - -using namespace WebCore; - -namespace WebKit { - -bool LayerTreeHost::supportsAcceleratedCompositing() -{ - return false; -} } // namespace WebKit -#endif |