Flutter Engine
 
Loading...
Searching...
No Matches
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 237 of file dl_test_snippets.h.

Member Function Documentation

◆ additional_depth()

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

Definition at line 267 of file dl_test_snippets.h.

References additional_depth_.

◆ adjust_render_op_depth_cost()

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

Definition at line 268 of file dl_test_snippets.h.

268 {
269 return render_op_cost_override_ == 0u //
270 ? previous_cost
272 }

References render_op_cost_override_.

Referenced by flutter::testing::DisplayListTestBase< BaseT >::Build().

◆ byte_count()

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

Definition at line 261 of file dl_test_snippets.h.

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

References byte_count_.

◆ depth_accumulated()

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

◆ depth_op_count()

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

Definition at line 266 of file dl_test_snippets.h.

266{ return depth_op_count_; }

References depth_op_count_.

◆ Invoke()

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

◆ is_empty()

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

Definition at line 254 of file dl_test_snippets.h.

254{ return byte_count_ == 0; }

References byte_count_.

◆ op_count()

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

◆ raw_byte_count()

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

Definition at line 258 of file dl_test_snippets.h.

258{ return byte_count_; }

References byte_count_.

Referenced by flutter::testing::DisplayListTestBase< BaseT >::Build().

Member Data Documentation

◆ additional_depth_

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

Definition at line 250 of file dl_test_snippets.h.

Referenced by additional_depth(), and depth_accumulated().

◆ byte_count_

size_t flutter::testing::DisplayListInvocation::byte_count_

Definition at line 241 of file dl_test_snippets.h.

Referenced by byte_count(), is_empty(), and raw_byte_count().

◆ depth_op_count_

uint32_t flutter::testing::DisplayListInvocation::depth_op_count_

Definition at line 243 of file dl_test_snippets.h.

Referenced by depth_accumulated(), and depth_op_count().

◆ invoker_

DlInvoker flutter::testing::DisplayListInvocation::invoker_

Definition at line 245 of file dl_test_snippets.h.

Referenced by Invoke().

◆ op_count_

uint32_t flutter::testing::DisplayListInvocation::op_count_

Definition at line 240 of file dl_test_snippets.h.

Referenced by op_count().

◆ render_op_cost_override_

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

Definition at line 251 of file dl_test_snippets.h.

Referenced by adjust_render_op_depth_cost().


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