Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Prev Previous commit
Next Next commit
++
  • Loading branch information
jonahwilliams committed Nov 10, 2022
commit 0da465a5ef45e85eda89b6ed3743aad64f80c5e9
9 changes: 9 additions & 0 deletions display_list/display_list_color_source_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -974,5 +974,14 @@ TEST(DisplayListColorSource, RuntimeEffect) {
TestNotEquals(source2, source3, "SkRuntimeEffect differs");
}

TEST(DisplayListColorSource, RuntimeEffectWithNullSampler) {
std::shared_ptr<DlRuntimeEffectColorSource> source1 =
DlColorSource::MakeRuntimeEffect(
kTestRuntimeEffect1, {nullptr},
std::make_shared<std::vector<uint8_t>>());

ASSERT_EQ(source3->skia_object(), nullptr);
}

} // namespace testing
} // namespace flutter