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=0ade3971c1d2616564992e286966ec8a
5cb93a386Sopenharmony_ciREG_FIDDLE(IRect_MakeEmpty, 256, 256, true, 0) {
6cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) {
7cb93a386Sopenharmony_ci    SkIRect rect = SkIRect::MakeEmpty();
8cb93a386Sopenharmony_ci    SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
9cb93a386Sopenharmony_ci    rect.offset(10, 10);
10cb93a386Sopenharmony_ci    SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
11cb93a386Sopenharmony_ci    rect.inset(10, 10);
12cb93a386Sopenharmony_ci    SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
13cb93a386Sopenharmony_ci    rect.outset(20, 20);
14cb93a386Sopenharmony_ci    SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
15cb93a386Sopenharmony_ci}
16cb93a386Sopenharmony_ci}  // END FIDDLE
17