Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Picture_uniqueID.cpp
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4// HASH=8e4257245c988c600410fe4fd7293f07
5REG_FIDDLE(Picture_uniqueID, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
7 SkPictureRecorder recorder;
8 recorder.beginRecording({0, 0, 0, 0});
10 SkDebugf("empty picture id = %u\n", picture->uniqueID());
11 sk_sp<SkPicture> placeholder = SkPicture::MakePlaceholder({0, 0, 0, 0});
12 SkDebugf("placeholder id = %u\n", placeholder->uniqueID());
13}
14} // 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)
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60