1cb93a386Sopenharmony_ci#if 0 // Disabled until updated to use current API. 2cb93a386Sopenharmony_ci// Copyright 2019 Google LLC. 3cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 4cb93a386Sopenharmony_ci#include "tools/fiddle/examples.h" 5cb93a386Sopenharmony_ci// HASH=c6c6be3b3c137226adbb5b5af9203d27 6cb93a386Sopenharmony_ciREG_FIDDLE(RRect_MakeEmpty, 256, 90, false, 0) { 7cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) { 8cb93a386Sopenharmony_ci SkRRect rrect = SkRRect::MakeEmpty(); 9cb93a386Sopenharmony_ci SkRRect rrect2(rrect); 10cb93a386Sopenharmony_ci rrect2.inset(-20, -20); 11cb93a386Sopenharmony_ci SkPaint p; 12cb93a386Sopenharmony_ci p.setStyle(SkPaint::kStroke_Style); 13cb93a386Sopenharmony_ci p.setStrokeWidth(10); 14cb93a386Sopenharmony_ci std::string str("Type "); 15cb93a386Sopenharmony_ci str += SkRRect::kEmpty_Type == rrect2.type() ? "=" : "!"; 16cb93a386Sopenharmony_ci str += "= SkRRect::kEmpty_Type"; 17cb93a386Sopenharmony_ci canvas->drawString(str.c_str(), 20, 80, SkPaint()); 18cb93a386Sopenharmony_ci canvas->drawRRect(rrect2, p); 19cb93a386Sopenharmony_ci} 20cb93a386Sopenharmony_ci} // END FIDDLE 21cb93a386Sopenharmony_ci#endif // Disabled until updated to use current API. 22