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
d9fbaf24
Kaydet (Commit)
d9fbaf24
authored
Kas 11, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
windows opengl: Instantiate OpenGLSalBitmap even on Windows.
Change-Id: I2229141cc12ad7bc9fccfd6e2c7fec44ac4f6284
üst
a237e083
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+3
-0
salbmp.cxx
vcl/opengl/salbmp.cxx
+8
-3
salinst.cxx
vcl/win/source/app/salinst.cxx
+7
-2
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
d9fbaf24
...
...
@@ -865,6 +865,9 @@ void OpenGLSalGraphicsImpl::copyBits( const SalTwoRect& rPosAry, SalGraphics* /*
void
OpenGLSalGraphicsImpl
::
drawBitmap
(
const
SalTwoRect
&
rPosAry
,
const
SalBitmap
&
rSalBitmap
)
{
// check that carefully only in the debug mode
assert
(
dynamic_cast
<
const
OpenGLSalBitmap
*>
(
&
rSalBitmap
));
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
GLuint
nTexture
=
rBitmap
.
GetTexture
(
maContext
);
const
Size
aSize
=
rSalBitmap
.
GetSize
();
...
...
vcl/opengl/salbmp.cxx
Dosyayı görüntüle @
d9fbaf24
...
...
@@ -34,6 +34,7 @@ static bool isValidBitCount( sal_uInt16 nBitCount )
OpenGLSalBitmap
::
OpenGLSalBitmap
()
:
mpContext
(
NULL
)
,
mpTexture
(
NULL
)
,
mbDirtyTexture
(
true
)
,
mnBits
(
0
)
,
mnBytesPerRow
(
0
)
...
...
@@ -57,7 +58,7 @@ bool OpenGLSalBitmap::Create( OpenGLContext& rContext, OpenGLTextureSharedPtr pT
static
const
BitmapPalette
aEmptyPalette
;
Destroy
();
SAL_INFO
(
"vcl.opengl"
,
"OpenGLSalBitmap::Create from FBO
"
);
SAL_INFO
(
"vcl.opengl"
,
"OpenGLSalBitmap::Create from FBO
: ["
<<
nX
<<
", "
<<
nY
<<
"] "
<<
nWidth
<<
"x"
<<
nHeight
);
mpContext
=
&
rContext
;
mnWidth
=
nWidth
;
...
...
@@ -83,7 +84,7 @@ bool OpenGLSalBitmap::Create( OpenGLContext& rContext, OpenGLTextureSharedPtr pT
bool
OpenGLSalBitmap
::
Create
(
const
Size
&
rSize
,
sal_uInt16
nBits
,
const
BitmapPalette
&
rBitmapPalette
)
{
Destroy
();
SAL_INFO
(
"vcl.opengl"
,
"OpenGLSalBitmap::Create with size
"
);
SAL_INFO
(
"vcl.opengl"
,
"OpenGLSalBitmap::Create with size
: "
<<
rSize
);
if
(
!
isValidBitCount
(
nBits
)
)
return
false
;
...
...
@@ -106,9 +107,12 @@ bool OpenGLSalBitmap::Create( const SalBitmap& rSalBmp, SalGraphics* pGraphics )
bool
OpenGLSalBitmap
::
Create
(
const
SalBitmap
&
rSalBmp
,
sal_uInt16
nNewBitCount
)
{
// check that carefully only in the debug mode
assert
(
dynamic_cast
<
const
OpenGLSalBitmap
*>
(
&
rSalBmp
));
const
OpenGLSalBitmap
&
rSourceBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBmp
);
SAL_INFO
(
"vcl.opengl"
,
"OpenGLSalBitmap::Create from BMP
"
<<
rSourceBitmap
.
mnHeight
);
SAL_INFO
(
"vcl.opengl"
,
"OpenGLSalBitmap::Create from BMP
: "
<<
rSourceBitmap
.
mnWidth
<<
"x
"
<<
rSourceBitmap
.
mnHeight
);
if
(
isValidBitCount
(
nNewBitCount
)
)
{
...
...
@@ -328,6 +332,7 @@ Size OpenGLSalBitmap::GetSize() const
GLuint
OpenGLSalBitmap
::
CreateTexture
()
{
SAL_INFO
(
"vcl.opengl"
,
"::CreateTexture"
);
GLenum
nFormat
=
GL_RGBA
;
GLenum
nType
=
GL_UNSIGNED_BYTE
;
sal_uInt8
*
pData
(
NULL
);
...
...
vcl/win/source/app/salinst.cxx
Dosyayı görüntüle @
d9fbaf24
...
...
@@ -26,9 +26,11 @@
#include <tools/solarmutex.hxx>
#include <vcl/timer.hxx>
#include <vcl/apptypes.hxx>
#include <vcl/opengl/OpenGLHelper.hxx>
#include <vcl/timer.hxx>
#include <opengl/salbmp.hxx>
#include <win/wincomp.hxx>
#include <win/salids.hrc>
#include <win/saldata.hxx>
...
...
@@ -1007,7 +1009,10 @@ SalTimer* WinSalInstance::CreateSalTimer()
SalBitmap
*
WinSalInstance
::
CreateSalBitmap
()
{
return
new
WinSalBitmap
();
if
(
OpenGLHelper
::
isVCLOpenGLEnabled
())
return
new
OpenGLSalBitmap
();
else
return
new
WinSalBitmap
();
}
class
WinImeStatus
:
public
SalI18NImeStatus
...
...
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