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=b30d4780475d113a7fed3637af7f0db1 5cb93a386Sopenharmony_ciREG_FIDDLE(IPoint_minus_operator, 256, 256, true, 0) { 6cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) { 7cb93a386Sopenharmony_ci SkIPoint test[] = { {0, -0}, {-1, -2}, 8cb93a386Sopenharmony_ci { SK_MaxS32, SK_MinS32 }, 9cb93a386Sopenharmony_ci { SK_NaN32, SK_NaN32 } }; 10cb93a386Sopenharmony_ci for (const SkIPoint& pt : test) { 11cb93a386Sopenharmony_ci SkIPoint negPt = -pt; 12cb93a386Sopenharmony_ci SkDebugf("pt: %d, %d negate: %d, %d\n", pt.fX, pt.fY, negPt.fX, negPt.fY); 13cb93a386Sopenharmony_ci } 14cb93a386Sopenharmony_ci} 15cb93a386Sopenharmony_ci} // END FIDDLE 16