Flutter Engine
The Flutter Engine
Functions
Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star, 256, 256, true, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star  ,
256  ,
256  ,
true  ,
 
)

Definition at line 4 of file Canvas_SaveLayerRec_const_SkRect_star_const_SkPaint_star.cpp.

4 {
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
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