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(skbug_5648, 256, 256, true, 4) { |
| 5 | // skbug_5648 |
| 6 | void draw(SkCanvas*) { |
| 7 | SkBitmap bitmap; |
| 8 | source.extractSubset(&bitmap, {0, 0, source.width() - 1, source.height() - 1}); |
| 9 | auto img0 = SkImage::MakeFromBitmap(bitmap); |
| 10 | auto img1 = SkImage::MakeFromBitmap(bitmap); |
| 11 | SkDebugf("%u\n%u\n", img0->uniqueID(), img1->uniqueID()); |
| 12 | } |
| 13 | } // END FIDDLE |