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
e5f7b22c
Kaydet (Commit)
e5f7b22c
authored
May 05, 2019
tarafından
Ashod Nakashian
Kaydeden (comit)
Jan Holesovsky
May 14, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOK: Reduce logging while processing events
Change-Id: I8ca457387715fcd085bcbf3107839d2629580f7b
üst
abd504c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
init.hxx
desktop/inc/lib/init.hxx
+1
-1
init.cxx
desktop/source/lib/init.cxx
+15
-6
No files found.
desktop/inc/lib/init.hxx
Dosyayı görüntüle @
e5f7b22c
...
@@ -130,7 +130,7 @@ namespace desktop {
...
@@ -130,7 +130,7 @@ namespace desktop {
typedef
std
::
vector
<
CallbackData
>
queue_type
;
typedef
std
::
vector
<
CallbackData
>
queue_type
;
private
:
private
:
void
removeAll
(
const
std
::
function
<
bool
(
const
queue_type
::
value_type
&
)
>&
rTestFunc
);
bool
removeAll
(
const
std
::
function
<
bool
(
const
queue_type
::
value_type
&
)
>&
rTestFunc
);
queue_type
m_queue
;
queue_type
m_queue
;
std
::
map
<
int
,
std
::
string
>
m_states
;
std
::
map
<
int
,
std
::
string
>
m_states
;
...
...
desktop/source/lib/init.cxx
Dosyayı görüntüle @
e5f7b22c
...
@@ -1080,9 +1080,10 @@ void CallbackFlushHandler::queue(const int type, const char* data)
...
@@ -1080,9 +1080,10 @@ void CallbackFlushHandler::queue(const int type, const char* data)
case
LOK_CALLBACK_GRAPHIC_SELECTION
:
case
LOK_CALLBACK_GRAPHIC_SELECTION
:
case
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
:
case
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
:
case
LOK_CALLBACK_INVALIDATE_TILES
:
case
LOK_CALLBACK_INVALIDATE_TILES
:
SAL_INFO
(
"lok"
,
"Removing dups of ["
<<
type
<<
"]: ["
<<
payload
<<
"]."
);
if
(
removeAll
(
removeAll
([
type
]
(
const
queue_type
::
value_type
&
elem
)
{
return
(
elem
.
Type
==
type
);
});
[
type
](
const
queue_type
::
value_type
&
elem
)
{
return
(
elem
.
Type
==
type
);
}))
break
;
SAL_INFO
(
"lok"
,
"Removed dups of ["
<<
type
<<
"]: ["
<<
payload
<<
"]."
);
break
;
}
}
}
}
else
else
...
@@ -1104,7 +1105,9 @@ void CallbackFlushHandler::queue(const int type, const char* data)
...
@@ -1104,7 +1105,9 @@ void CallbackFlushHandler::queue(const int type, const char* data)
case
LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE
:
case
LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE
:
case
LOK_CALLBACK_RULER_UPDATE
:
case
LOK_CALLBACK_RULER_UPDATE
:
{
{
removeAll
([
type
]
(
const
queue_type
::
value_type
&
elem
)
{
return
(
elem
.
Type
==
type
);
});
if
(
removeAll
(
[
type
](
const
queue_type
::
value_type
&
elem
)
{
return
(
elem
.
Type
==
type
);
}))
SAL_INFO
(
"lok"
,
"Removed dups of ["
<<
type
<<
"]: ["
<<
payload
<<
"]."
);
}
}
break
;
break
;
...
@@ -1485,10 +1488,16 @@ void CallbackFlushHandler::Invoke()
...
@@ -1485,10 +1488,16 @@ void CallbackFlushHandler::Invoke()
}
}
}
}
void
CallbackFlushHandler
::
removeAll
(
const
std
::
function
<
bool
(
const
CallbackFlushHandler
::
queue_type
::
value_type
&
)
>&
rTestFunc
)
bool
CallbackFlushHandler
::
removeAll
(
const
std
::
function
<
bool
(
const
CallbackFlushHandler
::
queue_type
::
value_type
&
)
>&
rTestFunc
)
{
{
auto
newEnd
=
std
::
remove_if
(
m_queue
.
begin
(),
m_queue
.
end
(),
rTestFunc
);
auto
newEnd
=
std
::
remove_if
(
m_queue
.
begin
(),
m_queue
.
end
(),
rTestFunc
);
m_queue
.
erase
(
newEnd
,
m_queue
.
end
());
if
(
newEnd
!=
m_queue
.
end
())
{
m_queue
.
erase
(
newEnd
,
m_queue
.
end
());
return
true
;
}
return
false
;
}
}
void
CallbackFlushHandler
::
addViewStates
(
int
viewId
)
void
CallbackFlushHandler
::
addViewStates
(
int
viewId
)
...
...
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