Classes | |
| struct | TestData |
Protected Member Functions | |
| DisplayListNopTest () | |
| const TestData | make_test_data (DlSurfaceProvider *provider) |
| const TestData | GetTestData (DlSurfaceProvider *provider) |
| std::shared_ptr< DlSurfaceInstance > | get_output (DlSurfaceProvider *provider, int w, int h, bool snapshot, const std::function< void(DlCanvas *)> &renderer) |
| int | check_color_result (DlColor dst_color, DlColor result_color, int x, int y, const sk_sp< DisplayList > &dl, const std::string &desc) |
| int | check_image_result (const RenderResult &dst_data, const RenderResult &result_data, const sk_sp< DisplayList > &dl, const std::string &desc) |
| void | report_results (int all_flags, const sk_sp< DisplayList > &dl, const std::string &desc) |
| void | test_mode_color_via_filter (DlBlendMode mode, DlColor color) |
| void | test_mode_color_via_rendering (DlBlendMode mode, DlColor color) |
| void | test_attributes_image (DlBlendMode mode, DlColor color, const DlColorFilter *color_filter, DlImageFilter *image_filter) |
Protected Attributes | |
| std::vector< DlColor > | test_src_colors |
| std::vector< DlColor > | test_dst_colors |
| std::shared_ptr< const DlColorFilter > | color_filter_nomtb |
| std::shared_ptr< const DlColorFilter > | color_filter_mtb |
| std::map< DlSurfaceProvider::BackendType, TestData > | test_datas |
Additional Inherited Members | |
Public Member Functions inherited from flutter::testing::DisplayListRendering | |
| DisplayListRendering ()=default | |
Static Public Member Functions inherited from flutter::testing::DisplayListRendering | |
| static void | SetUpTestSuite () |
| static void | TearDownTestSuite () |
| static const std::vector< BackendType > & | GetTestBackends () |
| static std::unique_ptr< DlSurfaceProvider > | GetProvider (BackendType type) |
| static void | RenderAll (const TestParameters ¶ms, const BoundsTolerance &tolerance=CanvasCompareTester::DefaultTolerance) |
Definition at line 3735 of file dl_rendering_unittests.cc.
|
inlineprotected |
Definition at line 3739 of file dl_rendering_unittests.cc.
References color_filter_mtb, color_filter_nomtb, flutter::DlColor::kBlack(), flutter::DlColor::kBlue(), flutter::DlColor::kDarkGrey(), flutter::DlColor::kGreen(), flutter::DlColor::kLightGrey(), flutter::DlColor::kRed(), flutter::DlColor::kTransparent(), flutter::DlColor::kWhite(), flutter::DlColorFilter::MakeMatrix(), test_dst_colors, test_src_colors, and flutter::DlColor::withAlpha().
|
inlineprotected |
Definition at line 3910 of file dl_rendering_unittests.cc.
References FML_LOG, flutter::DlColor::isTransparent(), x, and y.
|
inlineprotected |
Definition at line 3935 of file dl_rendering_unittests.cc.
References flutter::testing::RenderResult::pixel_data, x, and y.
|
inlineprotected |
Definition at line 3895 of file dl_rendering_unittests.cc.
References flutter::DisplayListBuilder::Build(), flutter::h, flutter::testing::DlSurfaceProvider::kN32Premul, flutter::testing::DlSurfaceProvider::MakeOffscreenSurface(), and surface.
Referenced by make_test_data().
|
inlineprotected |
Definition at line 3885 of file dl_rendering_unittests.cc.
References flutter::testing::DlSurfaceProvider::GetBackendType().
|
inlineprotected |
Definition at line 3803 of file dl_rendering_unittests.cc.
References get_output(), and test_dst_colors.
|
inlineprotected |
Definition at line 3953 of file dl_rendering_unittests.cc.
References FML_LOG.
|
inlineprotected |
Definition at line 4049 of file dl_rendering_unittests.cc.
References impeller::BlendModeToString(), flutter::DisplayListBuilder::Build(), flutter::DlCanvas::Clear(), flutter::DisplayListBuilder::DrawImage(), flutter::testing::DisplayListNopTest::TestData::dst_image_2d, flutter::testing::DisplayListNopTest::TestData::dst_pixels, flutter::h, flutter::testing::DlSurfaceProvider::kN32Premul, flutter::kNearestNeighbor, flutter::DlColor::kTransparent(), flutter::testing::RenderResult::Make(), impeller::TRect< Scalar >::MakeWH(), flutter::mode, flutter::DlColorFilter::modifies_transparent_black(), flutter::DlImageFilter::modifies_transparent_black(), flutter::DlPaint::setBlendMode(), flutter::DlPaint::setColorFilter(), flutter::DlPaint::setImageFilter(), and flutter::testing::DisplayListNopTest::TestData::src_image_2d.
|
inlineprotected |
Definition at line 3968 of file dl_rendering_unittests.cc.
References impeller::BlendModeToString(), flutter::DisplayListBuilder::Build(), flutter::DisplayListBuilder::DrawRect(), impeller::TRect< Scalar >::MakeLTRB(), impeller::TRect< Scalar >::MakeWH(), flutter::mode, flutter::DlPaint::setBlendMode(), and flutter::ToSkColor4f().
|
inlineprotected |
Definition at line 4003 of file dl_rendering_unittests.cc.
References impeller::BlendModeToString(), flutter::DisplayListBuilder::Build(), flutter::DlCanvas::Clear(), flutter::DisplayListBuilder::DrawImage(), flutter::DisplayListBuilder::DrawRect(), flutter::testing::DlSurfaceProvider::kN32Premul, flutter::kNearestNeighbor, flutter::DlColor::kTransparent(), flutter::testing::RenderResult::Make(), impeller::TRect< Scalar >::MakeWH(), flutter::mode, flutter::DlPaint::setBlendMode(), flutter::DlPaint::setColor(), flutter::testing::DisplayListNopTest::TestData::test_image_1d, and flutter::testing::DisplayListNopTest::TestData::test_pixels.
|
protected |
Definition at line 3881 of file dl_rendering_unittests.cc.
Referenced by DisplayListNopTest().
|
protected |
Definition at line 3880 of file dl_rendering_unittests.cc.
Referenced by DisplayListNopTest().
|
staticconstexprprotected |
Definition at line 3875 of file dl_rendering_unittests.cc.
|
staticconstexprprotected |
Definition at line 3874 of file dl_rendering_unittests.cc.
|
protected |
Definition at line 3883 of file dl_rendering_unittests.cc.
|
protected |
Definition at line 3878 of file dl_rendering_unittests.cc.
Referenced by DisplayListNopTest(), and make_test_data().
|
protected |
Definition at line 3877 of file dl_rendering_unittests.cc.
Referenced by DisplayListNopTest().