Flutter Engine
The Flutter Engine
Classes | Static Public Member Functions | List of all members
SkMakeZipDetail Class Reference

#include <SkZip.h>

Static Public Member Functions

template<typename... Ts>
static constexpr auto MakeZip (Ts &&... ts)
 

Detailed Description

Definition at line 134 of file SkZip.h.

Member Function Documentation

◆ MakeZip()

template<typename... Ts>
static constexpr auto SkMakeZipDetail::MakeZip ( Ts &&...  ts)
inlinestaticconstexpr

Definition at line 186 of file SkZip.h.

186 {
187
188 // Pick the first collection that has a size, and use that for the size.
189 size_t size = PickOneSize<DecayPointerT<Ts>...>::Size(std::forward<Ts>(ts)...);
190
191#ifdef SK_DEBUG
192 // Check that all sizes are the same.
193 size_t minSize = SIZE_MAX;
194 size_t maxSize = 0;
195 for (size_t s : {Span<Ts>::Size(std::forward<Ts>(ts))...}) {
196 if (s != SIZE_MAX) {
197 minSize = std::min(minSize, s);
198 maxSize = std::max(maxSize, s);
199 }
200 }
201 SkASSERT(minSize == maxSize);
202#endif
203
204 return SkZip<ValueType<Ts>...>{size, Span<Ts>::Data(std::forward<Ts>(ts))...};
205 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
Definition: SkZip.h:25
struct MyStruct s
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48
struct PathData * Data(SkPath *path)
Definition: path_ops.cc:52
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
Definition: switches.h:259
TSize< Scalar > Size
Definition: size.h:137

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