Flutter Engine
 
Loading...
Searching...
No Matches
contents_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_CONTENTS_FILTER_INPUT_H_
6#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_CONTENTS_FILTER_INPUT_H_
7
9
10namespace impeller {
11
12class ContentsFilterInput final : public FilterInput {
13 public:
15
16 // |FilterInput|
17 std::optional<Snapshot> GetSnapshot(std::string_view label,
18 const ContentContext& renderer,
19 const Entity& entity,
20 std::optional<Rect> coverage_limit,
21 int32_t mip_count) const override;
22
23 // |FilterInput|
24 std::optional<Rect> GetCoverage(const Entity& entity) const override;
25
26 private:
27 ContentsFilterInput(std::shared_ptr<Contents> contents, bool msaa_enabled);
28
29 std::shared_ptr<Contents> contents_;
30 mutable std::optional<Snapshot> snapshot_;
31 bool msaa_enabled_;
32
33 friend FilterInput;
34};
35
36} // namespace impeller
37
38#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_CONTENTS_FILTER_INPUT_H_
std::optional< Snapshot > GetSnapshot(std::string_view label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit, int32_t mip_count) const override
std::optional< Rect > GetCoverage(const Entity &entity) const override