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)
40 const DlImageFilter*
backdrop)
override;
43 void drawDashedLine(
const DlPoint& p0,
51 void drawDRRect(
const SkRRect& outer,
const SkRRect& inner)
override;
53 void drawArc(
const SkRect& oval_bounds,
56 bool use_center)
override;
60 void drawVertices(
const DlVertices* vertices,
DlBlendMode mode)
override;
64 bool render_with_attributes)
override;
69 bool render_with_attributes)
override;
75 void drawTextFrame(
const std::shared_ptr<impeller::TextFrame>& text_frame,
81 bool transparent_occluder,
87 bool render_with_attributes,
88 bool enforce_src_edges)
override;
90 unsigned int BatchedComplexity()
override;
93 unsigned int save_layer_count_ = 0;
94 unsigned int draw_text_blob_count_ = 0;
97 DisplayListMetalComplexityCalculator()
98 : ceiling_(
std::numeric_limits<unsigned
int>::
max()) {}
99 static DisplayListMetalComplexityCalculator* instance_;
101 unsigned int ceiling_;
static const int points[]
void Dispatch(DlOpReceiver &ctx) const
static float max(float r, float g, float b)
static void drawPath(SkPath &path, SkCanvas *canvas, SkColor color, const SkRect &clip, SkPaint::Cap cap, SkPaint::Join join, SkPaint::Style style, SkPathFillType fill, SkScalar strokeWidth)
drawTextBlob(r.blob.get(), r.x, r.y, r.paint)) DRAW(DrawSlug
Optional< SkRect > bounds
sk_sp< const SkImage > image
sk_sp< const SkImageFilter > backdrop
sk_sp< SkBlender > blender SkRect rect
SkSamplingOptions sampling
impeller::Scalar DlScalar
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
flutter::SaveLayerOptions SaveLayerOptions