1cb93a386Sopenharmony_ci// Copyright 2020 Google LLC.
2cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3cb93a386Sopenharmony_ci#include "tools/fiddle/examples.h"
4cb93a386Sopenharmony_ciREG_FIDDLE(image_subsets_get_different_uids, 128, 128, true, 5) {
5cb93a386Sopenharmony_ci// image_subsets_get_different_uids
6cb93a386Sopenharmony_civoid draw(SkCanvas*) {
7cb93a386Sopenharmony_ci    SkIRect r{0, 0, 10, 10};
8cb93a386Sopenharmony_ci    auto s1 = image->makeSubset(r);
9cb93a386Sopenharmony_ci    auto s2 = image->makeSubset(r);
10cb93a386Sopenharmony_ci    SkDebugf("%u\n%u\n", s1->uniqueID(), s2->uniqueID());
11cb93a386Sopenharmony_ci}
12cb93a386Sopenharmony_ci}  // END FIDDLE
13