7#include "gtest/gtest.h"
12TEST(DisplayListCanvas, GetShadowBoundsScaleTranslate) {
20 EXPECT_FLOAT_EQ(shadow_bounds.
GetLeft(), 96.333336f);
21 EXPECT_FLOAT_EQ(shadow_bounds.
GetTop(), 97.761909f);
22 EXPECT_FLOAT_EQ(shadow_bounds.
GetRight(), 203.66667f);
23 EXPECT_FLOAT_EQ(shadow_bounds.
GetBottom(), 205.09525f);
26TEST(DisplayListCanvas, GetShadowBoundsScaleTranslateRotate) {
35 EXPECT_FLOAT_EQ(shadow_bounds.
GetLeft(), 97.343491f);
36 EXPECT_FLOAT_EQ(shadow_bounds.
GetTop(), 97.343491f);
37 EXPECT_FLOAT_EQ(shadow_bounds.
GetRight(), 204.67682f);
38 EXPECT_FLOAT_EQ(shadow_bounds.
GetBottom(), 204.67682f);
41TEST(DisplayListCanvas, GetShadowBoundsScaleTranslatePerspective) {
50 EXPECT_FLOAT_EQ(shadow_bounds.
GetLeft(), 96.535324f);
51 EXPECT_FLOAT_EQ(shadow_bounds.
GetTop(), 90.253288f);
52 EXPECT_FLOAT_EQ(shadow_bounds.
GetRight(), 204.15054f);
53 EXPECT_FLOAT_EQ(shadow_bounds.
GetBottom(), 223.3252f);
static DlRect ComputeShadowBounds(const DlPath &path, float elevation, DlScalar dpr, const DlMatrix &ctm)
Compute the local coverage for a |DrawShadow| operation using the given parameters (excluding the col...
static DlPath MakeRectLTRB(DlScalar left, DlScalar top, DlScalar right, DlScalar bottom)
TEST(NativeAssetsManagerTest, NoAvailableAssets)
impeller::Degrees DlDegrees
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
A 4x4 matrix using column-major storage.
static constexpr Matrix MakeTranslateScale(const Vector3 &s, const Vector3 &t)
static Matrix MakeRotationZ(Radians r)
constexpr auto GetBottom() const
constexpr auto GetTop() const
constexpr auto GetLeft() const
constexpr auto GetRight() const