-
anilsson@rim.com authored
https://bugs.webkit.org/show_bug.cgi?id=97674 Reviewed by Rob Buis. A new API was added to BlackBerry::Platform::Graphics for destroying thread-specific data generated on the compositing thread when we blit buffers. The buffers are otherwise created and destroyed on the WebKit thread, which doesn't give platform any opportunity to destroy the thread-specific data. This patch adds calls to the new API to avoid leaking resources. Reviewed internally by Jakob Petsovits and Filip Spacek. PR 214644 Source/WebCore: Verified using manual testing. * plugins/blackberry/PluginViewPrivateBlackBerry.cpp: (WebCore::PluginViewPrivate::createBuffers): (WebCore::PluginViewPrivate::destroyBuffers): Source/WebKit/blackberry: * WebKitSupport/SurfacePool.cpp: (BlackBerry::WebKit::SurfacePool::initialize): (BlackBerry::WebKit::SurfacePool::createPlatformGraphicsContext): (BlackBerry::WebKit::SurfacePool::lockTileRenderingSurface): (BlackBerry::WebKit::SurfacePool::releaseTileRenderingSurface): (BlackBerry::WebKit::SurfacePool::initializeVisibleTileBuffer): (BlackBerry::WebKit::SurfacePool::createBuffers): (BlackBerry::WebKit::SurfacePool::releaseBuffers): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3d176a75