Flutter Engine
The Flutter Engine
skbug_5648.cpp
Go to the documentation of this file.
1// Copyright 2020 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4REG_FIDDLE(skbug_5648, 256, 256, true, 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
Definition: bitmap.py:1
REG_FIDDLE(skbug_5648, 256, 256, true, 4)
Definition: skbug_5648.cpp:4