Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
subset_example |
, |
|
|
512 |
, |
|
|
512 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file subset_example.cpp.
4 {
9 for (
int i = 0;
i < (
N *
N); ++
i) {
11 }
12 srand(0);
13 for (
int i = 0;
i < (
N *
N); ++
i) {
15 }
18 for (
int i = 0;
i <
N; ++
i) {
19 for (
int j = 0; j <
N; ++j) {
25 }
26 }
27}
28}
constexpr SkColor SK_ColorWHITE
void swap(sk_sp< T > &a, sk_sp< T > &b)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
SI Vec< sizeof...(Ix), T > shuffle(const Vec< N, T > &)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)