5#include "flutter/flow/testing/mock_texture.h"
6#include "flutter/flow/layers/layer.h"
7#include "flutter/testing/display_list_testing.h"
22 for (
int y = 0;
y <
w;
y += checker_size) {
23 for (
int x = 0;
x <
h;
x += checker_size) {
24 SkPaint& cellp = ((
x +
y) & 1) == 0 ? p0 : p1;
45 src =
src.makeInset(1.0f, 1.0f);
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorGREEN
void drawRect(const SkRect &rect, const SkPaint &paint)
void setStyle(Style style)
void setColor(SkColor color)
@ kFill_Style
set to fill geometry
virtual void DrawImageRect(const sk_sp< DlImage > &image, const SkRect &src, const SkRect &dst, DlImageSampling sampling, const DlPaint *paint=nullptr, SrcRectConstraint constraint=SrcRectConstraint::kFast)=0
static sk_sp< DlImage > Make(const SkImage *image)
void Paint(PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling) override
MockTexture(int64_t textureId, const sk_sp< DlImage > &texture=nullptr)
static sk_sp< DlImage > MakeTestTexture(int w, int h, int checker_size)
#define FML_DCHECK(condition)
Optional< SkRect > bounds
SkSamplingOptions sampling
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
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 to the cache directory This is different from the persistent_cache_path in embedder h
static SkImageInfo MakeN32Premul(int width, int height)
static SkRect Make(const SkISize &size)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)