summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp')
-rw-r--r--Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp b/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
index 098a4c716..af2ae89bf 100644
--- a/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
+++ b/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
@@ -36,7 +36,7 @@
#include <GL/gl.h>
#include <WebCore/Frame.h>
#include <WebCore/FrameView.h>
-#include <WebCore/GLContextGLX.h>
+#include <WebCore/GLContext.h>
#include <WebCore/Page.h>
#include <WebCore/Settings.h>
@@ -84,12 +84,12 @@ GLContext* LayerTreeHostGtk::glContext()
void LayerTreeHostGtk::initialize()
{
- m_rootLayer = GraphicsLayer::create(this);
+ m_rootLayer = GraphicsLayer::create(graphicsLayerFactory(), this);
m_rootLayer->setDrawsContent(false);
m_rootLayer->setSize(m_webPage->size());
// The non-composited contents are a child of the root layer.
- m_nonCompositedContentLayer = GraphicsLayer::create(this);
+ m_nonCompositedContentLayer = GraphicsLayer::create(graphicsLayerFactory(), this);
m_nonCompositedContentLayer->setDrawsContent(true);
m_nonCompositedContentLayer->setContentsOpaque(m_webPage->drawsBackground() && !m_webPage->drawsTransparentBackground());
m_nonCompositedContentLayer->setSize(m_webPage->size());
@@ -241,7 +241,7 @@ void LayerTreeHostGtk::notifyAnimationStarted(const WebCore::GraphicsLayer*, dou
{
}
-void LayerTreeHostGtk::notifySyncRequired(const WebCore::GraphicsLayer*)
+void LayerTreeHostGtk::notifyFlushRequired(const WebCore::GraphicsLayer*)
{
}
@@ -287,12 +287,12 @@ void LayerTreeHostGtk::layerFlushTimerFired()
bool LayerTreeHostGtk::flushPendingLayerChanges()
{
- m_rootLayer->syncCompositingStateForThisLayerOnly();
- m_nonCompositedContentLayer->syncCompositingStateForThisLayerOnly();
+ m_rootLayer->flushCompositingStateForThisLayerOnly();
+ m_nonCompositedContentLayer->flushCompositingStateForThisLayerOnly();
if (m_pageOverlayLayer)
- m_pageOverlayLayer->syncCompositingStateForThisLayerOnly();
+ m_pageOverlayLayer->flushCompositingStateForThisLayerOnly();
- return m_webPage->corePage()->mainFrame()->view()->syncCompositingStateIncludingSubframes();
+ return m_webPage->corePage()->mainFrame()->view()->flushCompositingStateIncludingSubframes();
}
void LayerTreeHostGtk::compositeLayersToContext(CompositePurpose purpose)
@@ -317,7 +317,6 @@ void LayerTreeHostGtk::compositeLayersToContext(CompositePurpose purpose)
m_textureMapper->endPainting();
context->swapBuffers();
- m_webPage->invalidateWidget();
}
void LayerTreeHostGtk::flushAndRenderLayers()
@@ -351,7 +350,7 @@ void LayerTreeHostGtk::createPageOverlayLayer()
{
ASSERT(!m_pageOverlayLayer);
- m_pageOverlayLayer = GraphicsLayer::create(this);
+ m_pageOverlayLayer = GraphicsLayer::create(graphicsLayerFactory(), this);
#ifndef NDEBUG
m_pageOverlayLayer->setName("LayerTreeHost page overlay content");
#endif