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
2343e796
Kaydet (Commit)
2343e796
authored
Ock 11, 2015
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: more whitespace cleanup of GlyphCache class definition
Change-Id: I7a097c849eaa49eab688660cb229222cdf658b81
üst
765eb71e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
25 deletions
+27
-25
glyphcache.hxx
vcl/inc/generic/glyphcache.hxx
+27
-25
No files found.
vcl/inc/generic/glyphcache.hxx
Dosyayı görüntüle @
2343e796
...
...
@@ -55,34 +55,36 @@ namespace vcl { struct FontCapabilities; }
class
VCL_DLLPUBLIC
GlyphCache
{
public
:
explicit
GlyphCache
(
GlyphCachePeer
&
);
~
GlyphCache
();
explicit
GlyphCache
(
GlyphCachePeer
&
);
~
GlyphCache
();
static
GlyphCache
&
GetInstance
();
static
GlyphCache
&
GetInstance
();
void
AddFontFile
(
const
OString
&
rNormalizedName
,
int
nFaceNum
,
sal_IntPtr
nFontId
,
const
ImplDevFontAttributes
&
);
void
AnnounceFonts
(
PhysicalFontCollection
*
)
const
;
void
AddFontFile
(
const
OString
&
rNormalizedName
,
int
nFaceNum
,
sal_IntPtr
nFontId
,
const
ImplDevFontAttributes
&
)
;
ServerFont
*
CacheFont
(
const
FontSelectPattern
&
);
void
UncacheFont
(
ServerFont
&
);
void
ClearFontCache
();
void
InvalidateAllGlyphs
();
void
AnnounceFonts
(
PhysicalFontCollection
*
)
const
;
ServerFont
*
CacheFont
(
const
FontSelectPattern
&
);
void
UncacheFont
(
ServerFont
&
);
void
ClearFontCache
();
void
InvalidateAllGlyphs
();
protected
:
GlyphCachePeer
&
mrPeer
;
GlyphCachePeer
&
mrPeer
;
private
:
friend
class
ServerFont
;
// used by ServerFont class only
void
AddedGlyph
(
ServerFont
&
,
GlyphData
&
);
void
RemovingGlyph
(
GlyphData
&
);
void
UsingGlyph
(
ServerFont
&
,
GlyphData
&
);
void
GrowNotify
();
void
AddedGlyph
(
ServerFont
&
,
GlyphData
&
);
void
RemovingGlyph
(
GlyphData
&
);
void
UsingGlyph
(
ServerFont
&
,
GlyphData
&
);
void
GrowNotify
();
private
:
void
GarbageCollect
();
void
GarbageCollect
();
// the GlyphCache's FontList matches a font request to a serverfont instance
// the FontList key's mpFontData member is reinterpreted as integer font id
...
...
@@ -90,20 +92,20 @@ private:
struct
IFSD_Hash
{
size_t
operator
()(
const
FontSelectPattern
&
)
const
;
};
typedef
std
::
unordered_map
<
FontSelectPattern
,
ServerFont
*
,
IFSD_Hash
,
IFSD_Equal
>
FontList
;
FontList
maFontList
;
sal_uLong
mnMaxSize
;
// max overall cache size in bytes
mutable
sal_uLong
mnBytesUsed
;
mutable
long
mnLruIndex
;
mutable
int
mnGlyphCount
;
ServerFont
*
mpCurrentGCFont
;
FontList
maFontList
;
sal_uLong
mnMaxSize
;
// max overall cache size in bytes
mutable
sal_uLong
mnBytesUsed
;
mutable
long
mnLruIndex
;
mutable
int
mnGlyphCount
;
ServerFont
*
mpCurrentGCFont
;
class
FreetypeManager
*
mpFtManager
;
class
FreetypeManager
*
mpFtManager
;
};
class
GlyphMetric
{
public
:
GlyphMetric
()
:
mnAdvanceWidth
(
0
)
{}
GlyphMetric
()
:
mnAdvanceWidth
(
0
)
{}
Point
GetOffset
()
const
{
return
maOffset
;
}
Point
GetDelta
()
const
{
return
maDelta
;
}
...
...
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