5#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
6#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
18 GLHelper helper(ceiling_);
20 return helper.ComplexityScore();
25 return complexity_score > 200000u;
35 explicit GLHelper(
unsigned int ceiling)
38 void saveLayer(
const DlRect& bounds,
39 const SaveLayerOptions options,
40 const DlImageFilter* backdrop,
41 std::optional<int64_t> backdrop_id)
override;
44 void drawDashedLine(
const DlPoint& p0,
48 void drawRect(
const DlRect& rect)
override;
49 void drawOval(
const DlRect& bounds)
override;
51 void drawRoundRect(
const DlRoundRect& rrect)
override;
55 void drawPath(
const DlPath&
path)
override;
56 void drawArc(
const DlRect& oval_bounds,
63 void drawVertices(
const std::shared_ptr<DlVertices>& vertices,
65 void drawImage(
const sk_sp<DlImage>
image,
68 bool render_with_attributes)
override;
69 void drawImageNine(
const sk_sp<DlImage>
image,
73 bool render_with_attributes)
override;
74 void drawDisplayList(
const sk_sp<DisplayList> display_list,
76 void drawText(
const std::shared_ptr<DlText>&
text,
79 void drawShadow(
const DlPath&
path,
82 bool transparent_occluder,
88 bool render_with_attributes,
89 bool enforce_src_edges)
override;
91 unsigned int BatchedComplexity()
override;
94 unsigned int save_layer_count_ = 0;
95 unsigned int draw_text_count_ = 0;
98 DisplayListGLComplexityCalculator()
99 : ceiling_(
std::numeric_limits<unsigned int>::max()) {}
100 static DisplayListGLComplexityCalculator* instance_;
102 unsigned int ceiling_;
unsigned int Compute(const DisplayList *display_list) override
void SetComplexityCeiling(unsigned int ceiling) override
bool ShouldBeCached(unsigned int complexity_score) override
static DisplayListGLComplexityCalculator * GetInstance()
void Dispatch(DlOpReceiver &ctx) const
FlutterVulkanImage * image
impeller::Scalar DlScalar
impeller::RoundRect DlRoundRect
impeller::ISize32 DlISize
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
impeller::RoundSuperellipse DlRoundSuperellipse
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
impeller::IRect32 DlIRect
impeller::BlendMode DlBlendMode
std::vector< Point > points