198 {
199 std::vector<SkGlyph> imagesToSend;
200 std::vector<SkGlyph> pathsToSend;
201 std::vector<SkGlyph> drawablesToSend;
203
204
206 SkGlyph maskGlyph{maskPackedGlyphID};
208
209 static constexpr uint8_t
X = 0xff;
210 static constexpr uint8_t O = 0x00;
211 uint8_t imageData[][8] = {
221 };
222 maskGlyph.setImage(&alloc, imageData);
223 imagesToSend.emplace_back(maskGlyph);
224
225
227 SkGlyph pathGlyph{pathPackedGlyphID};
230 path.addRect(pathGlyph.rect());
231 pathGlyph.setPath(&alloc, &
path,
false);
232 pathsToSend.emplace_back(pathGlyph);
233
234
236 SkGlyph drawableGlyph{drawablePackedGlyphID};
238 class TestDrawable final :
public SkDrawable {
239 public:
241
242 private:
246 return 0;
247 }
251 }
252 };
253
256 drawableGlyph.setDrawable(&alloc, drawable);
259 drawablesToSend.emplace_back(drawableGlyph);
260
261
264 auto data = writeBuffer.snapshotAsData();
265
266
272
273
276
277
282
283
288
289
294}
#define REPORTER_ASSERT(r, cond,...)
void drawRect(const SkRect &rect, const SkPaint &paint)
virtual SkRect onGetBounds()=0
virtual void onDraw(SkCanvas *)=0
virtual size_t onApproximateBytesUsed()
static void SetGlyph(SkGlyph *glyph)
bool setPathHasBeenCalled() const
bool setDrawableHasBeenCalled() const
bool setImageHasBeenCalled() const
const SkPath * path() const
SkDrawable * drawable() const
const void * image() const
static SkStrikeSpec MakeWithNoDevice(const SkFont &font, const SkPaint *paint=nullptr)
sk_sp< SkStrike > findOrCreateStrike() const
static SkGlyph * GetGlyph(SkStrike *strike, SkPackedGlyphID packedID)
static void FlattenGlyphsByType(SkWriteBuffer &buffer, SkSpan< SkGlyph > images, SkSpan< SkGlyph > paths, SkSpan< SkGlyph > drawables)
bool mergeFromBuffer(SkReadBuffer &buffer) SK_EXCLUDES(fStrikeLock)
sk_sp< SkBlender > blender SkRect rect
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
font
Font Metadata and Metrics.
std::shared_ptr< const fml::Mapping > data