Flutter Engine
The Flutter Engine
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 222 of file dl_test_snippets.h.

Member Function Documentation

◆ additional_depth()

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

Definition at line 252 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 253 of file dl_test_snippets.h.

253 {
254 return render_op_cost_override_ == 0u //
255 ? previous_cost
257 }

◆ byte_count()

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

Definition at line 246 of file dl_test_snippets.h.

246{ return sizeof(DisplayList) + byte_count_; }
flutter::DisplayList DisplayList

◆ depth_accumulated()

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

Definition at line 248 of file dl_test_snippets.h.

248 {
249 return depth_op_count_ * depth_scale + additional_depth_;
250 }

◆ depth_op_count()

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

Definition at line 251 of file dl_test_snippets.h.

251{ return depth_op_count_; }

◆ Invoke()

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

◆ is_empty()

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

Definition at line 239 of file dl_test_snippets.h.

239{ return byte_count_ == 0; }

◆ op_count()

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

Definition at line 241 of file dl_test_snippets.h.

◆ raw_byte_count()

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

Definition at line 243 of file dl_test_snippets.h.

243{ return byte_count_; }

Member Data Documentation

◆ additional_depth_

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

Definition at line 235 of file dl_test_snippets.h.

◆ byte_count_

size_t flutter::testing::DisplayListInvocation::byte_count_

Definition at line 226 of file dl_test_snippets.h.

◆ depth_op_count_

uint32_t flutter::testing::DisplayListInvocation::depth_op_count_

Definition at line 228 of file dl_test_snippets.h.

◆ invoker_

DlInvoker flutter::testing::DisplayListInvocation::invoker_

Definition at line 230 of file dl_test_snippets.h.

◆ op_count_

uint32_t flutter::testing::DisplayListInvocation::op_count_

Definition at line 225 of file dl_test_snippets.h.

◆ render_op_cost_override_

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

Definition at line 236 of file dl_test_snippets.h.


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