diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-23 15:08:59 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-23 15:09:20 +0100 |
commit | 061d58bc0fa016cfeed744fd3e4663460635d69b (patch) | |
tree | ad9b8b032c803e1c9054c23fa1b7a0f1976bf98f /Source/WebKit2/UIProcess/API/efl | |
parent | 470286ecfe79d59df14944e5b5d34630fc739391 (diff) | |
download | qtwebkit-061d58bc0fa016cfeed744fd3e4663460635d69b.tar.gz |
Imported WebKit commit 8eb048315f36fa33731f28694630fe4a3c2cbc99 (http://svn.webkit.org/repository/webkit/trunk@135602)
New snapshot that fixes various bugs
Change-Id: Icb6ce541a26a9f500d087821ce4b83a8d8a5474a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/API/efl')
-rw-r--r-- | Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp | 3 | ||||
-rw-r--r-- | Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h | 1 | ||||
-rw-r--r-- | Source/WebKit2/UIProcess/API/efl/ewk_view.cpp | 4 |
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 |