Flutter Engine
flutter::Layer::AutoPrerollSaveLayerState Class Reference

#include <layer.h>

Public Member Functions

 ~AutoPrerollSaveLayerState ()
 

Static Public Member Functions

static AutoPrerollSaveLayerState Create (PrerollContext *preroll_context, bool save_layer_is_active=true, bool layer_itself_performs_readback=false)
 

Detailed Description

Definition at line 83 of file layer.h.

Constructor & Destructor Documentation

◆ ~AutoPrerollSaveLayerState()

flutter::Layer::AutoPrerollSaveLayerState::~AutoPrerollSaveLayerState ( )

Definition at line 51 of file layer.cc.

References flutter::SceneUpdateContext::Frame::AddPaintLayer(), FML_DCHECK, flutter::Layer::needs_system_composite(), flutter::Layer::paint_bounds(), and flutter::Layer::set_needs_system_composite().

51  {
52  if (save_layer_is_active_) {
53  preroll_context_->surface_needs_readback =
54  (prev_surface_needs_readback_ || layer_itself_performs_readback_);
55  }
56 }
bool surface_needs_readback
Definition: layer.h:50

Member Function Documentation

◆ Create()

Layer::AutoPrerollSaveLayerState flutter::Layer::AutoPrerollSaveLayerState::Create ( PrerollContext preroll_context,
bool  save_layer_is_active = true,
bool  layer_itself_performs_readback = false 
)
static

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