5#ifndef FLUTTER_DISPLAY_LIST_GEOMETRY_DL_GEOMETRY_TYPES_H_
6#define FLUTTER_DISPLAY_LIST_GEOMETRY_DL_GEOMETRY_TYPES_H_
8#include "flutter/impeller/geometry/matrix.h"
9#include "flutter/impeller/geometry/rect.h"
10#include "flutter/impeller/geometry/scalar.h"
12#include "flutter/third_party/skia/include/core/SkM44.h"
13#include "flutter/third_party/skia/include/core/SkMatrix.h"
14#include "flutter/third_party/skia/include/core/SkRect.h"
15#include "flutter/third_party/skia/include/core/SkSize.h"
39 return *
reinterpret_cast<const DlPoint*
>(&point);
43 return *
reinterpret_cast<const DlRect*
>(&
rect);
55 0.0f, 0.0f, 1.0f, 0.0f,
63 matrix.getColMajor(dl_matrix.
m);
68 return *
reinterpret_cast<const SkPoint*
>(&point);
72 return *
reinterpret_cast<const SkRect*
>(&
rect);
static SkM44 ColMajor(const SkScalar c[16])
static constexpr int kMScaleX
horizontal scale factor
static constexpr int kMTransY
vertical translation
static constexpr int kMPersp1
input y perspective factor
static SkMatrix MakeAll(SkScalar scaleX, SkScalar skewX, SkScalar transX, SkScalar skewY, SkScalar scaleY, SkScalar transY, SkScalar pers0, SkScalar pers1, SkScalar pers2)
static constexpr int kMPersp0
input x perspective factor
static constexpr int kMPersp2
perspective bias
static constexpr int kMTransX
horizontal translation
static constexpr int kMSkewY
vertical skew factor
static constexpr int kMScaleY
vertical scale factor
static constexpr int kMSkewX
horizontal skew factor
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< SkBlender > blender SkRect rect
impeller::Scalar DlScalar
constexpr DlMatrix ToDlMatrix(const SkMatrix &matrix)
const SkPoint & ToSkPoint(const DlPoint &point)
const DlISize & ToDlISize(const SkISize &size)
const DlPoint & ToDlPoint(const SkPoint &point)
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 SkM44 ToSkM44(const DlMatrix &matrix)
const DlRect & ToDlRect(const SkRect &rect)
constexpr SkMatrix ToSkMatrix(const DlMatrix &matrix)
const SkRect & ToSkRect(const DlRect &rect)
const SkISize & ToSkISize(const DlISize &size)
TPoint< int32_t > IPoint32
SK_API sk_sp< PrecompileColorFilter > Matrix()
A 4x4 matrix using column-major storage.
static constexpr Matrix MakeColumn(Scalar m0, Scalar m1, Scalar m2, Scalar m3, Scalar m4, Scalar m5, Scalar m6, Scalar m7, Scalar m8, Scalar m9, Scalar m10, Scalar m11, Scalar m12, Scalar m13, Scalar m14, Scalar m15)