| Flutter Impeller |

placeholder_filter_input.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #pragma once
6
7 #include "impeller/entity/contents/filters/inputs/filter_input.h"
8
9 namespace impeller {
10
11 class PlaceholderFilterInput final : public FilterInput {
12 public:
13 explicit PlaceholderFilterInput(Rect coverage);
14
15 ~PlaceholderFilterInput() override;
16
17 // |FilterInput|
18 Variant GetInput() const override;
19
20 // |FilterInput|
21 std::optional<Snapshot> GetSnapshot(
22 const std::string& label,
23 const ContentContext& renderer,
24 const Entity& entity,
25 std::optional<Rect> coverage_limit) const override;
26
27 // |FilterInput|
28 std::optional<Rect> GetCoverage(const Entity& entity) const override;
29
30 // |FilterInput|
31 void PopulateGlyphAtlas(
32 const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
33 Scalar scale) override;
34
35 private:
36 Rect coverage_rect_;
37
38 friend FilterInput;
39 };
40
41 } // namespace impeller
impeller::PlaceholderFilterInput::PopulateGlyphAtlas
void PopulateGlyphAtlas(const std::shared_ptr< LazyGlyphAtlas > &lazy_glyph_atlas, Scalar scale) override
Definition: placeholder_filter_input.cc:36
impeller::PlaceholderFilterInput::GetSnapshot
std::optional< Snapshot > GetSnapshot(const std::string &label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit) const override
Definition: placeholder_filter_input.cc:23
impeller::Scalar
float Scalar
Definition: scalar.h:15
impeller::PlaceholderFilterInput::GetInput
Variant GetInput() const override
Definition: placeholder_filter_input.cc:19
impeller::PlaceholderFilterInput::PlaceholderFilterInput
PlaceholderFilterInput(Rect coverage)
Definition: placeholder_filter_input.cc:14
impeller::Entity
Definition: entity.h:21
impeller::PlaceholderFilterInput::GetCoverage
std::optional< Rect > GetCoverage(const Entity &entity) const override
Definition: placeholder_filter_input.cc:31
impeller::FilterInput
Definition: filter_input.h:29
impeller::PlaceholderFilterInput::~PlaceholderFilterInput
~PlaceholderFilterInput() override
impeller::FilterInput::Variant
std::variant< std::shared_ptr< FilterContents >, std::shared_ptr< Contents >, std::shared_ptr< Texture >, Rect > Variant
Definition: filter_input.h:36
filter_input.h
impeller
Definition: aiks_context.cc:10
impeller::ContentContext
Definition: content_context.h:344
impeller::TRect< Scalar >
impeller::PlaceholderFilterInput
Definition: placeholder_filter_input.h:11