/third_party/skia/tests/ |
D | PathOpsExtendedTest.h | 19 void (*fun)(skiatest::Reporter*, const char* filename); 24 extern int comparePaths(skiatest::Reporter* reporter, const char* filename, 27 inline int comparePaths(skiatest::Reporter* reporter, const char* filename, in comparePaths() 36 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 38 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 40 extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 42 extern bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, 46 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename); 47 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, 49 extern bool testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path, [all …]
|
D | Test.h | 32 class Reporter : SkNoncopyable { 34 virtual ~Reporter() {} in ~Reporter() 59 ReporterContext(Reporter* reporter, const SkString& message) : fReporter(reporter) { in ReporterContext() 67 Reporter* fReporter; 70 typedef void (*TestProc)(skiatest::Reporter*, const GrContextOptions&); 96 void run(skiatest::Reporter* r, const GrContextOptions& options) const { in run() 125 typedef void GrContextTestFn(Reporter*, const sk_gpu_test::ContextInfo&); 135 void RunWithGPUTestContexts(GrContextTestFn*, GrContextTypeFilterFn*, Reporter*, 140 typedef void GraphiteTestFn(Reporter*, skgpu::Context*); 142 void RunWithGraphiteTestContexts(GraphiteTestFn*, Reporter*); [all …]
|
D | PathOpsSimplifyTest.cpp | 11 static void testLine1(skiatest::Reporter* reporter, const char* filename) { in testLine1() 20 static void testLine1x(skiatest::Reporter* reporter, const char* filename) { in testLine1x() 58 static void testLine2(skiatest::Reporter* reporter, const char* filename) { in testLine2() 65 static void testLine2x(skiatest::Reporter* reporter, const char* filename) { in testLine2x() 73 static void testLine3(skiatest::Reporter* reporter, const char* filename) { in testLine3() 80 static void testLine3x(skiatest::Reporter* reporter, const char* filename) { in testLine3x() 88 static void testLine3a(skiatest::Reporter* reporter, const char* filename) { in testLine3a() 95 static void testLine3ax(skiatest::Reporter* reporter, const char* filename) { in testLine3ax() 103 static void testLine3b(skiatest::Reporter* reporter, const char* filename) { in testLine3b() 110 static void testLine3bx(skiatest::Reporter* reporter, const char* filename) { in testLine3bx() [all …]
|
D | VkHardwareBufferTest.cpp | 47 virtual bool init(skiatest::Reporter* reporter) = 0; 52 virtual sk_sp<SkImage> importHardwareBufferForRead(skiatest::Reporter* reporter, 54 virtual sk_sp<SkSurface> importHardwareBufferForWrite(skiatest::Reporter* reporter, 58 virtual bool flushSurfaceAndSignalSemaphore(skiatest::Reporter* reporter, sk_sp<SkSurface>) = 0; 59 virtual bool importAndWaitOnSemaphore(skiatest::Reporter* reporter, int fdHandle, 100 bool init(skiatest::Reporter* reporter) override; 102 sk_sp<SkImage> importHardwareBufferForRead(skiatest::Reporter* reporter, 104 sk_sp<SkSurface> importHardwareBufferForWrite(skiatest::Reporter* reporter, 108 bool flushSurfaceAndSignalSemaphore(skiatest::Reporter* reporter, sk_sp<SkSurface>) override; 109 bool importAndWaitOnSemaphore(skiatest::Reporter* reporter, int fdHandle, [all …]
|
D | GradientTest.cpp | 24 static void test_big_grad(skiatest::Reporter* reporter) { in test_big_grad() 52 void gradCheck(skiatest::Reporter* reporter, const sk_sp<SkShader>& shader, in gradCheck() 73 static void none_gradproc(skiatest::Reporter* reporter, const GradRec&, const GradRec&) { in none_gradproc() 78 static void color_gradproc(skiatest::Reporter* reporter, const GradRec& rec, const GradRec&) { in color_gradproc() 89 static void linear_gradproc(skiatest::Reporter* reporter, const GradRec& buildRec, in linear_gradproc() 99 static void radial_gradproc(skiatest::Reporter* reporter, const GradRec& buildRec, in radial_gradproc() 111 static void sweep_gradproc(skiatest::Reporter* reporter, const GradRec& buildRec, in sweep_gradproc() 122 static void conical_gradproc(skiatest::Reporter* reporter, const GradRec& buildRec, in conical_gradproc() 140 static void TestConstantGradient(skiatest::Reporter*) { in TestConstantGradient() argument 161 typedef void (*GradProc)(skiatest::Reporter* reporter, const GradRec&, const GradRec&); [all …]
|
D | SkStrikeCacheTest.cpp | 13 DEF_TEST(SkStrikeCache_CachePurge, Reporter) { in DEF_TEST() argument 30 REPORTER_ASSERT(Reporter, cache.getTotalMemoryUsed() == 0); in DEF_TEST() 37 REPORTER_ASSERT(Reporter, cache.getTotalMemoryUsed() > 0); in DEF_TEST() 42 REPORTER_ASSERT(Reporter, cache.getTotalMemoryUsed() == 0); in DEF_TEST() 48 REPORTER_ASSERT(Reporter, cache.getTotalMemoryUsed() == 0); in DEF_TEST() 50 REPORTER_ASSERT(Reporter, cache.getTotalMemoryUsed() == 0); in DEF_TEST()
|
D | PathOpsOpTest.cpp | 33 static void cubicOp1d(skiatest::Reporter* reporter, const char* filename) { in cubicOp1d() 46 static void cubicOp2d(skiatest::Reporter* reporter, const char* filename) { in cubicOp2d() 59 static void cubicOp3d(skiatest::Reporter* reporter, const char* filename) { in cubicOp3d() 72 static void cubicOp5d(skiatest::Reporter* reporter, const char* filename) { in cubicOp5d() 85 static void cubicOp6d(skiatest::Reporter* reporter, const char* filename) { in cubicOp6d() 98 static void cubicOp7d(skiatest::Reporter* reporter, const char* filename) { in cubicOp7d() 111 static void cubicOp8d(skiatest::Reporter* reporter, const char* filename) { in cubicOp8d() 124 static void cubicOp9d(skiatest::Reporter* reporter, const char* filename) { in cubicOp9d() 137 static void quadOp9d(skiatest::Reporter* reporter, const char* filename) { in quadOp9d() 152 static void lineOp9d(skiatest::Reporter* reporter, const char* filename) { in lineOp9d() [all …]
|
D | CanvasTest.cpp | 58 skiatest::Reporter* r; 144 static void test_restriction(skiatest::Reporter* reporter, SkCanvas* canvas) { in test_restriction() 249 using CanvasTest = void (*)(SkCanvas*, skiatest::Reporter*); 252 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50302() 255 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50402() 258 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50502() 261 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50602() 264 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50702() 267 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50802() 270 [](SkCanvas* c, skiatest::Reporter* r) { in __anon712ff1b50902() [all …]
|
D | RRectInPathTest.cpp | 14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, in path_contains_rrect() 43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, in inner_path_contains_rrect() 62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_check() 71 static void path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_nocheck() 79 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r, in path_contains_rrect_check() 93 static void force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path, in force_path_contains_rrect() 102 static void test_undetected_paths(skiatest::Reporter* reporter) { in test_undetected_paths() 168 static void test_tricky_radii(skiatest::Reporter* reporter) { in test_tricky_radii() 195 static void test_empty_crbug_458524(skiatest::Reporter* reporter) { in test_empty_crbug_458524() 213 static void test_inset(skiatest::Reporter* reporter) { in test_inset() [all …]
|
D | PathOpsSkpTest.cpp | 11 static void skpcheeseandburger_com225(skiatest::Reporter* reporter, const char* filename) { in skpcheeseandburger_com225() 372 static void skpeverytechpro_blogspot_com100(skiatest::Reporter* reporter, const char* filename) { in skpeverytechpro_blogspot_com100() 406 static void skpflite_com41(skiatest::Reporter* reporter, const char* filename) { in skpflite_com41() 429 static void skpilkoora_com37(skiatest::Reporter* reporter, const char* filename) { in skpilkoora_com37() 461 static void skpmm4everfriends_com43(skiatest::Reporter* reporter, const char* filename) { in skpmm4everfriends_com43() 484 static void skpmtrk_uz27(skiatest::Reporter* reporter, const char* filename) { in skpmtrk_uz27() 511 static void skpfrauen_magazin_com83(skiatest::Reporter* reporter, const char* filename) { in skpfrauen_magazin_com83() 535 static void skpi_gino_com16(skiatest::Reporter* reporter, const char* filename) { in skpi_gino_com16() 560 static void skppchappy_com_au102(skiatest::Reporter* reporter, const char* filename) { in skppchappy_com_au102() 588 static void skpsciality_com161(skiatest::Reporter* reporter, const char* filename) { in skpsciality_com161() [all …]
|
D | FrontBufferedStreamTest.cpp | 20 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read() 30 static void test_rewind(skiatest::Reporter* reporter, in test_rewind() 40 static void test_hasLength(skiatest::Reporter* reporter, in test_hasLength() 57 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { in test_incremental_buffering() 90 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_perfectly_sized_buffer() 110 static void test_skipping(skiatest::Reporter* reporter, size_t bufferSize) { in test_skipping() 161 static void test_read_beyond_buffer(skiatest::Reporter* reporter, size_t bufferSize) { in test_read_beyond_buffer() 210 static void test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) { in test_length_combos() 223 static void test_initial_offset(skiatest::Reporter* reporter, size_t bufferSize) { in test_initial_offset() 254 static void test_buffers(skiatest::Reporter* reporter, size_t bufferSize) { in test_buffers()
|
D | DataRefTest.cpp | 25 static void test_is_equal(skiatest::Reporter* reporter, in test_is_equal() 37 static void test_datatable_is_empty(skiatest::Reporter* reporter, SkDataTable* table) { in test_datatable_is_empty() 42 static void test_emptytable(skiatest::Reporter* reporter) { in test_emptytable() 58 static void test_simpletable(skiatest::Reporter* reporter) { in test_simpletable() 71 static void test_vartable(skiatest::Reporter* reporter) { in test_vartable() 96 static void test_globaltable(skiatest::Reporter* reporter) { in test_globaltable() 129 static void assert_len(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, size_t len) { in assert_len() 133 static void assert_data(skiatest::Reporter* reporter, const sk_sp<SkData>& ref, in assert_data() 139 static void test_cstring(skiatest::Reporter* reporter) { in test_cstring() 153 static void test_files(skiatest::Reporter* reporter) { in test_files()
|
D | PointTest.cpp | 13 static void test_casts(skiatest::Reporter* reporter) { in test_casts() 25 static void test_Normalize(skiatest::Reporter* reporter, in test_Normalize() 36 static void test_normalize_cannormalize_consistent(skiatest::Reporter* reporter) { in test_normalize_cannormalize_consistent() 56 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, in test_length() 77 template <typename T> T get_value(skiatest::Reporter* reporter, T value) { in get_value() 88 static float force_as_float(skiatest::Reporter* reporter, float value) { in force_as_float() 103 static void test_overflow(skiatest::Reporter* reporter) { in test_overflow()
|
D | GeometryTest.cpp | 20 static void testChopCubic(skiatest::Reporter* reporter) { in testChopCubic() 119 static void check_pairs(skiatest::Reporter* reporter, int index, SkScalar t, const char name[], in check_pairs() 129 static void test_evalquadat(skiatest::Reporter* reporter) { in test_evalquadat() 154 static void test_conic_eval_pos(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) { in test_conic_eval_pos() 161 static void test_conic_eval_tan(skiatest::Reporter* reporter, const SkConic& conic, SkScalar t) { in test_conic_eval_tan() 168 static void test_conic(skiatest::Reporter* reporter) { in test_conic() 190 static void test_quad_tangents(skiatest::Reporter* reporter) { in test_quad_tangents() 210 static void test_conic_tangents(skiatest::Reporter* reporter) { in test_conic_tangents() 230 static void test_this_conic_to_quad(skiatest::Reporter* r, const SkPoint pts[3], SkScalar w) { in test_this_conic_to_quad() 245 static void test_conic_to_quads(skiatest::Reporter* reporter) { in test_conic_to_quads() [all …]
|
D | FontHostTest.cpp | 36 static void test_unitsPerEm(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { in test_unitsPerEm() 55 static void test_countGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { in test_countGlyphs() 72 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { in test_fontstream() 98 static void test_fontstream(skiatest::Reporter* reporter) { in test_fontstream() 115 static void test_symbolfont(skiatest::Reporter* reporter) { in test_symbolfont() 127 static void test_tables(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { in test_tables() 173 static void test_tables(skiatest::Reporter* reporter) { in test_tables() 200 static void test_advances(skiatest::Reporter* reporter) { in test_advances()
|
D | PathOpsExtendedTest.cpp | 236 int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one, in comparePaths() 268 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one, in comparePaths() 461 static bool inner_simplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename, in inner_simplify() 511 bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename) { in testSimplify() 516 bool testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, const char* filename) { in testSimplifyFuzz() 521 bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename, in testSimplifyCheck() 527 bool testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path, const char* filename) { in testSimplifyFail() 532 static bool innerPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, in innerPathOp() 603 bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, in testPathOp() 609 bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, in testPathOpCheck() [all …]
|
D | TestUtils.h | 20 void TestReadPixels(skiatest::Reporter*, GrDirectContext*, skgpu::SurfaceContext*, 25 void TestWritePixels(skiatest::Reporter*, GrDirectContext*, skgpu::SurfaceContext*, 30 void TestCopyFromSurface(skiatest::Reporter*, 81 void CheckSingleThreadedProxyRefs(skiatest::Reporter* reporter,
|
D | PathOpsBattles.cpp | 12 static void issue414409(skiatest::Reporter* reporter, const char* filename) { in issue414409() 42 static void issue414409b(skiatest::Reporter* reporter, const char* filename) { in issue414409b() 65 static void issue414409c(skiatest::Reporter* reporter, const char* filename) { in issue414409c() 91 static void battleOp1(skiatest::Reporter* reporter, const char* filename) { in battleOp1() 116 static void battleOp2(skiatest::Reporter* reporter, const char* filename) { in battleOp2() 138 static void battleOp3(skiatest::Reporter* reporter, const char* filename) { in battleOp3() 163 static void battleOp4(skiatest::Reporter* reporter, const char* filename) { in battleOp4() 191 static void battleOp5(skiatest::Reporter* reporter, const char* filename) { in battleOp5() 216 static void battleOp6(skiatest::Reporter* reporter, const char* filename) { in battleOp6() 247 static void battleOp7(skiatest::Reporter* reporter, const char* filename) { in battleOp7() [all …]
|
D | GpuRectanizerTest.cpp | 19 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { in test_rectanizer_basic() 31 static void test_rectanizer_inserts(skiatest::Reporter*, in test_rectanizer_inserts() argument 45 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_skyline() 52 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { in test_pow2()
|
D | Test.cpp | 18 void skiatest::Reporter::bumpTestCount() {} in bumpTestCount() 20 bool skiatest::Reporter::allowExtendedTest() const { return false; } in allowExtendedTest() 22 bool skiatest::Reporter::verbose() const { return false; } in verbose() 25 void skiatest::Reporter::reportFailedWithContext(const skiatest::Failure& f) { in reportFailedWithContext()
|
D | PathOpsCubicIntersectionTest.cpp | 21 static void standardTestCases(skiatest::Reporter* reporter) { in standardTestCases() 390 static void oneOff(skiatest::Reporter* reporter, const CubicPts& cubic1, const CubicPts& cubic2, in oneOff() 437 static void oneOff(skiatest::Reporter* reporter, int outer, int inner) { in oneOff() 443 static void newOneOff(skiatest::Reporter* reporter, int outer, int inner) { in newOneOff() 449 static void testsOneOff(skiatest::Reporter* reporter, int index) { in testsOneOff() 455 static void oneOffTests(skiatest::Reporter* reporter) { in oneOffTests() 470 static void CubicIntersection_RandTest(skiatest::Reporter* reporter) { in CubicIntersection_RandTest() 642 static void selfOneOff(skiatest::Reporter* reporter, int setIdx) { in selfOneOff() 671 static void cubicIntersectionSelfTest(skiatest::Reporter* reporter) { in cubicIntersectionSelfTest() 699 static void coinOneOff(skiatest::Reporter* reporter, int index) { in coinOneOff() [all …]
|
D | PathOpsThreadedCommon.h | 23 class Reporter; variable 34 skiatest::Reporter* fReporter; 43 PathOpsThreadedTestRunner(skiatest::Reporter* reporter) : fReporter(reporter) {} in PathOpsThreadedTestRunner() 51 skiatest::Reporter* fReporter;
|
D | MathTest.cpp | 23 static void test_clz(skiatest::Reporter* reporter) { in test_clz() 42 static void test_ctz(skiatest::Reporter* reporter) { in test_ctz() 77 static void test_floor_value(skiatest::Reporter* reporter, float value) { in test_floor_value() 86 static void test_floor(skiatest::Reporter* reporter) { in test_floor() 167 static void check_length(skiatest::Reporter* reporter, in check_length() 178 static void unittest_isfinite(skiatest::Reporter* reporter) { in unittest_isfinite() 199 static void unittest_half(skiatest::Reporter* reporter) { in unittest_half() 255 static void test_rsqrt(skiatest::Reporter* reporter, RSqrtFn rsqrt) { in test_rsqrt() 289 static void test_nextlog2(skiatest::Reporter* r) { in test_nextlog2() 331 static void test_muldiv255(skiatest::Reporter* reporter) { in test_muldiv255() [all …]
|
D | RandomTest.cpp | 59 static void test_random_byte(skiatest::Reporter* reporter, int shift) { in test_random_byte() 71 static void test_random_float(skiatest::Reporter* reporter) { in test_random_float() 102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) { in test_single_gorilla() 152 static void test_gorilla(skiatest::Reporter* reporter) { in test_gorilla() 162 static void test_range(skiatest::Reporter* reporter) { in test_range()
|
D | MemsetTest.cpp | 27 static void compare16(skiatest::Reporter* r, const uint16_t base[], in compare16() 37 static void compare32(skiatest::Reporter* r, const uint32_t base[], in compare32() 47 static void test_16(skiatest::Reporter* reporter) { in test_16() 64 static void test_32(skiatest::Reporter* reporter) { in test_32()
|