Flutter Engine
The Flutter Engine
|
Classes | |
struct | EmojiTestSample |
class | HilbertGenerator |
class | PixelIter |
class | TopoTestNode |
class | VariationSliders |
Typedefs | |
using | PathSniffCallback = void(const SkMatrix &, const SkPath &, const SkPaint &) |
Enumerations | |
enum class | EmojiFontFormat { Cbdt , Sbix , ColrV0 , Test , Svg } |
using ToolUtils::PathSniffCallback = typedef void(const SkMatrix&, const SkPath&, const SkPaint&) |
Definition at line 311 of file ToolUtils.h.
|
strong |
void ToolUtils::add_to_text_blob | ( | SkTextBlobBuilder * | builder, |
const char * | text, | ||
const SkFont & | font, | ||
SkScalar | x, | ||
SkScalar | y | ||
) |
Definition at line 228 of file ToolUtils.cpp.
void ToolUtils::add_to_text_blob_w_len | ( | SkTextBlobBuilder * | builder, |
const char * | text, | ||
size_t | len, | ||
SkTextEncoding | encoding, | ||
const SkFont & | font, | ||
SkScalar | x, | ||
SkScalar | y | ||
) |
Definition at line 213 of file ToolUtils.cpp.
const char * ToolUtils::alphatype_name | ( | SkAlphaType | at | ) |
Definition at line 55 of file ToolUtils.cpp.
Definition at line 25 of file EncodeUtils.cpp.
Map opaque colors from 8888 to 565.
Definition at line 139 of file ToolUtils.cpp.
const char * ToolUtils::colortype_depth | ( | SkColorType | ct | ) |
Definition at line 97 of file ToolUtils.cpp.
const char * ToolUtils::colortype_name | ( | SkColorType | ct | ) |
Definition at line 65 of file ToolUtils.cpp.
bool ToolUtils::copy_to | ( | SkBitmap * | dst, |
SkColorType | dstColorType, | ||
const SkBitmap & | src | ||
) |
Definition at line 394 of file ToolUtils.cpp.
Definition at line 423 of file ToolUtils.cpp.
SkBitmap ToolUtils::create_checkerboard_bitmap | ( | int | w, |
int | h, | ||
SkColor | c1, | ||
SkColor | c2, | ||
int | checkSize | ||
) |
Make it easier to create a bitmap-based checkerboard
Definition at line 159 of file ToolUtils.cpp.
sk_sp< SkImage > ToolUtils::create_checkerboard_image | ( | int | w, |
int | h, | ||
SkColor | c1, | ||
SkColor | c2, | ||
int | checkSize | ||
) |
Definition at line 168 of file ToolUtils.cpp.
Returns a newly created CheckerboardShader.
Definition at line 150 of file ToolUtils.cpp.
Definition at line 318 of file ToolUtils.cpp.
Definition at line 294 of file ToolUtils.cpp.
Definition at line 359 of file ToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::CreatePortableTypeface | ( | const char * | name, |
SkFontStyle | style | ||
) |
Returns a platform-independent text renderer.
Definition at line 187 of file FontToolUtils.cpp.
SkBitmap ToolUtils::CreateStringBitmap | ( | int | w, |
int | h, | ||
SkColor | c, | ||
int | x, | ||
int | y, | ||
int | textSize, | ||
const char * | str | ||
) |
Definition at line 206 of file FontToolUtils.cpp.
sk_sp< SkImage > ToolUtils::CreateStringImage | ( | int | w, |
int | h, | ||
SkColor | c, | ||
int | x, | ||
int | y, | ||
int | textSize, | ||
const char * | str | ||
) |
Definition at line 234 of file FontToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::CreateTestTypeface | ( | const char * | name, |
SkFontStyle | style | ||
) |
Definition at line 307 of file FontToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::CreateTypefaceFromResource | ( | const char * | resource, |
int | ttcIndex | ||
) |
Definition at line 317 of file FontToolUtils.cpp.
Definition at line 22 of file DecodeUtils.cpp.
SkFont ToolUtils::DefaultFont | ( | ) |
Definition at line 323 of file FontToolUtils.cpp.
SkFont ToolUtils::DefaultPortableFont | ( | ) |
Returns a font that has a non-empty typeface. This could change, so don't depend on things like how it looks, font metrics, etc.
Definition at line 202 of file FontToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::DefaultPortableTypeface | ( | ) |
Definition at line 195 of file FontToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::DefaultTypeface | ( | ) |
Definition at line 303 of file FontToolUtils.cpp.
|
static |
|
inline |
A default checkerboard.
Definition at line 95 of file ToolUtils.h.
void ToolUtils::draw_checkerboard | ( | SkCanvas * | canvas, |
SkColor | color1, | ||
SkColor | color2, | ||
int | checkSize | ||
) |
Draw a checkerboard pattern in the current canvas, restricted to the current clip, using SkBlendMode::kSrc.
Definition at line 174 of file ToolUtils.cpp.
EmojiTestSample ToolUtils::EmojiSample | ( | ) |
Return a color emoji typeface if available.
Definition at line 92 of file FontToolUtils.cpp.
EmojiTestSample ToolUtils::EmojiSample | ( | EmojiFontFormat | format | ) |
Return a color emoji typeface of a specific color font format if available.
Definition at line 110 of file FontToolUtils.cpp.
bool ToolUtils::EncodeImageToPngFile | ( | const char * | path, |
const SkBitmap & | src | ||
) |
Definition at line 60 of file EncodeUtils.cpp.
bool ToolUtils::EncodeImageToPngFile | ( | const char * | path, |
const SkPixmap & | src | ||
) |
Definition at line 65 of file EncodeUtils.cpp.
Definition at line 480 of file ToolUtils.cpp.
Definition at line 493 of file ToolUtils.cpp.
Returns true iff all of the pixels between the two images are identical.
If the configs differ, return false.
Definition at line 456 of file ToolUtils.cpp.
void ToolUtils::ExtractPaths | ( | const char | filepath[], |
std::function< PathSniffCallback > | callback | ||
) |
Definition at line 26 of file SvgPathExtractor.cpp.
void ToolUtils::ExtractPathsFromSKP | ( | const char | filepath[], |
std::function< PathSniffCallback > | callback | ||
) |
Definition at line 757 of file ToolUtils.cpp.
void ToolUtils::ExtractPathsFromSVG | ( | const char | filepath[], |
std::function< PathSniffCallback > | |||
) |
bool ToolUtils::FontMgrIsGDI | ( | ) |
Definition at line 289 of file FontToolUtils.cpp.
void ToolUtils::get_text_path | ( | const SkFont & | , |
const void * | text, | ||
size_t | length, | ||
SkTextEncoding | , | ||
SkPath * | , | ||
const SkPoint * | positions = nullptr |
||
) |
void ToolUtils::get_text_path | ( | const SkFont & | font, |
const void * | text, | ||
size_t | length, | ||
SkTextEncoding | encoding, | ||
SkPath * | dst, | ||
const SkPoint | pos[] | ||
) |
Definition at line 236 of file ToolUtils.cpp.
|
inline |
Definition at line 21 of file DecodeUtils.h.
Definition at line 25 of file DecodeUtils.h.
int ToolUtils::make_pixmaps | ( | SkColorType | , |
SkAlphaType | , | ||
bool | withMips, | ||
const SkColor4f | colors[6], | ||
SkPixmap | pixmaps[6], | ||
std::unique_ptr< char[]> * | mem | ||
) |
Create pixmaps to initialize a 32x32 image w/ or w/o mipmaps. Returns the number of levels (either 1 or 6). The mipmap levels will be colored as specified in 'colors'
Definition at line 181 of file ToolUtils.cpp.
Definition at line 269 of file ToolUtils.cpp.
Definition at line 175 of file TestFontMgr.cpp.
sk_sp< SkSurface > ToolUtils::makeSurface | ( | SkCanvas * | canvas, |
const SkImageInfo & | info, | ||
const SkSurfaceProps * | props | ||
) |
Definition at line 512 of file ToolUtils.cpp.
Definition at line 32 of file GpuToolUtils.cpp.
SkString ToolUtils::NameForFontFormat | ( | EmojiFontFormat | format | ) |
Return a string representation of the requeste format. Useful for suffixing test names.
Definition at line 133 of file FontToolUtils.cpp.
|
inlinestatic |
Definition at line 286 of file ToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::PlanetTypeface | ( | ) |
Definition at line 73 of file FontToolUtils.cpp.
sk_sp< SkTypeface > ToolUtils::SampleUserTypeface | ( | ) |
A simple SkUserTypeface for testing.
Definition at line 149 of file FontToolUtils.cpp.
Definition at line 247 of file FontToolUtils.cpp.
const char * ToolUtils::tilemode_name | ( | SkTileMode | mode | ) |
Definition at line 129 of file ToolUtils.cpp.
void ToolUtils::UsePortableFontMgr | ( | ) |
Definition at line 301 of file FontToolUtils.cpp.