| 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 #ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_PLACEHOLDER_FILTER_INPUT_H_
6 #define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_PLACEHOLDER_FILTER_INPUT_H_
7
8 #include "impeller/entity/contents/filters/inputs/filter_input.h"
9
10 namespace impeller {
11
12 class PlaceholderFilterInput final : public FilterInput {
13 public:
14 explicit PlaceholderFilterInput(Rect coverage);
15
16 ~PlaceholderFilterInput() override;
17
18 // |FilterInput|
19 std::optional<Snapshot> GetSnapshot(std::string_view label,
20 const ContentContext& renderer,
21 const Entity& entity,
22 std::optional<Rect> coverage_limit,
23 int32_t mip_count = 1) const override;
24
25 // |FilterInput|
26 std::optional<Rect> GetCoverage(const Entity& entity) const override;
27
28 private:
29 Rect coverage_rect_;
30
31 friend FilterInput;
32 };
33
34 } // namespace impeller
35
36 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_PLACEHOLDER_FILTER_INPUT_H_
impeller::ContentContext
Definition: content_context.h:138
impeller::Entity
Definition: entity.h:20
impeller::FilterInput
Definition: filter_input.h:30
impeller::PlaceholderFilterInput
Definition: placeholder_filter_input.h:12
impeller::PlaceholderFilterInput::GetSnapshot
std::optional< Snapshot > GetSnapshot(std::string_view label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit, int32_t mip_count=1) const override
Definition: placeholder_filter_input.cc:16
impeller::PlaceholderFilterInput::PlaceholderFilterInput
PlaceholderFilterInput(Rect coverage)
Definition: placeholder_filter_input.cc:11
impeller::PlaceholderFilterInput::~PlaceholderFilterInput
~PlaceholderFilterInput() override
impeller::PlaceholderFilterInput::GetCoverage
std::optional< Rect > GetCoverage(const Entity &entity) const override
Definition: placeholder_filter_input.cc:25
filter_input.h
impeller
Definition: allocation.cc:12
impeller::TRect< Scalar >