Flutter Engine
flutter::Layer::AutoSaveLayer Class Reference

#include <layer.h>

Public Member Functions

 ~AutoSaveLayer ()
 

Static Public Member Functions

static AutoSaveLayer Create (const PaintContext &paint_context, const SkRect &bounds, const SkPaint *paint)
 
static AutoSaveLayer Create (const PaintContext &paint_context, const SkCanvas::SaveLayerRec &layer_rec)
 

Detailed Description

Definition at line 129 of file layer.h.

Constructor & Destructor Documentation

◆ ~AutoSaveLayer()

flutter::Layer::AutoSaveLayer::~AutoSaveLayer ( )

Definition at line 109 of file layer.cc.

References flutter::DrawCheckerboard().

109  {
110  if (paint_context_.checkerboard_offscreen_layers) {
111  DrawCheckerboard(paint_context_.internal_nodes_canvas, bounds_);
112  }
113  paint_context_.internal_nodes_canvas->restore();
114 }
const bool checkerboard_offscreen_layers
Definition: layer.h:123
SkCanvas * internal_nodes_canvas
Definition: layer.h:115
void DrawCheckerboard(SkCanvas *canvas, SkColor c1, SkColor c2, int size)
Definition: paint_utils.cc:28

Member Function Documentation

◆ Create() [1/2]

Layer::AutoSaveLayer flutter::Layer::AutoSaveLayer::Create ( const PaintContext paint_context,
const SkRect &  bounds,
const SkPaint *  paint 
)
static

Definition at line 96 of file layer.cc.

Referenced by flutter::BackdropFilterLayer::Paint(), flutter::ColorFilterLayer::Paint(), flutter::ImageFilterLayer::Paint(), flutter::ShaderMaskLayer::Paint(), and flutter::OpacityLayer::Paint().

99  {
100  return Layer::AutoSaveLayer(paint_context, bounds, paint);
101 }

◆ Create() [2/2]

Layer::AutoSaveLayer flutter::Layer::AutoSaveLayer::Create ( const PaintContext paint_context,
const SkCanvas::SaveLayerRec &  layer_rec 
)
static

Definition at line 103 of file layer.cc.

105  {
106  return Layer::AutoSaveLayer(paint_context, layer_rec);
107 }

The documentation for this class was generated from the following files: