Hal Canary | 6c8422c | 2020-01-10 15:22:09 -0500 | [diff] [blame] | 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(image_subsets_get_different_uids, 128, 128, true, 5) { |
| 5 | // image_subsets_get_different_uids |
| 6 | void 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 |