summaryrefslogtreecommitdiff
path: root/Source/WebKit/blackberry/Api/BackingStore.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-24 16:36:50 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-24 16:36:50 +0100
commitad0d549d4cc13433f77c1ac8f0ab379c83d93f28 (patch)
treeb34b0daceb7c8e7fdde4b4ec43650ab7caadb0a9 /Source/WebKit/blackberry/Api/BackingStore.cpp
parent03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (diff)
downloadqtwebkit-ad0d549d4cc13433f77c1ac8f0ab379c83d93f28.tar.gz
Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790)
Diffstat (limited to 'Source/WebKit/blackberry/Api/BackingStore.cpp')
-rw-r--r--Source/WebKit/blackberry/Api/BackingStore.cpp30
1 files changed, 1 insertions, 29 deletions
diff --git a/Source/WebKit/blackberry/Api/BackingStore.cpp b/Source/WebKit/blackberry/Api/BackingStore.cpp
index 036c9bbc0..2971d2698 100644
--- a/Source/WebKit/blackberry/Api/BackingStore.cpp
+++ b/Source/WebKit/blackberry/Api/BackingStore.cpp
@@ -39,6 +39,7 @@
#include <BlackBerryPlatformIntRectRegion.h>
#include <BlackBerryPlatformMessage.h>
#include <BlackBerryPlatformMessageClient.h>
+#include <BlackBerryPlatformWindow.h>
#include <wtf/CurrentTime.h>
#include <wtf/MathExtras.h>
@@ -54,11 +55,6 @@
#define DEBUG_TILEMATRIX 0
#define DEBUG_COMPOSITING_DIRTY_REGION 0
-#if USE(OPENVG)
-#include "EGLDisplayOpenVG.h"
-#include "EGLUtils.h"
-#endif
-
#include <BlackBerryPlatformScreen.h>
using namespace WebCore;
@@ -202,9 +198,6 @@ BackingStorePrivate::BackingStorePrivate()
, m_renderQueue(adoptPtr(new RenderQueue(this)))
, m_defersBlit(true)
, m_hasBlitJobs(false)
-#if USE(OPENVG)
- , m_eglDisplay(EGL_NO_DISPLAY)
-#endif
, m_currentWindowBackBuffer(0)
, m_preferredTileMatrixDimension(Vertical)
, m_blitGeneration(-1)
@@ -298,10 +291,6 @@ void BackingStorePrivate::resumeScreenAndBackingStoreUpdates(BackingStore::Resum
void BackingStorePrivate::repaint(const Platform::IntRect& windowRect,
bool contentChanged, bool immediate)
{
-#if USE(OPENVG)
- ASSERT(m_eglDisplay != EGL_NO_DISPLAY);
-#endif
-
if (m_suspendBackingStoreUpdates)
return;
@@ -2215,9 +2204,6 @@ void BackingStorePrivate::renderContents(BlackBerry::Platform::Graphics::Buffer*
}
// Grab the requested region from the drawing surface into the tile image.
-#if USE(OPENVG)
- surface->makeCurrent();
-#endif
delete bufferPlatformGraphicsContext;
@@ -2525,23 +2511,9 @@ void BackingStore::createSurface()
initialized = true;
}
-#if USE(OPENVG)
- d->m_eglDisplay = BlackBerry::Platform::Graphics::eglDisplay();
-
- // Make sure we are using OpenVG.
- eglBindAPI(EGL_OPENVG_API);
- ASSERT_EGL_NO_ERROR();
-
- EGLDisplayOpenVG::setCurrentDisplay(d->m_eglDisplay);
-#endif
-
// Triggers creation of surfaces in backingstore.
d->createSurfaces();
-#if USE(OPENVG)
- EGLDisplayOpenVG::current()->sharedPlatformSurface()->makeCurrent();
-#endif
-
// Focusing the WebPage triggers a repaint, so while we want it to be
// focused initially this has to happen after creation of the surface.
d->m_webPage->setFocused(true);