Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
23ac7f2f
Kaydet (Commit)
23ac7f2f
authored
Eki 06, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lokdocview: log paintTile() arguments
Change-Id: I8015c8030c1c7f53ae1de053fe268a33464834ad
üst
78697c79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
gtktiledviewer.cxx
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+0
-1
lokdocview.cxx
libreofficekit/source/gtk/lokdocview.cxx
+7
-7
tilebuffer.cxx
libreofficekit/source/gtk/tilebuffer.cxx
+0
-1
No files found.
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
Dosyayı görüntüle @
23ac7f2f
...
@@ -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
())
{
{
...
...
libreofficekit/source/gtk/lokdocview.cxx
Dosyayı görüntüle @
23ac7f2f
...
@@ -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
;
...
...
libreofficekit/source/gtk/tilebuffer.cxx
Dosyayı görüntüle @
23ac7f2f
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment