14 ContentsFilterInput::ContentsFilterInput(std::shared_ptr<Contents> contents,
16 : contents_(
std::move(contents)), msaa_enabled_(msaa_enabled) {}
25 const std::string& label,
28 std::optional<Rect> coverage_limit)
const {
29 if (!coverage_limit.has_value() && entity.
GetContents()) {
30 coverage_limit = entity.
GetContents()->GetCoverageHint();
32 if (!snapshot_.has_value()) {
33 snapshot_ = contents_->RenderToSnapshot(
39 SPrintF(
"Contents to %s Filter Snapshot", label.c_str()));
45 const Entity& entity)
const {
46 return contents_->GetCoverage(entity);
50 const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
52 contents_->PopulateGlyphAtlas(lazy_glyph_atlas, scale);