186 {
188
189 const SkSize scaledSize = [&]() {
191
197 } else {
199 }
200 }
203
204
205 static const SkScalar kMaxTileArea = 2048 * 2048;
207 if (tileArea > kMaxTileArea) {
209 size.set(
size.width() * clampScale,
size.height() * clampScale);
210 }
211
212
213
214 if (maxTextureSize) {
215 if (
size.width() > maxTextureSize ||
size.height() > maxTextureSize) {
219 }
220 }
222 }();
223
226 return {false, {}, {}, {}, {}};
227 }
228
235
236 return {true,
241}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
@ kRGBA_F16Norm_SkColorType
pixel with half floats in [0,1] for red, green, blue, alpha;
static bool SkIsFinite(T x, Pack... values)
static int SkColorTypeMaxBitsPerChannel(SkColorType ct)
static sk_sp< SkColorSpace > ref_or_srgb(SkColorSpace *cs)
#define SkScalarFloorToScalar(x)
static bool SkScalarNearlyZero(SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
@ kUnknown_SkPixelGeometry
static SkScalar center(float pos0, float pos1)
static SkScalar DifferentialAreaScale(const SkMatrix &m, const SkPoint &p)
static SkMatrix RectToRect(const SkRect &src, const SkRect &dst, ScaleToFit mode=kFill_ScaleToFit)
bool decomposeScale(SkSize *scale, SkMatrix *remaining=nullptr) const
SkSurfaceProps cloneWithPixelGeometry(SkPixelGeometry newPixelGeometry) const
static float max(float r, float g, float b)
Optional< SkRect > bounds
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
constexpr int32_t width() const
constexpr int32_t height() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
static SkRect MakeIWH(int w, int h)