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
43cb8fe0
Kaydet (Commit)
43cb8fe0
authored
Agu 28, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#93529 - use debug messages while rendering to break up the trace.
Change-Id: I56629a721202d7a04bd493d4604278dea85b4212
üst
b051c371
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
27 deletions
+27
-27
framebuffer.cxx
vcl/opengl/framebuffer.cxx
+4
-4
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+23
-23
No files found.
vcl/opengl/framebuffer.cxx
Dosyayı görüntüle @
43cb8fe0
...
@@ -22,7 +22,7 @@ OpenGLFramebuffer::OpenGLFramebuffer() :
...
@@ -22,7 +22,7 @@ OpenGLFramebuffer::OpenGLFramebuffer() :
mpNextFramebuffer
(
NULL
)
mpNextFramebuffer
(
NULL
)
{
{
glGenFramebuffers
(
1
,
&
mnId
);
glGenFramebuffers
(
1
,
&
mnId
);
SA
L_INFO
(
"vcl.opengl"
,
"Created framebuffer "
<<
(
int
)
mnId
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"Created framebuffer "
<<
(
int
)
mnId
);
}
}
OpenGLFramebuffer
::~
OpenGLFramebuffer
()
OpenGLFramebuffer
::~
OpenGLFramebuffer
()
...
@@ -33,14 +33,14 @@ OpenGLFramebuffer::~OpenGLFramebuffer()
...
@@ -33,14 +33,14 @@ OpenGLFramebuffer::~OpenGLFramebuffer()
void
OpenGLFramebuffer
::
Bind
()
void
OpenGLFramebuffer
::
Bind
()
{
{
glBindFramebuffer
(
GL_FRAMEBUFFER
,
mnId
);
glBindFramebuffer
(
GL_FRAMEBUFFER
,
mnId
);
SA
L_INFO
(
"vcl.opengl"
,
"Binding framebuffer "
<<
(
int
)
mnId
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"Binding framebuffer "
<<
(
int
)
mnId
);
CHECK_GL_ERROR
();
CHECK_GL_ERROR
();
}
}
void
OpenGLFramebuffer
::
Unbind
()
void
OpenGLFramebuffer
::
Unbind
()
{
{
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
SA
L_INFO
(
"vcl.opengl"
,
"Binding default framebuffer"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"Binding default framebuffer"
);
CHECK_GL_ERROR
();
CHECK_GL_ERROR
();
}
}
...
@@ -59,7 +59,7 @@ void OpenGLFramebuffer::AttachTexture( const OpenGLTexture& rTexture )
...
@@ -59,7 +59,7 @@ void OpenGLFramebuffer::AttachTexture( const OpenGLTexture& rTexture )
if
(
rTexture
.
Id
()
==
mnAttachedTexture
)
if
(
rTexture
.
Id
()
==
mnAttachedTexture
)
return
;
return
;
SA
L_INFO
(
"vcl.opengl"
,
"Attaching texture "
<<
rTexture
.
Id
()
<<
" to framebuffer "
<<
(
int
)
mnId
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"Attaching texture "
<<
rTexture
.
Id
()
<<
" to framebuffer "
<<
(
int
)
mnId
);
mnAttachedTexture
=
rTexture
.
Id
();
mnAttachedTexture
=
rTexture
.
Id
();
mnWidth
=
rTexture
.
GetWidth
();
mnWidth
=
rTexture
.
GetWidth
();
mnHeight
=
rTexture
.
GetHeight
();
mnHeight
=
rTexture
.
GetHeight
();
...
...
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
43cb8fe0
...
@@ -270,7 +270,7 @@ const vcl::Region& OpenGLSalGraphicsImpl::getClipRegion() const
...
@@ -270,7 +270,7 @@ const vcl::Region& OpenGLSalGraphicsImpl::getClipRegion() const
bool
OpenGLSalGraphicsImpl
::
setClipRegion
(
const
vcl
::
Region
&
rClip
)
bool
OpenGLSalGraphicsImpl
::
setClipRegion
(
const
vcl
::
Region
&
rClip
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::setClipRegion "
<<
rClip
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::setClipRegion "
<<
rClip
);
maClipRegion
=
rClip
;
maClipRegion
=
rClip
;
mbUseStencil
=
false
;
mbUseStencil
=
false
;
...
@@ -286,7 +286,7 @@ bool OpenGLSalGraphicsImpl::setClipRegion( const vcl::Region& rClip )
...
@@ -286,7 +286,7 @@ bool OpenGLSalGraphicsImpl::setClipRegion( const vcl::Region& rClip )
// set the clip region to empty
// set the clip region to empty
void
OpenGLSalGraphicsImpl
::
ResetClipRegion
()
void
OpenGLSalGraphicsImpl
::
ResetClipRegion
()
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::ResetClipRegion"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::ResetClipRegion"
);
maClipRegion
.
SetEmpty
();
maClipRegion
.
SetEmpty
();
mbUseScissor
=
false
;
mbUseScissor
=
false
;
mbUseStencil
=
false
;
mbUseStencil
=
false
;
...
@@ -1216,7 +1216,7 @@ void OpenGLSalGraphicsImpl::DrawRadialGradient( const Gradient& rGradient, const
...
@@ -1216,7 +1216,7 @@ void OpenGLSalGraphicsImpl::DrawRadialGradient( const Gradient& rGradient, const
// draw --> LineColor and FillColor and RasterOp and ClipRegion
// draw --> LineColor and FillColor and RasterOp and ClipRegion
void
OpenGLSalGraphicsImpl
::
drawPixel
(
long
nX
,
long
nY
)
void
OpenGLSalGraphicsImpl
::
drawPixel
(
long
nX
,
long
nY
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPixel"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPixel"
);
if
(
mnLineColor
!=
SALCOLOR_NONE
)
if
(
mnLineColor
!=
SALCOLOR_NONE
)
{
{
PreDraw
();
PreDraw
();
...
@@ -1228,7 +1228,7 @@ void OpenGLSalGraphicsImpl::drawPixel( long nX, long nY )
...
@@ -1228,7 +1228,7 @@ void OpenGLSalGraphicsImpl::drawPixel( long nX, long nY )
void
OpenGLSalGraphicsImpl
::
drawPixel
(
long
nX
,
long
nY
,
SalColor
nSalColor
)
void
OpenGLSalGraphicsImpl
::
drawPixel
(
long
nX
,
long
nY
,
SalColor
nSalColor
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPixel"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPixel"
);
if
(
nSalColor
!=
SALCOLOR_NONE
)
if
(
nSalColor
!=
SALCOLOR_NONE
)
{
{
PreDraw
();
PreDraw
();
...
@@ -1240,7 +1240,7 @@ void OpenGLSalGraphicsImpl::drawPixel( long nX, long nY, SalColor nSalColor )
...
@@ -1240,7 +1240,7 @@ void OpenGLSalGraphicsImpl::drawPixel( long nX, long nY, SalColor nSalColor )
void
OpenGLSalGraphicsImpl
::
drawLine
(
long
nX1
,
long
nY1
,
long
nX2
,
long
nY2
)
void
OpenGLSalGraphicsImpl
::
drawLine
(
long
nX1
,
long
nY1
,
long
nX2
,
long
nY2
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawLine"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawLine"
);
if
(
mnLineColor
!=
SALCOLOR_NONE
)
if
(
mnLineColor
!=
SALCOLOR_NONE
)
{
{
PreDraw
();
PreDraw
();
...
@@ -1252,7 +1252,7 @@ void OpenGLSalGraphicsImpl::drawLine( long nX1, long nY1, long nX2, long nY2 )
...
@@ -1252,7 +1252,7 @@ void OpenGLSalGraphicsImpl::drawLine( long nX1, long nY1, long nX2, long nY2 )
void
OpenGLSalGraphicsImpl
::
drawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
)
void
OpenGLSalGraphicsImpl
::
drawRect
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawRect"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawRect"
);
PreDraw
();
PreDraw
();
if
(
UseSolid
(
mnFillColor
)
)
if
(
UseSolid
(
mnFillColor
)
)
...
@@ -1286,7 +1286,7 @@ void OpenGLSalGraphicsImpl::drawRect( long nX, long nY, long nWidth, long nHeigh
...
@@ -1286,7 +1286,7 @@ void OpenGLSalGraphicsImpl::drawRect( long nX, long nY, long nWidth, long nHeigh
void
OpenGLSalGraphicsImpl
::
drawPolyLine
(
sal_uInt32
nPoints
,
const
SalPoint
*
pPtAry
)
void
OpenGLSalGraphicsImpl
::
drawPolyLine
(
sal_uInt32
nPoints
,
const
SalPoint
*
pPtAry
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPolyLine"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPolyLine"
);
if
(
mnLineColor
!=
SALCOLOR_NONE
&&
nPoints
>
1
)
if
(
mnLineColor
!=
SALCOLOR_NONE
&&
nPoints
>
1
)
{
{
...
@@ -1299,7 +1299,7 @@ void OpenGLSalGraphicsImpl::drawPolyLine( sal_uInt32 nPoints, const SalPoint* pP
...
@@ -1299,7 +1299,7 @@ void OpenGLSalGraphicsImpl::drawPolyLine( sal_uInt32 nPoints, const SalPoint* pP
void
OpenGLSalGraphicsImpl
::
drawPolygon
(
sal_uInt32
nPoints
,
const
SalPoint
*
pPtAry
)
void
OpenGLSalGraphicsImpl
::
drawPolygon
(
sal_uInt32
nPoints
,
const
SalPoint
*
pPtAry
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPolygon"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPolygon"
);
if
(
nPoints
==
0
)
if
(
nPoints
==
0
)
return
;
return
;
if
(
nPoints
==
1
)
if
(
nPoints
==
1
)
...
@@ -1327,7 +1327,7 @@ void OpenGLSalGraphicsImpl::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPt
...
@@ -1327,7 +1327,7 @@ void OpenGLSalGraphicsImpl::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPt
void
OpenGLSalGraphicsImpl
::
drawPolyPolygon
(
sal_uInt32
nPoly
,
const
sal_uInt32
*
pPoints
,
PCONSTSALPOINT
*
pPtAry
)
void
OpenGLSalGraphicsImpl
::
drawPolyPolygon
(
sal_uInt32
nPoly
,
const
sal_uInt32
*
pPoints
,
PCONSTSALPOINT
*
pPtAry
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPolyPolygon"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPolyPolygon"
);
if
(
nPoly
<=
0
)
if
(
nPoly
<=
0
)
return
;
return
;
...
@@ -1364,7 +1364,7 @@ void OpenGLSalGraphicsImpl::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32*
...
@@ -1364,7 +1364,7 @@ void OpenGLSalGraphicsImpl::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32*
bool
OpenGLSalGraphicsImpl
::
drawPolyPolygon
(
const
::
basegfx
::
B2DPolyPolygon
&
rPolyPolygon
,
double
fTransparency
)
bool
OpenGLSalGraphicsImpl
::
drawPolyPolygon
(
const
::
basegfx
::
B2DPolyPolygon
&
rPolyPolygon
,
double
fTransparency
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPolyPolygon trans "
<<
fTransparency
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPolyPolygon trans "
<<
fTransparency
);
if
(
rPolyPolygon
.
count
()
<=
0
)
if
(
rPolyPolygon
.
count
()
<=
0
)
return
true
;
return
true
;
...
@@ -1393,7 +1393,7 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
...
@@ -1393,7 +1393,7 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
basegfx
::
B2DLineJoin
eLineJoin
,
basegfx
::
B2DLineJoin
eLineJoin
,
com
::
sun
::
star
::
drawing
::
LineCap
eLineCap
)
com
::
sun
::
star
::
drawing
::
LineCap
eLineCap
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawPolyLine trans "
<<
fTransparency
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawPolyLine trans "
<<
fTransparency
);
if
(
mnLineColor
==
SALCOLOR_NONE
)
if
(
mnLineColor
==
SALCOLOR_NONE
)
return
true
;
return
true
;
...
@@ -1503,7 +1503,7 @@ void OpenGLSalGraphicsImpl::copyArea(
...
@@ -1503,7 +1503,7 @@ void OpenGLSalGraphicsImpl::copyArea(
long
nSrcWidth
,
long
nSrcHeight
,
long
nSrcWidth
,
long
nSrcHeight
,
sal_uInt16
/*nFlags*/
)
sal_uInt16
/*nFlags*/
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::copyArea "
<<
nSrcX
<<
","
<<
nSrcY
<<
" >> "
<<
nDestX
<<
","
<<
nDestY
<<
" ("
<<
nSrcWidth
<<
","
<<
nSrcHeight
<<
")"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::copyArea "
<<
nSrcX
<<
","
<<
nSrcY
<<
" >> "
<<
nDestX
<<
","
<<
nDestY
<<
" ("
<<
nSrcWidth
<<
","
<<
nSrcHeight
<<
")"
);
OpenGLTexture
aTexture
;
OpenGLTexture
aTexture
;
SalTwoRect
aPosAry
(
0
,
0
,
nSrcWidth
,
nSrcHeight
,
nDestX
,
nDestY
,
nSrcWidth
,
nSrcHeight
);
SalTwoRect
aPosAry
(
0
,
0
,
nSrcWidth
,
nSrcHeight
,
nDestX
,
nDestY
,
nSrcWidth
,
nSrcHeight
);
...
@@ -1519,7 +1519,7 @@ void OpenGLSalGraphicsImpl::copyArea(
...
@@ -1519,7 +1519,7 @@ void OpenGLSalGraphicsImpl::copyArea(
// CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
// CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
void
OpenGLSalGraphicsImpl
::
DoCopyBits
(
const
SalTwoRect
&
rPosAry
,
OpenGLSalGraphicsImpl
&
rImpl
)
void
OpenGLSalGraphicsImpl
::
DoCopyBits
(
const
SalTwoRect
&
rPosAry
,
OpenGLSalGraphicsImpl
&
rImpl
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::copyBits"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::copyBits"
);
if
(
&
rImpl
==
this
&&
if
(
&
rImpl
==
this
&&
(
rPosAry
.
mnSrcWidth
==
rPosAry
.
mnDestWidth
)
&&
(
rPosAry
.
mnSrcWidth
==
rPosAry
.
mnDestWidth
)
&&
...
@@ -1556,7 +1556,7 @@ void OpenGLSalGraphicsImpl::drawBitmap( const SalTwoRect& rPosAry, const SalBitm
...
@@ -1556,7 +1556,7 @@ void OpenGLSalGraphicsImpl::drawBitmap( const SalTwoRect& rPosAry, const SalBitm
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
OpenGLTexture
&
rTexture
=
rBitmap
.
GetTexture
();
OpenGLTexture
&
rTexture
=
rBitmap
.
GetTexture
();
SA
L_INFO
(
"vcl.opengl"
,
"::drawBitmap"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawBitmap"
);
PreDraw
();
PreDraw
();
DrawTexture
(
rTexture
,
rPosAry
);
DrawTexture
(
rTexture
,
rPosAry
);
PostDraw
();
PostDraw
();
...
@@ -1572,7 +1572,7 @@ void OpenGLSalGraphicsImpl::drawBitmap(
...
@@ -1572,7 +1572,7 @@ void OpenGLSalGraphicsImpl::drawBitmap(
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
OpenGLTexture
&
rMaskTex
(
rMask
.
GetTexture
()
);
OpenGLTexture
&
rMaskTex
(
rMask
.
GetTexture
()
);
SA
L_INFO
(
"vcl.opengl"
,
"::drawBitmap with MASK"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawBitmap with MASK"
);
PreDraw
();
PreDraw
();
DrawTextureWithMask
(
rTexture
,
rMaskTex
,
rPosAry
);
DrawTextureWithMask
(
rTexture
,
rMaskTex
,
rPosAry
);
PostDraw
();
PostDraw
();
...
@@ -1586,7 +1586,7 @@ void OpenGLSalGraphicsImpl::drawMask(
...
@@ -1586,7 +1586,7 @@ void OpenGLSalGraphicsImpl::drawMask(
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
SA
L_INFO
(
"vcl.opengl"
,
"::drawMask"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawMask"
);
PreDraw
();
PreDraw
();
DrawMask
(
rTexture
,
nMaskColor
,
rPosAry
);
DrawMask
(
rTexture
,
nMaskColor
,
rPosAry
);
PostDraw
();
PostDraw
();
...
@@ -1595,7 +1595,7 @@ void OpenGLSalGraphicsImpl::drawMask(
...
@@ -1595,7 +1595,7 @@ void OpenGLSalGraphicsImpl::drawMask(
SalBitmap
*
OpenGLSalGraphicsImpl
::
getBitmap
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
)
SalBitmap
*
OpenGLSalGraphicsImpl
::
getBitmap
(
long
nX
,
long
nY
,
long
nWidth
,
long
nHeight
)
{
{
OpenGLSalBitmap
*
pBitmap
=
new
OpenGLSalBitmap
;
OpenGLSalBitmap
*
pBitmap
=
new
OpenGLSalBitmap
;
SA
L_INFO
(
"vcl.opengl"
,
"::getBitmap "
<<
nX
<<
","
<<
nY
<<
VCL_G
L_INFO
(
"vcl.opengl"
,
"::getBitmap "
<<
nX
<<
","
<<
nY
<<
" "
<<
nWidth
<<
"x"
<<
nHeight
);
" "
<<
nWidth
<<
"x"
<<
nHeight
);
//TODO really needed?
//TODO really needed?
PreDraw
();
PreDraw
();
...
@@ -1687,7 +1687,7 @@ bool OpenGLSalGraphicsImpl::blendBitmap(
...
@@ -1687,7 +1687,7 @@ bool OpenGLSalGraphicsImpl::blendBitmap(
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
const
OpenGLSalBitmap
&
rBitmap
=
static_cast
<
const
OpenGLSalBitmap
&>
(
rSalBitmap
);
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
SA
L_INFO
(
"vcl.opengl"
,
"::blendBitmap"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::blendBitmap"
);
PreDraw
();
PreDraw
();
glEnable
(
GL_BLEND
);
glEnable
(
GL_BLEND
);
glBlendFunc
(
GL_ZERO
,
GL_SRC_COLOR
);
glBlendFunc
(
GL_ZERO
,
GL_SRC_COLOR
);
...
@@ -1710,7 +1710,7 @@ bool OpenGLSalGraphicsImpl::blendAlphaBitmap(
...
@@ -1710,7 +1710,7 @@ bool OpenGLSalGraphicsImpl::blendAlphaBitmap(
OpenGLTexture
&
rMask
(
rMaskBitmap
.
GetTexture
()
);
OpenGLTexture
&
rMask
(
rMaskBitmap
.
GetTexture
()
);
OpenGLTexture
&
rAlpha
(
rAlphaBitmap
.
GetTexture
()
);
OpenGLTexture
&
rAlpha
(
rAlphaBitmap
.
GetTexture
()
);
SA
L_INFO
(
"vcl.opengl"
,
"::blendAlphaBitmap"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::blendAlphaBitmap"
);
PreDraw
();
PreDraw
();
DrawBlendedTexture
(
rTexture
,
rMask
,
rAlpha
,
rPosAry
);
DrawBlendedTexture
(
rTexture
,
rMask
,
rAlpha
,
rPosAry
);
PostDraw
();
PostDraw
();
...
@@ -1739,7 +1739,7 @@ bool OpenGLSalGraphicsImpl::drawAlphaBitmap(
...
@@ -1739,7 +1739,7 @@ bool OpenGLSalGraphicsImpl::drawAlphaBitmap(
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
OpenGLTexture
&
rTexture
(
rBitmap
.
GetTexture
()
);
OpenGLTexture
&
rAlphaTex
(
rAlpha
.
GetTexture
()
);
OpenGLTexture
&
rAlphaTex
(
rAlpha
.
GetTexture
()
);
SA
L_INFO
(
"vcl.opengl"
,
"::drawAlphaBitmap"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawAlphaBitmap"
);
PreDraw
();
PreDraw
();
DrawTextureWithMask
(
rTexture
,
rAlphaTex
,
rPosAry
);
DrawTextureWithMask
(
rTexture
,
rAlphaTex
,
rPosAry
);
PostDraw
();
PostDraw
();
...
@@ -1762,7 +1762,7 @@ bool OpenGLSalGraphicsImpl::drawTransformedBitmap(
...
@@ -1762,7 +1762,7 @@ bool OpenGLSalGraphicsImpl::drawTransformedBitmap(
if
(
pMaskBitmap
!=
NULL
)
if
(
pMaskBitmap
!=
NULL
)
aMask
=
pMaskBitmap
->
GetTexture
();
aMask
=
pMaskBitmap
->
GetTexture
();
SA
L_INFO
(
"vcl.opengl"
,
"::drawTransformedBitmap"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawTransformedBitmap"
);
PreDraw
();
PreDraw
();
DrawTransformedTexture
(
rTexture
,
aMask
,
rNull
,
rX
,
rY
);
DrawTransformedTexture
(
rTexture
,
aMask
,
rNull
,
rX
,
rY
);
PostDraw
();
PostDraw
();
...
@@ -1781,7 +1781,7 @@ bool OpenGLSalGraphicsImpl::drawAlphaRect(
...
@@ -1781,7 +1781,7 @@ bool OpenGLSalGraphicsImpl::drawAlphaRect(
long
nWidth
,
long
nHeight
,
long
nWidth
,
long
nHeight
,
sal_uInt8
nTransparency
)
sal_uInt8
nTransparency
)
{
{
SA
L_INFO
(
"vcl.opengl"
,
"::drawAlphaRect"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawAlphaRect"
);
if
(
mnFillColor
!=
SALCOLOR_NONE
&&
nTransparency
<
100
)
if
(
mnFillColor
!=
SALCOLOR_NONE
&&
nTransparency
<
100
)
{
{
PreDraw
();
PreDraw
();
...
@@ -1798,7 +1798,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
...
@@ -1798,7 +1798,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
{
{
Rectangle
aBoundRect
(
rPolyPoly
.
GetBoundRect
()
);
Rectangle
aBoundRect
(
rPolyPoly
.
GetBoundRect
()
);
SA
L_INFO
(
"vcl.opengl"
,
"::drawGradient"
);
VCL_G
L_INFO
(
"vcl.opengl"
,
"::drawGradient"
);
if
(
aBoundRect
.
IsEmpty
()
)
if
(
aBoundRect
.
IsEmpty
()
)
return
true
;
return
true
;
...
...
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