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.
3 #include "tools/fiddle/examples.h"
4 REG_FIDDLE(skbug_5648, 256, 256, true, 4) {
5 // skbug_5648
draw(SkCanvas *)6 void draw(SkCanvas*) {
7     SkBitmap bitmap;
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
14