blob: c577467ff80793f916aa8b762b5248489c517285 [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});
Mike Reeddc607e32020-12-23 11:50:36 -05009 auto img0 = bitmap.asImage();
10 auto img1 = bitmap.asImage();
Hal Canary6c8422c2020-01-10 15:22:09 -050011 SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID());
12}
13} // END FIDDLE