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

Go to the source code of this file.

Functions

 REG_FIDDLE (Picture_uniqueID, 256, 256, true, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Picture_uniqueID  ,
256  ,
256  ,
true  ,
 
)

Definition at line 4 of file Picture_uniqueID.cpp.

4 {
5void draw(SkCanvas* canvas) {
6 SkPictureRecorder recorder;
7 recorder.beginRecording({0, 0, 0, 0});
9 SkDebugf("empty picture id = %u\n", picture->uniqueID());
10 sk_sp<SkPicture> placeholder = SkPicture::MakePlaceholder({0, 0, 0, 0});
11 SkDebugf("placeholder id = %u\n", placeholder->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
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
uint32_t uniqueID() const
Definition: SkPicture.h:155
static sk_sp< SkPicture > MakePlaceholder(SkRect cull)
Definition: SkPicture.cpp:337
sk_sp< const SkPicture > picture
Definition: SkRecords.h:299