summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-06 10:47:03 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-06 12:03:34 +0200
commit23ac7f2fb57c338fa608cbc28ac39d140026e3c3 (patch)
tree7e8fbaf27a6aa8dff073f3b028afab124be9f083
parent78697c7956abdb610c256ba9d445a44c6d113d99 (diff)
lokdocview: log paintTile() arguments
Change-Id: I8015c8030c1c7f53ae1de053fe268a33464834ad
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx1
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx14
-rw-r--r--libreofficekit/source/gtk/tilebuffer.cxx1
3 files changed, 7 insertions, 9 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index 408dd913d064..b1a0934fc400 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -372,7 +372,6 @@ static void signalCommand(LOKDocView* pLOKDocView, char* pPayload, gpointer /*pD
{
std::string aKey = aPayload.substr(0, nPosition);
std::string aValue = aPayload.substr(nPosition + 1);
- g_info("signalCommand: '%s' is '%s'", aKey.c_str(), aValue.c_str());
if (rWindow.m_aCommandNameToolItems.find(aKey) != rWindow.m_aCommandNameToolItems.end())
{
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 4ee1e33a33f9..1f77c11c1772 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1395,7 +1395,13 @@ paintTileInThread (gpointer data)
aTileRectangle.y = pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) * pLOEvent->m_nPaintTileX;
priv->m_pDocument->pClass->setView(priv->m_pDocument, priv->m_nViewId);
- g_test_timer_start();
+ std::stringstream ss;
+ ss << "lok::Document::paintTile(" << static_cast<void*>(pBuffer) << ", "
+ << nTileSizePixels << ", " << nTileSizePixels << ", "
+ << aTileRectangle.x << ", " << aTileRectangle.y << ", "
+ << pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) << ", "
+ << pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) << ")";
+ g_info(ss.str().c_str());
priv->m_pDocument->pClass->paintTile(priv->m_pDocument,
pBuffer,
nTileSizePixels, nTileSizePixels,
@@ -1403,12 +1409,6 @@ paintTileInThread (gpointer data)
pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom),
pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom));
- double elapsedTime = g_test_timer_elapsed();
- g_info ("Rendered (%d, %d) in %f seconds",
- pLOEvent->m_nPaintTileX,
- pLOEvent->m_nPaintTileY,
- elapsedTime);
-
//create a mapping for it
buffer.m_mTiles[index].setPixbuf(pPixBuf);
buffer.m_mTiles[index].valid = true;
diff --git a/libreofficekit/source/gtk/tilebuffer.cxx b/libreofficekit/source/gtk/tilebuffer.cxx
index 091d33ae7978..e0ca2d2e0354 100644
--- a/libreofficekit/source/gtk/tilebuffer.cxx
+++ b/libreofficekit/source/gtk/tilebuffer.cxx
@@ -58,7 +58,6 @@ void TileBuffer::setInvalid(int x, int y, float fZoom, GTask* task,
GThreadPool* lokThreadPool)
{
int index = x * m_nWidth + y;
- g_info("Setting tile invalid (%d, %d)", x, y);
if (m_mTiles.find(index) != m_mTiles.end())
{
m_mTiles[index].valid = false;