Kaydet (Commit) 23ac7f2f authored tarafından Miklos Vajna's avatar Miklos Vajna

lokdocview: log paintTile() arguments

Change-Id: I8015c8030c1c7f53ae1de053fe268a33464834ad
üst 78697c79
...@@ -372,7 +372,6 @@ static void signalCommand(LOKDocView* pLOKDocView, char* pPayload, gpointer /*pD ...@@ -372,7 +372,6 @@ static void signalCommand(LOKDocView* pLOKDocView, char* pPayload, gpointer /*pD
{ {
std::string aKey = aPayload.substr(0, nPosition); std::string aKey = aPayload.substr(0, nPosition);
std::string aValue = aPayload.substr(nPosition + 1); 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()) if (rWindow.m_aCommandNameToolItems.find(aKey) != rWindow.m_aCommandNameToolItems.end())
{ {
......
...@@ -1395,7 +1395,13 @@ paintTileInThread (gpointer data) ...@@ -1395,7 +1395,13 @@ paintTileInThread (gpointer data)
aTileRectangle.y = pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) * pLOEvent->m_nPaintTileX; aTileRectangle.y = pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom) * pLOEvent->m_nPaintTileX;
priv->m_pDocument->pClass->setView(priv->m_pDocument, priv->m_nViewId); 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, priv->m_pDocument->pClass->paintTile(priv->m_pDocument,
pBuffer, pBuffer,
nTileSizePixels, nTileSizePixels, nTileSizePixels, nTileSizePixels,
...@@ -1403,12 +1409,6 @@ paintTileInThread (gpointer data) ...@@ -1403,12 +1409,6 @@ paintTileInThread (gpointer data)
pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom), pixelToTwip(nTileSizePixels, pLOEvent->m_fPaintTileZoom),
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 //create a mapping for it
buffer.m_mTiles[index].setPixbuf(pPixBuf); buffer.m_mTiles[index].setPixbuf(pPixBuf);
buffer.m_mTiles[index].valid = true; buffer.m_mTiles[index].valid = true;
......
...@@ -58,7 +58,6 @@ void TileBuffer::setInvalid(int x, int y, float fZoom, GTask* task, ...@@ -58,7 +58,6 @@ void TileBuffer::setInvalid(int x, int y, float fZoom, GTask* task,
GThreadPool* lokThreadPool) GThreadPool* lokThreadPool)
{ {
int index = x * m_nWidth + y; int index = x * m_nWidth + y;
g_info("Setting tile invalid (%d, %d)", x, y);
if (m_mTiles.find(index) != m_mTiles.end()) if (m_mTiles.find(index) != m_mTiles.end())
{ {
m_mTiles[index].valid = false; m_mTiles[index].valid = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment