blob: 983161fa728a38f5e86a8e0ec14fa8a9f00f8c68 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "impeller/entity/contents/filters/inputs/filter_input.h"
namespace impeller {
class ContentsFilterInput final : public FilterInput {
public:
~ContentsFilterInput() override;
// |FilterInput|
Variant GetInput() const override;
// |FilterInput|
std::optional<Snapshot> GetSnapshot(
const std::string& label,
const ContentContext& renderer,
const Entity& entity,
std::optional<Rect> coverage_limit) const override;
// |FilterInput|
std::optional<Rect> GetCoverage(const Entity& entity) const override;
// |FilterInput|
void PopulateGlyphAtlas(
const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
Scalar scale) override;
private:
ContentsFilterInput(std::shared_ptr<Contents> contents, bool msaa_enabled);
std::shared_ptr<Contents> contents_;
mutable std::optional<Snapshot> snapshot_;
bool msaa_enabled_;
friend FilterInput;
};
} // namespace impeller