Go to the source code of this file.
◆ CreateDiffCanvasBench()
Definition at line 255 of file SkGlyphCacheBench.cpp.
256 {
257 return new DiffCanvasBench(std::move(
name), std::move(dataSrc));
258}
DEF_SWITCHES_START aot vmservice shared library name
◆ DEF_BENCH()
DEF_BENCH |
( |
return |
CreateDiffCanvasBenchSkString("SkDiffBench-lorem_ipsum"),[](){ return GetResourceAsStream("diff_canvas_traces/lorem_ipsum.trace");} | ) |
|
◆ do_font_stuff()
static void do_font_stuff |
( |
SkFont * |
font | ) |
|
|
static |
Definition at line 27 of file SkGlyphCacheBench.cpp.
27 {
35 for (int c = ' '; c < 'z'; c++) {
37 }
38 constexpr size_t glyphCount = 'z' - ' ';
41 for (int lookups = 0; lookups < 10; lookups++) {
42 (void)
images.glyphs(glyphIDs);
43 }
44 }
45}
@ kUnknown_SkPixelGeometry
static const SkMatrix & I()
static SkStrikeSpec MakeMask(const SkFont &font, const SkPaint &paint, const SkSurfaceProps &surfaceProps, SkScalerContextFlags scalerContextFlags, const SkMatrix &deviceMatrix)
std::array< MockImage, 3 > images
font
Font Metadata and Metrics.