blob: b3cb84f31bd9cca2cbaf505f6dbcd4188434f747 [file] [log] [blame]
Hal Canary83c2f702019-03-07 14:53:03 -05001// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3#include "fiddle/examples.h"
4// HASH=9894bfb476c78a8f6c8f49fbbca3d50d
5REG_FIDDLE(Canvas_131, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
7 SkDebugf("clip is%s rect\n", canvas->isClipRect() ? "" : " not");
8 canvas->clipRect({0, 0, 0, 0});
9 SkDebugf("clip is%s rect\n", canvas->isClipRect() ? "" : " not");
10}
11} // END FIDDLE