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
cc656270
Kaydet (Commit)
cc656270
authored
Ock 12, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svp: route copyBits through cairo
Change-Id: I9521f7fecc59197efb17526a365cf4c9b259975f
üst
50c2d561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
29 deletions
+33
-29
svpgdi.cxx
vcl/headless/svpgdi.cxx
+32
-29
svpgdi.hxx
vcl/inc/headless/svpgdi.hxx
+1
-0
No files found.
vcl/headless/svpgdi.cxx
Dosyayı görüntüle @
cc656270
...
@@ -1090,36 +1090,9 @@ void SvpSalGraphics::copyArea( long nDestX,
...
@@ -1090,36 +1090,9 @@ void SvpSalGraphics::copyArea( long nDestX,
dbgOut
(
m_aDevice
);
dbgOut
(
m_aDevice
);
}
}
void
SvpSalGraphics
::
copy
Bits
(
const
SalTwoRect
&
rPosAry
,
void
SvpSalGraphics
::
copy
Source
(
const
SalTwoRect
&
rTR
,
SalGraphics
*
pSrcGraphics
)
cairo_surface_t
*
source
)
{
{
if
(
!
m_aDevice
.
get
()
)
return
;
SvpSalGraphics
*
pSrc
=
pSrcGraphics
?
static_cast
<
SvpSalGraphics
*>
(
pSrcGraphics
)
:
this
;
basegfx
::
B2IBox
aSrcRect
(
rPosAry
.
mnSrcX
,
rPosAry
.
mnSrcY
,
rPosAry
.
mnSrcX
+
rPosAry
.
mnSrcWidth
,
rPosAry
.
mnSrcY
+
rPosAry
.
mnSrcHeight
);
basegfx
::
B2IBox
aDestRect
(
rPosAry
.
mnDestX
,
rPosAry
.
mnDestY
,
rPosAry
.
mnDestX
+
rPosAry
.
mnDestWidth
,
rPosAry
.
mnDestY
+
rPosAry
.
mnDestHeight
);
SvpSalGraphics
::
ClipUndoHandle
aUndo
(
this
);
if
(
!
isClippedSetup
(
aDestRect
,
aUndo
)
)
m_aDevice
->
drawBitmap
(
pSrc
->
m_aOrigDevice
,
aSrcRect
,
aDestRect
,
basebmp
::
DrawMode
::
Paint
,
m_aClipMap
);
dbgOut
(
m_aDevice
);
}
void
SvpSalGraphics
::
drawBitmap
(
const
SalTwoRect
&
rTR
,
const
SalBitmap
&
rSourceBitmap
)
{
SourceHelper
aSurface
(
rSourceBitmap
);
cairo_surface_t
*
source
=
aSurface
.
getSurface
();
if
(
!
source
)
{
SAL_WARN
(
"vcl.gdi"
,
"unsupported SvpSalGraphics::drawAlphaBitmap case"
);
}
cairo_t
*
cr
=
getCairoContext
(
false
);
cairo_t
*
cr
=
getCairoContext
(
false
);
assert
(
cr
&&
m_aDevice
->
isTopDown
());
assert
(
cr
&&
m_aDevice
->
isTopDown
());
clipRegion
(
cr
);
clipRegion
(
cr
);
...
@@ -1138,6 +1111,36 @@ void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, const SalBitmap& rSourceB
...
@@ -1138,6 +1111,36 @@ void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, const SalBitmap& rSourceB
releaseCairoContext
(
cr
,
false
,
extents
);
releaseCairoContext
(
cr
,
false
,
extents
);
}
}
void
SvpSalGraphics
::
copyBits
(
const
SalTwoRect
&
rTR
,
SalGraphics
*
pSrcGraphics
)
{
SvpSalGraphics
*
pSrc
=
pSrcGraphics
?
static_cast
<
SvpSalGraphics
*>
(
pSrcGraphics
)
:
this
;
cairo_surface_t
*
source
=
SvpSalGraphics
::
createCairoSurface
(
pSrc
->
m_aOrigDevice
);
if
(
!
source
)
{
SAL_WARN
(
"vcl.gdi"
,
"unsupported SvpSalGraphics::drawBitmap case"
);
return
;
}
copySource
(
rTR
,
source
);
cairo_surface_destroy
(
source
);
}
void
SvpSalGraphics
::
drawBitmap
(
const
SalTwoRect
&
rTR
,
const
SalBitmap
&
rSourceBitmap
)
{
SourceHelper
aSurface
(
rSourceBitmap
);
cairo_surface_t
*
source
=
aSurface
.
getSurface
();
if
(
!
source
)
{
SAL_WARN
(
"vcl.gdi"
,
"unsupported SvpSalGraphics::drawBitmap case"
);
}
copySource
(
rTR
,
source
);
}
void
SvpSalGraphics
::
drawBitmap
(
const
SalTwoRect
&
rPosAry
,
void
SvpSalGraphics
::
drawBitmap
(
const
SalTwoRect
&
rPosAry
,
const
SalBitmap
&
rSalBitmap
,
const
SalBitmap
&
rSalBitmap
,
const
SalBitmap
&
rTransparentBitmap
)
const
SalBitmap
&
rTransparentBitmap
)
...
...
vcl/inc/headless/svpgdi.hxx
Dosyayı görüntüle @
cc656270
...
@@ -82,6 +82,7 @@ private:
...
@@ -82,6 +82,7 @@ private:
bool
isClippedSetup
(
const
basegfx
::
B2IBox
&
aRange
,
ClipUndoHandle
&
rUndo
);
bool
isClippedSetup
(
const
basegfx
::
B2IBox
&
aRange
,
ClipUndoHandle
&
rUndo
);
void
ensureClip
();
void
ensureClip
();
void
invert
(
const
basegfx
::
B2DPolygon
&
rPoly
,
SalInvert
nFlags
);
void
invert
(
const
basegfx
::
B2DPolygon
&
rPoly
,
SalInvert
nFlags
);
void
copySource
(
const
SalTwoRect
&
rTR
,
cairo_surface_t
*
source
);
protected
:
protected
:
vcl
::
Region
m_aClipRegion
;
vcl
::
Region
m_aClipRegion
;
SvpCairoTextRender
m_aTextRenderImpl
;
SvpCairoTextRender
m_aTextRenderImpl
;
...
...
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