summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/API/efl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/API/efl')
-rw-r--r--Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp3
-rw-r--r--Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h1
-rw-r--r--Source/WebKit2/UIProcess/API/efl/ewk_view.cpp4
3 files changed, 1 insertions, 7 deletions
diff --git a/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp b/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp
index 2e4462734..e0c59054d 100644
--- a/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp
+++ b/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp
@@ -617,7 +617,6 @@ bool EwkViewImpl::createGLSurface(const IntSize& viewSize)
if (!m_evasGL) {
WARN("Failed to create Evas_GL, falling back to software mode.");
m_isHardwareAccelerated = false;
- layerTreeRenderer()->setAccelerationMode(TextureMapper::SoftwareMode);
#if ENABLE(WEBGL)
m_pageProxy->pageGroup()->preferences()->setWebGLEnabled(false);
#endif
@@ -643,7 +642,7 @@ bool EwkViewImpl::createGLSurface(const IntSize& viewSize)
EVAS_GL_MULTISAMPLE_NONE
};
- ASSERT(!m_evasGLSurface);
+ // Replaces if non-null, and frees existing surface after (OwnPtr).
m_evasGLSurface = EvasGLSurface::create(evasGL(), &evasGLConfig, viewSize);
if (!m_evasGLSurface)
return false;
diff --git a/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h b/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h
index 545c5ab68..379b57ebe 100644
--- a/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h
+++ b/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h
@@ -207,7 +207,6 @@ public:
Evas_GL* evasGL() { return m_evasGL.get(); }
Evas_GL_Context* evasGLContext() { return m_evasGLContext ? m_evasGLContext->context() : 0; }
Evas_GL_Surface* evasGLSurface() { return m_evasGLSurface ? m_evasGLSurface->surface() : 0; }
- void clearEvasGLSurface() { m_evasGLSurface.clear(); }
#endif
// FIXME: needs refactoring (split callback invoke)
diff --git a/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp b/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
index 42a8b1f29..d5d50ed0a 100644
--- a/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
+++ b/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
@@ -387,10 +387,6 @@ static void _ewk_view_smart_calculate(Evas_Object* ewkView)
impl->page()->drawingArea()->setSize(IntSize(width, height), IntSize());
#if USE(ACCELERATED_COMPOSITING)
- // Recreate surface if needed.
- if (impl->evasGLSurface())
- impl->clearEvasGLSurface();
-
if (width && height)
impl->createGLSurface(IntSize(width, height));
#endif