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
38b70b16
Kaydet (Commit)
38b70b16
authored
Agu 30, 2012
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify time profiling
Change-Id: Ib5976cd3e0c6e3b90fc62fe8336317f259dd544b
üst
7a545ea8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
OGLTrans_TransitionerImpl.cxx
.../source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx
+24
-12
No files found.
slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionerImpl.cxx
Dosyayı görüntüle @
38b70b16
...
...
@@ -82,9 +82,6 @@ namespace unx
#include <boost/date_time/posix_time/posix_time.hpp>
using
namespace
::
boost
::
posix_time
;
static
ptime
t1
;
static
ptime
t2
;
#endif
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -100,6 +97,26 @@ namespace
typedef
cppu
::
WeakComponentImplHelper1
<
presentation
::
XTransition
>
OGLTransitionerImplBase
;
#if OSL_DEBUG_LEVEL > 1
class
TimerContext
{
public
:
explicit
TimerContext
(
rtl
::
OUString
const
&
rWhat
)
:
m_aWhat
(
rWhat
)
,
m_aStartTime
(
microsec_clock
::
local_time
())
{
}
~
TimerContext
()
{
time_duration
const
aDuration
(
microsec_clock
::
local_time
()
-
m_aStartTime
);
SAL_INFO
(
"slideshow.opengl"
,
m_aWhat
<<
" took: "
<<
aDuration
);
}
private
:
rtl
::
OUString
const
m_aWhat
;
ptime
const
m_aStartTime
;
};
#endif
namespace
{
struct
OGLFormat
...
...
@@ -733,10 +750,6 @@ void OGLTransitionerImpl::setSlides( const uno::Reference< rendering::XBitmap >&
XSync
(
GLWin
.
dpy
,
false
);
#endif
#if OSL_DEBUG_LEVEL > 1
t1
=
microsec_clock
::
local_time
();
#endif
mbUseLeavingPixmap
=
false
;
mbUseEnteringPixmap
=
false
;
...
...
@@ -1071,6 +1084,10 @@ void OGLTransitionerImpl::GLInitSlides()
if
(
isDisposed
()
||
pTransition
->
mnRequiredGLVersion
>
cnGLVersion
)
return
;
#if OSL_DEBUG_LEVEL > 1
TimerContext
aTimerContext
(
"texture creation"
);
#endif
prepareEnvironment
();
const
OGLFormat
*
pFormat
=
NULL
;
...
...
@@ -1099,11 +1116,6 @@ void OGLTransitionerImpl::GLInitSlides()
unx
::
glXWaitGL
();
XSync
(
GLWin
.
dpy
,
false
);
#endif
#if OSL_DEBUG_LEVEL > 1
t2
=
microsec_clock
::
local_time
();
SAL_INFO
(
"slideshow.opengl"
,
"textures created in: "
<<
(
t2
-
t1
));
#endif
}
void
SAL_CALL
OGLTransitionerImpl
::
update
(
double
nTime
)
throw
(
uno
::
RuntimeException
)
...
...
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