Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
ToolUtils.h File Reference
#include "include/core/SkColor.h"
#include "include/core/SkFontArguments.h"
#include "include/core/SkFontParameters.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSpan.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTypeface.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "src/base/SkRandom.h"
#include "src/base/SkTInternalLList.h"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <vector>
#include <functional>

Go to the source code of this file.

Classes

class  ToolUtils::HilbertGenerator
 
class  ToolUtils::TopoTestNode
 
class  ToolUtils::PixelIter
 
class  ToolUtils::VariationSliders
 

Namespaces

namespace  ToolUtils
 

Typedefs

using ToolUtils::PathSniffCallback = void(const SkMatrix &, const SkPath &, const SkPaint &)
 

Functions

const char * ToolUtils::alphatype_name (SkAlphaType at)
 
const char * ToolUtils::colortype_name (SkColorType ct)
 
const char * ToolUtils::colortype_depth (SkColorType ct)
 
const char * ToolUtils::tilemode_name (SkTileMode mode)
 
SkColor ToolUtils::color_to_565 (SkColor color)
 
void ToolUtils::get_text_path (const SkFont &, const void *text, size_t length, SkTextEncoding, SkPath *, const SkPoint *positions=nullptr)
 
bool ToolUtils::equal_pixels (const SkPixmap &a, const SkPixmap &b)
 
bool ToolUtils::equal_pixels (const SkBitmap &bm0, const SkBitmap &bm1)
 
bool ToolUtils::equal_pixels (const SkImage *a, const SkImage *b)
 
sk_sp< SkShaderToolUtils::create_checkerboard_shader (SkColor c1, SkColor c2, int size)
 
void ToolUtils::draw_checkerboard (SkCanvas *canvas, SkColor c1, SkColor c2, int size)
 
SkBitmap ToolUtils::create_checkerboard_bitmap (int w, int h, SkColor c1, SkColor c2, int checkSize)
 
sk_sp< SkImageToolUtils::create_checkerboard_image (int w, int h, SkColor c1, SkColor c2, int checkSize)
 
void ToolUtils::draw_checkerboard (SkCanvas *canvas)
 
int ToolUtils::make_pixmaps (SkColorType ct, SkAlphaType at, bool withMips, const SkColor4f colors[6], SkPixmap pixmaps[6], std::unique_ptr< char[]> *mem)
 
sk_sp< SkSurfaceToolUtils::makeSurface (SkCanvas *canvas, const SkImageInfo &info, const SkSurfaceProps *props)
 
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)
 
void ToolUtils::add_to_text_blob (SkTextBlobBuilder *builder, const char *text, const SkFont &font, SkScalar x, SkScalar y)
 
SkPath ToolUtils::make_star (const SkRect &bounds, int numPts, int step)
 
void ToolUtils::create_hemi_normal_map (SkBitmap *bm, const SkIRect &dst)
 
void ToolUtils::create_frustum_normal_map (SkBitmap *bm, const SkIRect &dst)
 
void ToolUtils::create_tetra_normal_map (SkBitmap *bm, const SkIRect &dst)
 
bool ToolUtils::copy_to (SkBitmap *dst, SkColorType dstColorType, const SkBitmap &src)
 
void ToolUtils::copy_to_g8 (SkBitmap *dst, const SkBitmap &src)
 
void ToolUtils::ExtractPathsFromSKP (const char filepath[], std::function< PathSniffCallback > callback)