Flutter Engine
The Flutter Engine
Functions
image_subsets_get_different_uids.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (image_subsets_get_different_uids, 128, 128, true, 5)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( image_subsets_get_different_uids  ,
128  ,
128  ,
true  ,
 
)

Definition at line 4 of file image_subsets_get_different_uids.cpp.

4 {
5// image_subsets_get_different_uids
6void draw(SkCanvas*) {
7 SkIRect r{0, 0, 10, 10};
8 auto s1 = image->makeSubset(nullptr, r);
9 auto s2 = image->makeSubset(nullptr, r);
10 SkDebugf("%u\n%u\n", s1->uniqueID(), s2->uniqueID());
11}
12} // 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
virtual sk_sp< SkImage > makeSubset(GrDirectContext *direct, const SkIRect &subset) const =0
sk_sp< const SkImage > image
Definition: SkRecords.h:269
Definition: SkRect.h:32