Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
flutter::testing::DisplayListInvocation Struct Reference

#include <dl_test_snippets.h>

Public Member Functions

bool is_empty ()
 
uint32_t op_count ()
 
size_t raw_byte_count ()
 
size_t byte_count ()
 
uint32_t depth_accumulated (uint32_t depth_scale=1u)
 
uint32_t depth_op_count ()
 
uint32_t additional_depth ()
 
uint32_t adjust_render_op_depth_cost (uint32_t previous_cost)
 
void Invoke (DlOpReceiver &builder)
 

Public Attributes

uint32_t op_count_
 
size_t byte_count_
 
uint32_t depth_op_count_
 
DlInvoker invoker_
 
uint32_t additional_depth_ = 0u
 
uint32_t render_op_cost_override_ = 0u
 

Detailed Description

Definition at line 230 of file dl_test_snippets.h.

Member Function Documentation

◆ additional_depth()

uint32_t flutter::testing::DisplayListInvocation::additional_depth ( )
inline

Definition at line 260 of file dl_test_snippets.h.

◆ adjust_render_op_depth_cost()

uint32_t flutter::testing::DisplayListInvocation::adjust_render_op_depth_cost ( uint32_t  previous_cost)
inline

Definition at line 261 of file dl_test_snippets.h.

261 {
262 return render_op_cost_override_ == 0u //
263 ? previous_cost
265 }

◆ byte_count()

size_t flutter::testing::DisplayListInvocation::byte_count ( )
inline

Definition at line 254 of file dl_test_snippets.h.

254{ return sizeof(DisplayList) + byte_count_; }

◆ depth_accumulated()

uint32_t flutter::testing::DisplayListInvocation::depth_accumulated ( uint32_t  depth_scale = 1u)
inline

Definition at line 256 of file dl_test_snippets.h.

256 {
257 return depth_op_count_ * depth_scale + additional_depth_;
258 }

◆ depth_op_count()

uint32_t flutter::testing::DisplayListInvocation::depth_op_count ( )
inline

Definition at line 259 of file dl_test_snippets.h.

259{ return depth_op_count_; }

◆ Invoke()

void flutter::testing::DisplayListInvocation::Invoke ( DlOpReceiver builder)
inline

Definition at line 267 of file dl_test_snippets.h.

◆ is_empty()

bool flutter::testing::DisplayListInvocation::is_empty ( )
inline

Definition at line 247 of file dl_test_snippets.h.

247{ return byte_count_ == 0; }

◆ op_count()

uint32_t flutter::testing::DisplayListInvocation::op_count ( )
inline

Definition at line 249 of file dl_test_snippets.h.

◆ raw_byte_count()

size_t flutter::testing::DisplayListInvocation::raw_byte_count ( )
inline

Definition at line 251 of file dl_test_snippets.h.

251{ return byte_count_; }

Member Data Documentation

◆ additional_depth_

uint32_t flutter::testing::DisplayListInvocation::additional_depth_ = 0u

Definition at line 243 of file dl_test_snippets.h.

◆ byte_count_

size_t flutter::testing::DisplayListInvocation::byte_count_

Definition at line 234 of file dl_test_snippets.h.

◆ depth_op_count_

uint32_t flutter::testing::DisplayListInvocation::depth_op_count_

Definition at line 236 of file dl_test_snippets.h.

◆ invoker_

DlInvoker flutter::testing::DisplayListInvocation::invoker_

Definition at line 238 of file dl_test_snippets.h.

◆ op_count_

uint32_t flutter::testing::DisplayListInvocation::op_count_

Definition at line 233 of file dl_test_snippets.h.

◆ render_op_cost_override_

uint32_t flutter::testing::DisplayListInvocation::render_op_cost_override_ = 0u

Definition at line 244 of file dl_test_snippets.h.


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