Flutter Engine
The Flutter Engine
Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star.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.
4REG_FIDDLE(Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star, 256, 256, true, 0) {
5void draw(SkCanvas* canvas) {
7 SkCanvas::SaveLayerRec rec2(nullptr, nullptr);
8 SkDebugf("rec1 %c= rec2\n", rec1.fBounds == rec2.fBounds
9 && rec1.fPaint == rec2.fPaint
10 && rec1.fBackdrop == rec2.fBackdrop
11 && rec1.fSaveLayerFlags == rec2.fSaveLayerFlags ? '=' : '!');
12}
13} // END FIDDLE
REG_FIDDLE(Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star, 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)
Definition: aaclip.cpp:27
const SkRect * fBounds
Definition: SkCanvas.h:740
const SkImageFilter * fBackdrop
Definition: SkCanvas.h:753
const SkPaint * fPaint
Definition: SkCanvas.h:743
SaveLayerFlags fSaveLayerFlags
Definition: SkCanvas.h:763