blob: d2984696406e9ac2cdfac7a48914a4562faa7e93 [file] [log] [blame]
Hal Canary6c8422c2020-01-10 15:22:09 -05001// 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"
4REG_FIDDLE(skbug_5648, 256, 256, true, 4) {
5// skbug_5648
6void draw(SkCanvas*) {
7 SkBitmap bitmap;
8 source.extractSubset(&bitmap, {0, 0, source.width() - 1, source.height() - 1});
9 auto img0 = SkImage::MakeFromBitmap(bitmap);
10 auto img1 = SkImage::MakeFromBitmap(bitmap);
11 SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID());
12}
13} // END FIDDLE