#include <GlyphRun.h>
Definition at line 69 of file GlyphRun.h.
◆ GlyphRunList() [1/2]
Definition at line 46 of file GlyphRun.cpp.
51 : fGlyphRuns{glyphRunList}
52 , fOriginalTextBlob{
blob}
const SkTextBlob * blob() const
GlyphRunBuilder * builder() const
Optional< SkRect > bounds
◆ GlyphRunList() [2/2]
Definition at line 57 of file GlyphRun.cpp.
62 , fOriginalTextBlob{nullptr}
◆ anyRunsLCD()
bool sktext::GlyphRunList::anyRunsLCD |
( |
| ) |
const |
Definition at line 72 of file GlyphRun.cpp.
72 {
73 for (const auto& r : fGlyphRuns) {
75 return true;
76 }
77 }
78 return false;
79}
@ kSubpixelAntiAlias
glyph positioned in pixel using transparency
◆ begin() [1/2]
auto sktext::GlyphRunList::begin |
( |
| ) |
-> decltype(fGlyphRuns.begin()) |
|
inline |
Definition at line 120 of file GlyphRun.h.
120{ return fGlyphRuns.begin(); }
◆ begin() [2/2]
auto sktext::GlyphRunList::begin |
( |
| ) |
const -> decltype(std::cbegin(fGlyphRuns)) |
|
inline |
Definition at line 122 of file GlyphRun.h.
122{ return std::cbegin(fGlyphRuns); }
◆ blob()
const SkTextBlob * sktext::GlyphRunList::blob |
( |
| ) |
const |
|
inline |
Definition at line 117 of file GlyphRun.h.
117{ return fOriginalTextBlob; }
◆ builder()
◆ canCache()
bool sktext::GlyphRunList::canCache |
( |
| ) |
const |
|
inline |
Definition at line 88 of file GlyphRun.h.
88{ return fOriginalTextBlob != nullptr; }
◆ empty()
auto sktext::GlyphRunList::empty |
( |
| ) |
const -> decltype(fGlyphRuns.empty()) |
|
inline |
Definition at line 125 of file GlyphRun.h.
125{ return fGlyphRuns.empty(); }
◆ end() [1/2]
auto sktext::GlyphRunList::end |
( |
| ) |
-> decltype(fGlyphRuns.end()) |
|
inline |
Definition at line 121 of file GlyphRun.h.
121{ return fGlyphRuns.end(); }
◆ end() [2/2]
auto sktext::GlyphRunList::end |
( |
| ) |
const -> decltype(std::cend(fGlyphRuns)) |
|
inline |
Definition at line 123 of file GlyphRun.h.
123{ return std::cend(fGlyphRuns); }
◆ hasRSXForm()
bool sktext::GlyphRunList::hasRSXForm |
( |
| ) |
const |
|
inline |
Definition at line 105 of file GlyphRun.h.
105 {
106 for (
const GlyphRun&
run : *this) {
107 if (!
run.scaledRotations().empty()) {
return true; }
108 }
109 return false;
110 }
◆ makeBlob()
Definition at line 88 of file GlyphRun.cpp.
88 {
90 for (
auto&
run : *this) {
92 if (
run.scaledRotations().empty()) {
93 if (
run.text().empty()) {
95 } else {
99 auto clusters =
run.clusters();
100 memcpy(
buffer.clusters, clusters.data(), clusters.size_bytes());
101 }
102 auto positions =
run.positions();
103 memcpy(
buffer.points(), positions.data(), positions.size_bytes());
104 } else {
108 run.scaledRotations())) {
110 }
111 }
112 auto glyphIDs =
run.glyphsIDs();
113 memcpy(
buffer.glyphs, glyphIDs.data(), glyphIDs.size_bytes());
114 }
116}
constexpr auto SkMakeZip(Ts &&... ts)
static const uint8_t buffer[]
PODArray< SkRSXform > xforms
constexpr float y() const
constexpr float x() const
◆ maxGlyphRunSize()
size_t sktext::GlyphRunList::maxGlyphRunSize |
( |
| ) |
const |
|
inline |
Definition at line 97 of file GlyphRun.h.
97 {
99 for (
const GlyphRun&
run : *this) {
101 }
103 }
auto size() const -> decltype(fGlyphRuns.size())
◆ operator[]()
auto sktext::GlyphRunList::operator[] |
( |
size_t |
i | ) |
const -> decltype(fGlyphRuns[i]) |
|
inline |
Definition at line 126 of file GlyphRun.h.
126{ return fGlyphRuns[i]; }
◆ origin()
SkPoint sktext::GlyphRunList::origin |
( |
| ) |
const |
|
inline |
◆ runCount()
size_t sktext::GlyphRunList::runCount |
( |
| ) |
const |
|
inline |
Definition at line 89 of file GlyphRun.h.
89{ return fGlyphRuns.size(); }
◆ size()
auto sktext::GlyphRunList::size |
( |
| ) |
const -> decltype(fGlyphRuns.size()) |
|
inline |
Definition at line 124 of file GlyphRun.h.
124{ return fGlyphRuns.size(); }
◆ sourceBounds()
SkRect sktext::GlyphRunList::sourceBounds |
( |
| ) |
const |
|
inline |
Definition at line 115 of file GlyphRun.h.
115{ return fSourceBounds; }
◆ sourceBoundsWithOrigin()
SkRect sktext::GlyphRunList::sourceBoundsWithOrigin |
( |
| ) |
const |
|
inline |
Definition at line 116 of file GlyphRun.h.
constexpr SkRect makeOffset(float dx, float dy) const
◆ temporaryShuntBlobNotifyAddedToCache()
void sktext::GlyphRunList::temporaryShuntBlobNotifyAddedToCache |
( |
uint32_t |
cacheID, |
|
|
SkTextBlob::PurgeDelegate |
pd |
|
) |
| const |
Definition at line 81 of file GlyphRun.cpp.
82 {
83 SkASSERT(fOriginalTextBlob !=
nullptr);
85 fOriginalTextBlob->notifyAddedToCache(cacheID, pd);
86}
◆ totalGlyphCount()
size_t sktext::GlyphRunList::totalGlyphCount |
( |
| ) |
const |
|
inline |
Definition at line 90 of file GlyphRun.h.
90 {
91 size_t glyphCount = 0;
92 for (
const GlyphRun&
run : *this) {
93 glyphCount +=
run.runSize();
94 }
95 return glyphCount;
96 }
◆ uniqueID()
uint64_t sktext::GlyphRunList::uniqueID |
( |
| ) |
const |
Definition at line 67 of file GlyphRun.cpp.
67 {
68 return fOriginalTextBlob !=
nullptr ? fOriginalTextBlob->
uniqueID()
70}
static constexpr uint32_t SK_InvalidUniqueID
uint32_t uniqueID() const
The documentation for this class was generated from the following files: