aosp12/external/skia/docs/examples/Region_empty_constructor.cpp

12 lines
460 B
C++
Raw Permalink Normal View History

2023-01-09 17:11:35 +08:00
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=4549dcda3e0f9a41b3daee0ed37deca8
REG_FIDDLE(Region_empty_constructor, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkRegion region;
SkIRect r = region.getBounds();
SkDebugf("region bounds: {%d, %d, %d, %d}\n", r.fLeft, r.fTop, r.fRight, r.fBottom);
}
} // END FIDDLE