6c8422c671
ignore offscreen, srgb, and animated fiddles for now. Change-Id: I923131b684865698e6cda138b004930e11f504d5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/263713 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
13 lines
469 B
C++
13 lines
469 B
C++
// Copyright 2020 Google LLC.
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
#include "tools/fiddle/examples.h"
|
|
REG_FIDDLE(image_subsets_get_different_uids, 128, 128, true, 5) {
|
|
// image_subsets_get_different_uids
|
|
void draw(SkCanvas*) {
|
|
SkIRect r{0, 0, 10, 10};
|
|
auto s1 = image->makeSubset(r);
|
|
auto s2 = image->makeSubset(r);
|
|
SkDebugf("%u\n%u\n", s1->uniqueID(), s2->uniqueID());
|
|
}
|
|
} // END FIDDLE
|