Flutter Engine
flutter::Layer Class Referenceabstract

#include <layer.h>

Inheritance diagram for flutter::Layer:
flutter::ChildSceneLayer flutter::ContainerLayer flutter::PerformanceOverlayLayer flutter::PictureLayer flutter::PlatformViewLayer flutter::testing::MockLayer flutter::TextureLayer flutter::BackdropFilterLayer flutter::ClipPathLayer flutter::ClipRectLayer flutter::ClipRRectLayer flutter::ColorFilterLayer flutter::MergedContainerLayer flutter::PhysicalShapeLayer flutter::ShaderMaskLayer flutter::TransformLayer

Classes

class  AutoPrerollSaveLayerState
 
class  AutoSaveLayer
 
struct  PaintContext
 

Public Member Functions

 Layer ()
 
virtual ~Layer ()
 
virtual void Preroll (PrerollContext *context, const SkMatrix &matrix)
 
virtual void Paint (PaintContext &context) const =0
 
bool needs_system_composite () const
 
void set_needs_system_composite (bool value)
 
const SkRect & paint_bounds () const
 
void set_paint_bounds (const SkRect &paint_bounds)
 
bool needs_painting () const
 
uint64_t unique_id () const
 

Detailed Description

Definition at line 71 of file layer.h.

Constructor & Destructor Documentation

◆ Layer()

flutter::Layer::Layer ( )

Definition at line 12 of file layer.cc.

References id, and ~Layer().

13  : paint_bounds_(SkRect::MakeEmpty()),
14  unique_id_(NextUniqueID()),
15  needs_system_composite_(false) {}

◆ ~Layer()

flutter::Layer::~Layer ( )
virtualdefault

Referenced by Layer().

Member Function Documentation

◆ needs_painting()

◆ needs_system_composite()

◆ Paint()

◆ paint_bounds()

◆ Preroll()

◆ set_needs_system_composite()

void flutter::Layer::set_needs_system_composite ( bool  value)
inline

Definition at line 162 of file layer.h.

References value.

Referenced by flutter::testing::MockLayer::Preroll(), flutter::ContainerLayer::PrerollChildren(), and flutter::Layer::AutoPrerollSaveLayerState::~AutoPrerollSaveLayerState().

162  {
163  needs_system_composite_ = value;
164  }
uint8_t value

◆ set_paint_bounds()

◆ unique_id()

uint64_t flutter::Layer::unique_id ( ) const
inline

Definition at line 176 of file layer.h.

References FML_DISALLOW_COPY_AND_ASSIGN.

Referenced by flutter::RasterCache::Draw(), and flutter::RasterCache::Prepare().

176 { return unique_id_; }

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