6 auto debugster = [](
const SkRect&
test) ->
void {
7 SkRect negZero = {-0.0f, -0.0f, 2, 2};
8 SkDebugf(
"{%g, %g, %g, %g} %c= {%g, %g, %g, %g} %s numerically equal\n",
10 test == negZero ?
'=' :
'!',
14 "and are" :
"yet are not");
16 SkRect tests[] = {{0, 0, 2, 2}, {-0, -0, 2, 2}, {0.0f, 0.0f, 2, 2}};
REG_FIDDLE(Rect_equal_operator, 256, 256, true, 0)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkBlender > blender SkRect rect
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
SkScalar fTop
smaller y-axis bounds