Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Canvas_getLocalClipBounds_2.cpp
Go to the documentation of this file.
1// 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.
4// HASH=85496614e90c66b020f8a70db8d06f4a
5REG_FIDDLE(Canvas_getLocalClipBounds_2, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
7 SkCanvas local(256, 256);
8 canvas = &local;
9 SkRect bounds;
10 SkDebugf("local bounds empty = %s\n", canvas->getLocalClipBounds(&bounds)
11 ? "false" : "true");
12 SkPath path;
13 canvas->clipPath(path);
14 SkDebugf("local bounds empty = %s\n", canvas->getLocalClipBounds(&bounds)
15 ? "false" : "true");
16}
17} // END FIDDLE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
SkRect getLocalClipBounds() const
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60