Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
skbug_5648.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (skbug_5648, 256, 256, true, 4)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( skbug_5648  ,
256  ,
256  ,
true  ,
 
)

Definition at line 4 of file skbug_5648.cpp.

4 {
5// skbug_5648
6void draw(SkCanvas*) {
8 source.extractSubset(&bitmap, {0, 0, source.width() - 1, source.height() - 1});
9 auto img0 = bitmap.asImage();
10 auto img1 = bitmap.asImage();
11 SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID());
12}
13} // END FIDDLE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
Definition SkBitmap.cpp:453
int width() const
Definition SkBitmap.h:149
int height() const
Definition SkBitmap.h:158
SkBitmap source
Definition examples.cpp:28