12012-09-26 Arvid Nilsson <anilsson@rim.com>
2
3 [BlackBerry] Destroy thread-specific data for Platform::Graphics::Buffer on the right thread
4 https://bugs.webkit.org/show_bug.cgi?id=97674
5
6 Reviewed by NOBODY (OOPS!).
7
8 A new API was added to BlackBerry::Platform::Graphics for destroying
9 thread-specific data generated on the compositing thread when we blit
10 buffers. The buffers are otherwise created and destroyed on the WebKit
11 thread, which doesn't give platform any opportunity to destroy the
12 thread-specific data.
13
14 This patch adds calls to the new API to avoid leaking resources.
15
16 Reviewed internally by Jakob Petsovits and Filip Spacek.
17
18 PR 214644
19
20 * WebKitSupport/SurfacePool.cpp:
21 (BlackBerry::WebKit::SurfacePool::initialize):
22 (BlackBerry::WebKit::SurfacePool::createPlatformGraphicsContext):
23 (BlackBerry::WebKit::SurfacePool::lockTileRenderingSurface):
24 (BlackBerry::WebKit::SurfacePool::releaseTileRenderingSurface):
25 (BlackBerry::WebKit::SurfacePool::initializeVisibleTileBuffer):
26 (BlackBerry::WebKit::SurfacePool::createBuffers):
27 (BlackBerry::WebKit::SurfacePool::releaseBuffers):
28