Searched refs:GrGlyph (Results 1 - 21 of 21) sorted by relevance

/external/skia/include/gpu/
H A DGrFontScaler.h11 #include "GrGlyph.h"
29 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) = 0;
30 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
33 virtual bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds) = 0;
36 virtual bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height,
H A DSkGr.h115 virtual bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds) SK_OVERRIDE;
116 virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
118 virtual bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds) SK_OVERRIDE;
119 virtual bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height,
H A DGrGlyph.h22 struct GrGlyph { struct
31 void init(GrGlyph::PackedID packed, const SkIRect& bounds) {
/external/chromium_org/third_party/skia/src/gpu/
H A DGrTextStrike.h17 #include "GrGlyph.h"
39 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*);
42 bool glyphTooLargeForAtlas(GrGlyph*);
44 bool addGlyphToAtlas(GrGlyph*, GrFontScaler*);
65 SkTDynamicHash<GrGlyph, GrGlyph::PackedID> fCache;
67 GrTAllocPool<GrGlyph> fPool;
76 GrGlyph* generateGlyph(GrGlyph
[all...]
H A DGrFontScaler.cpp88 bool GrFontScaler::getPackedGlyphBounds(GrGlyph::PackedID packed, SkIRect* bounds) {
89 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed),
90 GrGlyph::UnpackFixedX(packed),
91 GrGlyph::UnpackFixedY(packed));
97 bool GrFontScaler::getPackedGlyphDFBounds(GrGlyph::PackedID packed, SkIRect* bounds) {
98 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed),
99 GrGlyph::UnpackFixedX(packed),
100 GrGlyph::UnpackFixedY(packed));
133 bool GrFontScaler::getPackedGlyphImage(GrGlyph::PackedID packed,
136 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph
[all...]
H A DGrTextStrike_impl.h55 GrGlyph* GrTextStrike::getGlyph(GrGlyph::PackedID packed,
57 GrGlyph* glyph = fCache.find(packed);
H A DGrTextStrike.cpp226 We map a 32bit glyphID to a GrGlyph record, which in turn points to a
249 SkTDynamicHash<GrGlyph, GrGlyph::PackedID>::Iter iter(&fCache);
261 GrGlyph* GrTextStrike::generateGlyph(GrGlyph::PackedID packed,
274 GrGlyph* glyph = fPool.alloc();
281 SkTDynamicHash<GrGlyph, GrGlyph::PackedID>::Iter iter(&fCache);
292 bool GrTextStrike::glyphTooLargeForAtlas(GrGlyph* glyph) {
306 bool GrTextStrike::addGlyphToAtlas(GrGlyph* glyp
[all...]
H A DGrBitmapTextContext.h37 void drawPackedGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
H A DGrDistanceFieldTextContext.h46 void drawPackedGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
H A DGrBitmapTextContext.cpp256 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
330 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
363 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
386 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
409 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
424 void GrBitmapTextContext::drawPackedGlyph(GrGlyph::PackedID packed,
435 GrGlyph* glyph = fStrike->getGlyph(packed, scaler);
H A DGrDistanceFieldTextContext.cpp240 void GrDistanceFieldTextContext::drawPackedGlyph(GrGlyph::PackedID packed,
251 GrGlyph* glyph = fStrike->getGlyph(packed, scaler);
595 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
644 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
663 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
/external/skia/src/gpu/
H A DGrTextStrike.h17 #include "GrGlyph.h"
38 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*);
39 bool addGlyphToAtlas(GrGlyph*, GrFontScaler*);
43 const GrGlyph* glyphAt(int index) const {
57 GrTHashTable<GrGlyph, Key, 7> fCache;
59 GrTAllocPool<GrGlyph> fPool;
68 GrGlyph* generateGlyph(GrGlyph::PackedID packed, GrFontScaler* scaler);
H A DSkGrFontScaler.cpp106 bool SkGrFontScaler::getPackedGlyphBounds(GrGlyph::PackedID packed, SkIRect* bounds) {
107 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed),
108 GrGlyph::UnpackFixedX(packed),
109 GrGlyph::UnpackFixedY(packed));
115 bool SkGrFontScaler::getPackedGlyphDFBounds(GrGlyph::PackedID packed, SkIRect* bounds) {
116 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed),
117 GrGlyph::UnpackFixedX(packed),
118 GrGlyph::UnpackFixedY(packed));
151 bool SkGrFontScaler::getPackedGlyphImage(GrGlyph::PackedID packed,
154 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph
[all...]
H A DGrTextStrike_impl.h81 Key(GrGlyph::PackedID id) : fPackedID(id) {}
85 static bool LessThan(const GrGlyph& glyph, const Key& key) {
88 static bool Equals(const GrGlyph& glyph, const Key& key) {
93 GrGlyph::PackedID fPackedID;
96 GrGlyph* GrTextStrike::getGlyph(GrGlyph::PackedID packed,
98 GrGlyph* glyph = fCache.find(packed);
H A DGrBitmapTextContext.h37 void drawPackedGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
H A DGrDistanceFieldTextContext.h40 void drawPackedGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
H A DGrTextStrike.cpp219 We map a 32bit glyphID to a GrGlyph record, which in turn points to a
242 static void free_glyph(GrGlyph*& glyph) { glyph->free(); }
254 GrGlyph* GrTextStrike::generateGlyph(GrGlyph::PackedID packed,
267 GrGlyph* glyph = fPool.alloc();
274 SkTDArray<GrGlyph*>& glyphArray = fCache.getArray();
285 bool GrTextStrike::addGlyphToAtlas(GrGlyph* glyph, GrFontScaler* scaler) {
H A DGrBitmapTextContext.cpp258 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
332 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
365 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
388 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
411 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
426 void GrBitmapTextContext::drawPackedGlyph(GrGlyph::PackedID packed,
437 GrGlyph* glyph = fStrike->getGlyph(packed, scaler);
H A DGrDistanceFieldTextContext.cpp197 void GrDistanceFieldTextContext::drawPackedGlyph(GrGlyph::PackedID packed,
207 GrGlyph* glyph = fStrike->getGlyph(packed, scaler);
496 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
545 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
564 this->drawPackedGlyph(GrGlyph::Pack(glyph.getGlyphID(),
/external/chromium_org/third_party/skia/include/gpu/
H A DGrGlyph.h23 struct GrGlyph { struct
32 void init(GrGlyph::PackedID packed, const SkIRect& bounds) {
77 static inline const GrGlyph::PackedID& GetKey(const GrGlyph& glyph) {
81 static inline uint32_t Hash(GrGlyph::PackedID key) {
H A DGrFontScaler.h11 #include "GrGlyph.h"
70 bool getPackedGlyphBounds(GrGlyph::PackedID, SkIRect* bounds);
71 bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height,
73 bool getPackedGlyphDFBounds(GrGlyph::PackedID, SkIRect* bounds);
74 bool getPackedGlyphDFImage(GrGlyph::PackedID, int width, int height,

Completed in 2762 milliseconds