diff options
author | Pranav Kant <pranavk@libreoffice.org> | 2015-11-01 13:22:25 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-03 10:18:29 +0000 |
commit | de0c7e1783edc6a36037f2657f823dc9812c0804 (patch) | |
tree | 1a214db6aab716bd8b0ce7ab216a3cc03fa3b837 /libreofficekit/source/gtk/tilebuffer.cxx | |
parent | 48cc54ec2ad5ca7e17ac1f705895d373917a37cb (diff) |
lokdocview: Separate "painting" and "saving" of tiles
Lets separate the task of painting the tile, and saving the tile
in tile buffer using GAsyncReadyCallback. This will provide us
with better control over tiles -- cancelling the painting operation,
and filtering tiles that should not be saved in the tile buffer.
Change-Id: I6aae928d8cc0c906034570ed0e9a054763d493a3
Reviewed-on: https://gerrit.libreoffice.org/19725
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'libreofficekit/source/gtk/tilebuffer.cxx')
-rw-r--r-- | libreofficekit/source/gtk/tilebuffer.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libreofficekit/source/gtk/tilebuffer.cxx b/libreofficekit/source/gtk/tilebuffer.cxx index 1560641e3a36..a1390827a4ca 100644 --- a/libreofficekit/source/gtk/tilebuffer.cxx +++ b/libreofficekit/source/gtk/tilebuffer.cxx @@ -87,11 +87,6 @@ Tile& TileBuffer::getTile(int x, int y, float fZoom, GTask* task, if (m_mTiles.find(index) != m_mTiles.end() && !m_mTiles[index].valid) { - LOEvent* pLOEvent = new LOEvent(LOK_PAINT_TILE); - pLOEvent->m_nPaintTileX = x; - pLOEvent->m_nPaintTileY = y; - pLOEvent->m_fPaintTileZoom = fZoom; - g_task_set_task_data(task, pLOEvent, LOEvent::destroy); g_thread_pool_push(lokThreadPool, g_object_ref(task), &error); if (error != NULL) { @@ -102,11 +97,6 @@ Tile& TileBuffer::getTile(int x, int y, float fZoom, GTask* task, } else if(m_mTiles.find(index) == m_mTiles.end()) { - LOEvent* pLOEvent = new LOEvent(LOK_PAINT_TILE); - pLOEvent->m_nPaintTileX = x; - pLOEvent->m_nPaintTileY = y; - pLOEvent->m_fPaintTileZoom = fZoom; - g_task_set_task_data(task, pLOEvent, LOEvent::destroy); g_thread_pool_push(lokThreadPool, g_object_ref(task), &error); if (error != NULL) { |