Flutter Engine
The Flutter Engine
|
#include "include/core/SkMatrix.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/ganesh/geometry/GrQuad.h"
#include "src/gpu/ganesh/geometry/GrQuadUtils.h"
#include "tests/Test.h"
Go to the source code of this file.
Macros | |
#define | ASSERT(cond) REPORTER_ASSERT(r, cond) |
#define | ASSERTF(cond, ...) REPORTER_ASSERT(r, cond, __VA_ARGS__) |
#define | TEST(name) DEF_TEST(GrQuadCrop##name, r) |
#define | ASSERT_NEARLY_EQUAL(expected, actual) |
Functions | |
static void | run_crop_axis_aligned_test (skiatest::Reporter *r, const SkRect &clipRect, GrAA clipAA, const SkMatrix &viewMatrix, const SkMatrix *localMatrix) |
static void | run_crop_fully_covered_test (skiatest::Reporter *r, GrAA clipAA, const SkMatrix &viewMatrix, const SkMatrix *localMatrix) |
static void | test_axis_aligned_all_clips (skiatest::Reporter *r, const SkMatrix &viewMatrix, const SkMatrix *localMatrix) |
static void | test_axis_aligned (skiatest::Reporter *r, const SkMatrix &viewMatrix) |
static void | test_crop_fully_covered (skiatest::Reporter *r, const SkMatrix &viewMatrix) |
TEST (AxisAligned) | |
TEST (FullyCovered) | |
Variables | |
static const SkRect | kDrawRect = SkRect::MakeLTRB(-5.f, -6.f, 10.f, 11.f) |
#define ASSERT | ( | cond | ) | REPORTER_ASSERT(r, cond) |
Definition at line 18 of file GrQuadCropTest.cpp.
#define ASSERT_NEARLY_EQUAL | ( | expected, | |
actual | |||
) |
Definition at line 21 of file GrQuadCropTest.cpp.
#define ASSERTF | ( | cond, | |
... | |||
) | REPORTER_ASSERT(r, cond, __VA_ARGS__) |
Definition at line 19 of file GrQuadCropTest.cpp.
Definition at line 20 of file GrQuadCropTest.cpp.
|
static |
Definition at line 29 of file GrQuadCropTest.cpp.
|
static |
Definition at line 103 of file GrQuadCropTest.cpp.
TEST | ( | AxisAligned | ) |
Definition at line 248 of file GrQuadCropTest.cpp.
TEST | ( | FullyCovered | ) |
Definition at line 262 of file GrQuadCropTest.cpp.
|
static |
Definition at line 212 of file GrQuadCropTest.cpp.
|
static |
Definition at line 182 of file GrQuadCropTest.cpp.
|
static |
Definition at line 228 of file GrQuadCropTest.cpp.
|
static |
Definition at line 27 of file GrQuadCropTest.cpp.