Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter::SaveOpBase Struct Reference

#include <dl_op_records.h>

Inheritance diagram for flutter::SaveOpBase:
flutter::DLOp flutter::SaveLayerOpBase flutter::SaveOp flutter::SaveLayerBackdropOp flutter::SaveLayerOp

Public Member Functions

 SaveOpBase ()
 
 SaveOpBase (const SaveLayerOptions &options)
 
bool save_needed (DispatchContext &ctx) const
 
- Public Member Functions inherited from flutter::DLOp
DisplayListCompare equals (const DLOp *other) const
 

Public Attributes

SaveLayerOptions options
 
int restore_index
 
uint32_t total_content_depth
 
- Public Attributes inherited from flutter::DLOp
DisplayListOpType type: 8
 
uint32_t size: 24
 

Static Public Attributes

static constexpr uint32_t kDepthInc = 0
 
static constexpr uint32_t kRenderOpInc = 1
 
- Static Public Attributes inherited from flutter::DLOp
static constexpr uint32_t kDepthInc = 0
 
static constexpr uint32_t kRenderOpInc = 0
 

Detailed Description

Definition at line 319 of file dl_op_records.h.

Constructor & Destructor Documentation

◆ SaveOpBase() [1/2]

flutter::SaveOpBase::SaveOpBase ( )
inline

Definition at line 323 of file dl_op_records.h.

323: options(), restore_index(0) {}
SaveLayerOptions options

◆ SaveOpBase() [2/2]

flutter::SaveOpBase::SaveOpBase ( const SaveLayerOptions options)
inlineexplicit

Definition at line 325 of file dl_op_records.h.

Member Function Documentation

◆ save_needed()

bool flutter::SaveOpBase::save_needed ( DispatchContext ctx) const
inline

Definition at line 336 of file dl_op_records.h.

336 {
337 bool needed = ctx.next_render_index <= restore_index;
338 ctx.save_infos.emplace_back(ctx.next_restore_index, needed);
339 ctx.next_restore_index = restore_index;
340 return needed;
341 }

Member Data Documentation

◆ kDepthInc

constexpr uint32_t flutter::SaveOpBase::kDepthInc = 0
staticconstexpr

Definition at line 320 of file dl_op_records.h.

◆ kRenderOpInc

constexpr uint32_t flutter::SaveOpBase::kRenderOpInc = 1
staticconstexpr

Definition at line 321 of file dl_op_records.h.

◆ options

SaveLayerOptions flutter::SaveOpBase::options

Definition at line 332 of file dl_op_records.h.

◆ restore_index

int flutter::SaveOpBase::restore_index

Definition at line 333 of file dl_op_records.h.

◆ total_content_depth

uint32_t flutter::SaveOpBase::total_content_depth

Definition at line 334 of file dl_op_records.h.


The documentation for this struct was generated from the following file: