Flutter Engine
The Flutter Engine
Namespaces | Functions
ToolUtils.cpp File Reference
#include "tools/ToolUtils.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkColorType.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkPathBuilder.h"
#include "include/core/SkPathTypes.h"
#include "include/core/SkPicture.h"
#include "include/core/SkPixelRef.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkPoint3.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkStream.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTextBlob.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypeface.h"
#include "include/effects/SkGradientShader.h"
#include "include/private/SkColorData.h"
#include "include/private/base/SkCPUTypes.h"
#include "include/private/base/SkTemplates.h"
#include "src/core/SkFontPriv.h"
#include "tools/SkMetaData.h"
#include <cmath>
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  ToolUtils
 

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)
 
sk_sp< SkShaderToolUtils::create_checkerboard_shader (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, SkColor c1, SkColor c2, int size)
 
int ToolUtils::make_pixmaps (SkColorType ct, SkAlphaType at, bool withMips, const SkColor4f colors[6], SkPixmap pixmaps[6], std::unique_ptr< char[]> *mem)
 
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)
 
void ToolUtils::get_text_path (const SkFont &font, const void *text, size_t length, SkTextEncoding encoding, SkPath *dst, const SkPoint pos[])
 
SkPath ToolUtils::make_star (const SkRect &bounds, int numPts, int step)
 
static void ToolUtils::norm_to_rgb (SkBitmap *bm, int x, int y, const SkVector3 &norm)
 
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)
 
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< SkSurfaceToolUtils::makeSurface (SkCanvas *canvas, const SkImageInfo &info, const SkSurfaceProps *props)
 
void ToolUtils::ExtractPathsFromSKP (const char filepath[], std::function< PathSniffCallback > callback)