1cb93a386Sopenharmony_ci// Copyright 2019 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_ci// HASH=a10ad8d97062bc3f40942f47e5108917
5cb93a386Sopenharmony_ciREG_FIDDLE(Rect_set, 256, 256, true, 0) {
6cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) {
7cb93a386Sopenharmony_ci    SkIRect i_rect = {3, 4, 1, 2};
8cb93a386Sopenharmony_ci    SkDebugf("i_rect: {%d, %d, %d, %d}\n", i_rect.fLeft, i_rect.fTop, i_rect.fRight, i_rect.fBottom);
9cb93a386Sopenharmony_ci    SkRect f_rect;
10cb93a386Sopenharmony_ci    f_rect.set(i_rect);
11cb93a386Sopenharmony_ci    SkDebugf("f_rect: {%g, %g, %g, %g}\n", f_rect.fLeft, f_rect.fTop, f_rect.fRight, f_rect.fBottom);
12cb93a386Sopenharmony_ci}
13cb93a386Sopenharmony_ci}  // END FIDDLE
14