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
91fb0866
Kaydet (Commit)
91fb0866
authored
May 28, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use AutoTimer instead of Timer, and add some more locking.
Change-Id: I83a99e333a6c62bf7779e3fbbcc3e5af38bb2ca5
üst
fa551c42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
oglplayer.cxx
avmedia/source/opengl/oglplayer.cxx
+4
-1
oglplayer.hxx
avmedia/source/opengl/oglplayer.hxx
+1
-1
No files found.
avmedia/source/opengl/oglplayer.cxx
Dosyayı görüntüle @
91fb0866
...
...
@@ -31,6 +31,7 @@ OGLPlayer::OGLPlayer()
OGLPlayer
::~
OGLPlayer
()
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
if
(
m_pHandle
)
{
for
(
size_t
i
=
0
;
i
<
m_pHandle
->
size
;
++
i
)
...
...
@@ -63,6 +64,8 @@ static bool lcl_LoadFile( glTFFile* io_pFile, const OUString& rURL)
bool
OGLPlayer
::
create
(
const
OUString
&
rURL
)
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
m_sURL
=
rURL
;
// Load *.json file and init renderer
...
...
@@ -297,8 +300,8 @@ IMPL_LINK(OGLPlayer,TimerHandler,Timer*,pTimer)
{
if
(
pTimer
==
&
m_aTimer
)
{
osl
::
MutexGuard
aGuard
(
m_aMutex
);
m_pOGLWindow
->
update
();
m_aTimer
.
Start
();
}
return
0
;
...
...
avmedia/source/opengl/oglplayer.hxx
Dosyayı görüntüle @
91fb0866
...
...
@@ -62,7 +62,7 @@ private:
OUString
m_sURL
;
glTFHandle
*
m_pHandle
;
OpenGLContext
m_aContext
;
Timer
m_aTimer
;
Auto
Timer
m_aTimer
;
OGLWindow
*
m_pOGLWindow
;
};
...
...
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