Flutter Engine
The Flutter Engine
|
#include "include/core/SkMatrix.h"
#include "include/core/SkPath.h"
#include "include/core/SkPathTypes.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRRect.h"
#include "include/core/SkRect.h"
#include "include/core/SkRegion.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "src/base/SkAutoMalloc.h"
#include "src/base/SkRandom.h"
#include "src/core/SkScan.h"
#include "tests/Test.h"
#include <array>
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
Macros | |
#define | TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) |
#define | TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) |
#define | TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) |
Enumerations | |
enum | { W = 256 , H = 256 } |
Functions | |
static void | Union (SkRegion *rgn, const SkIRect &rect) |
static void | test_fromchrome (skiatest::Reporter *reporter) |
static void | test_empties (skiatest::Reporter *reporter) |
static SkIRect | randRect (SkRandom &rand) |
static void | randRgn (SkRandom &rand, SkRegion *rgn, int n) |
static bool | slow_contains (const SkRegion &outer, const SkRegion &inner) |
static bool | slow_contains (const SkRegion &outer, const SkIRect &r) |
static bool | slow_intersects (const SkRegion &outer, const SkRegion &inner) |
static void | test_contains_iter (skiatest::Reporter *reporter, const SkRegion &rgn) |
static void | contains_proc (skiatest::Reporter *reporter, const SkRegion &a, const SkRegion &b) |
static void | test_intersects_iter (skiatest::Reporter *reporter, const SkRegion &rgn) |
static void | intersects_proc (skiatest::Reporter *reporter, const SkRegion &a, const SkRegion &b) |
static void | test_proc (skiatest::Reporter *reporter, void(*proc)(skiatest::Reporter *, const SkRegion &a, const SkRegion &)) |
static void | rand_rect (SkIRect *rect, SkRandom &rand) |
static bool | test_rects (const SkIRect rect[], int count) |
DEF_TEST (Region, reporter) | |
static void | test_write (const SkRegion ®ion, skiatest::Reporter *r) |
DEF_TEST (Region_writeToMemory, r) | |
DEF_TEST (Region_readFromMemory_bad, r) | |
DEF_TEST (region_toobig, reporter) | |
DEF_TEST (region_inverse_union_skbug_7491, reporter) | |
DEF_TEST (giant_path_region, reporter) | |
DEF_TEST (rrect_region_crbug_850350, reporter) | |
DEF_TEST (region_bug_chromium_873051, reporter) | |
DEF_TEST (region_empty_iter, reporter) | |
DEF_TEST (region_very_large, reporter) | |
#define TEST_INTERSECT | ( | rgn, | |
rect | |||
) | REPORTER_ASSERT(reporter, rgn.intersects(rect)) |
Definition at line 32 of file RegionTest.cpp.
#define TEST_NO_CONTAINS | ( | rgn, | |
rect | |||
) | REPORTER_ASSERT(reporter, !rgn.contains(rect)) |
Definition at line 33 of file RegionTest.cpp.
#define TEST_NO_INTERSECT | ( | rgn, | |
rect | |||
) | REPORTER_ASSERT(reporter, !rgn.intersects(rect)) |
Definition at line 31 of file RegionTest.cpp.
anonymous enum |
Enumerator | |
---|---|
W | |
H |
Definition at line 118 of file RegionTest.cpp.
|
static |
Definition at line 166 of file RegionTest.cpp.
DEF_TEST | ( | giant_path_region | , |
reporter | |||
) |
Definition at line 450 of file RegionTest.cpp.
DEF_TEST | ( | Region | , |
reporter | |||
) |
Definition at line 247 of file RegionTest.cpp.
DEF_TEST | ( | region_bug_chromium_873051 | , |
reporter | |||
) |
Definition at line 483 of file RegionTest.cpp.
DEF_TEST | ( | region_empty_iter | , |
reporter | |||
) |
Definition at line 491 of file RegionTest.cpp.
DEF_TEST | ( | region_inverse_union_skbug_7491 | , |
reporter | |||
) |
Definition at line 435 of file RegionTest.cpp.
DEF_TEST | ( | Region_readFromMemory_bad | , |
r | |||
) |
Definition at line 324 of file RegionTest.cpp.
DEF_TEST | ( | region_toobig | , |
reporter | |||
) |
Definition at line 413 of file RegionTest.cpp.
DEF_TEST | ( | region_very_large | , |
reporter | |||
) |
Definition at line 532 of file RegionTest.cpp.
DEF_TEST | ( | Region_writeToMemory | , |
r | |||
) |
Definition at line 294 of file RegionTest.cpp.
DEF_TEST | ( | rrect_region_crbug_850350 | , |
reporter | |||
) |
Definition at line 460 of file RegionTest.cpp.
|
static |
Definition at line 195 of file RegionTest.cpp.
Definition at line 218 of file RegionTest.cpp.
Definition at line 123 of file RegionTest.cpp.
Definition at line 131 of file RegionTest.cpp.
Definition at line 144 of file RegionTest.cpp.
Definition at line 138 of file RegionTest.cpp.
Definition at line 150 of file RegionTest.cpp.
|
static |
Definition at line 155 of file RegionTest.cpp.
|
static |
|
static |
Definition at line 37 of file RegionTest.cpp.
|
static |
Definition at line 184 of file RegionTest.cpp.
|
static |
Definition at line 226 of file RegionTest.cpp.
|
static |
Definition at line 282 of file RegionTest.cpp.
Definition at line 27 of file RegionTest.cpp.