62 for (
int i = 0;
i < 1000; ++
i) {
64 for (
int j = 0; j < 1000; ++j) {
71 for (
int i = 0;
i < 1000; ++
i) {
73 for (
int j = 0; j < 1000; ++j) {
82 const SkScalar tooMuchSubpixel = 100.1f;
88 const SkScalar tinySubPixel = 100.02f;
102 mat.
setScale(smallScale, smallScale);
122 matrix.setAll(-119.34097f,
139 matrix.setAll(0.0078740157f,
154 for (
int x = 0;
x < dev.
width(); ++
x) {
185 static const struct {
213 paint.setAntiAlias(
true);
226 const uint8_t* ptr =
reinterpret_cast<const uint8_t*
>(bm.
getAddr(0,
y));
227 for (
size_t i = 0;
i <
count;
i++) {
253 SkRect dstR = { 0, 0, 16, 16 };
static void rand_matrix(SkMatrix *mat, SkRandom &rand, unsigned mask)
static void test_nan_antihair()
DEF_TEST(DrawBitmapRect, reporter)
static bool check_for_all_zeros(const SkBitmap &bm)
static void test_wacky_bitmapshader(skiatest::Reporter *reporter, int width, int height)
static void test_giantrepeat_crbug118018(skiatest::Reporter *reporter)
static void test_treatAsSprite(skiatest::Reporter *reporter)
static void create(SkBitmap *bm, SkColor color)
static void rand_size(SkISize *size, SkRandom &rand)
static const TestCase gTests[]
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorRED
bool SkTreatAsSprite(const SkMatrix &mat, const SkISize &size, const SkSamplingOptions &sampling, bool isAntiAlias)
#define REPORTER_ASSERT(r, cond,...)
void * getAddr(int x, int y) const
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
int bytesPerPixel() const
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
bool tryAllocN32Pixels(int width, int height, bool isOpaque=false)
void eraseColor(SkColor4f) const
void drawRect(const SkRect &rect, const SkPaint &paint)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void drawPath(const SkPath &path, const SkPaint &paint)
void concat(const SkMatrix &matrix)
SkMatrix & postTranslate(SkScalar dx, SkScalar dy)
SkMatrix & postRotate(SkScalar degrees, SkScalar px, SkScalar py)
SkMatrix & postScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
SkMatrix & setPerspX(SkScalar v)
SkMatrix & setTranslate(SkScalar dx, SkScalar dy)
SkMatrix & setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
SkMatrix & setPerspY(SkScalar v)
@ kPerspective_Mask
perspective SkMatrix
@ kTranslate_Mask
translation SkMatrix
@ kScale_Mask
scale SkMatrix
@ kAffine_Mask
skew or rotate SkMatrix
@ kStroke_Style
set to stroke geometry
unsigned useCenter Optional< SkMatrix > matrix
SkSamplingOptions sampling
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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)