5#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
6#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
8#include "flutter/display_list/benchmarking/dl_complexity_helper.h"
18 MetalHelper helper(ceiling_);
20 return helper.ComplexityScore();
25 return complexity_score > 200000u;
35 explicit MetalHelper(
unsigned int ceiling)
38 void saveLayer(
const SkRect& bounds,
40 const DlImageFilter* backdrop)
override;
43 void drawRect(
const SkRect& rect)
override;
44 void drawOval(
const SkRect& bounds)
override;
46 void drawRRect(
const SkRRect& rrect)
override;
47 void drawDRRect(
const SkRRect& outer,
const SkRRect& inner)
override;
49 void drawArc(
const SkRect& oval_bounds,
52 bool use_center)
override;
56 void drawVertices(
const DlVertices* vertices,
DlBlendMode mode)
override;
60 bool render_with_attributes)
override;
65 bool render_with_attributes)
override;
71 void drawTextFrame(
const std::shared_ptr<impeller::TextFrame>& text_frame,
77 bool transparent_occluder,
83 bool render_with_attributes,
84 bool enforce_src_edges)
override;
86 unsigned int BatchedComplexity()
override;
89 unsigned int save_layer_count_ = 0;
90 unsigned int draw_text_blob_count_ = 0;
93 DisplayListMetalComplexityCalculator()
94 : ceiling_(
std::numeric_limits<unsigned
int>::
max()) {}
95 static DisplayListMetalComplexityCalculator* instance_;
97 unsigned int ceiling_;
static const int points[]
static SkScalar center(float pos0, float pos1)
Type::kYUV Type::kRGBA() int(0.7 *637)
void Dispatch(DlOpReceiver &ctx) const
static float max(float r, float g, float b)
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
it will be possible to load the file into Perfetto s trace viewer 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 mode
it will be possible to load the file into Perfetto s trace viewer 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