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