blob: cd96bbcf687335eeeecba8bcdcf0707ba2164d76 [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(image_subsets_get_different_uids, 128, 128, true, 5) {
5// image_subsets_get_different_uids
6void draw(SkCanvas*) {
7 SkIRect r{0, 0, 10, 10};
8 auto s1 = image->makeSubset(r);
9 auto s2 = image->makeSubset(r);
10 SkDebugf("%u\n%u\n", s1->uniqueID(), s2->uniqueID());
11}
12} // END FIDDLE