| Flutter Impeller |

texture_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 #include "impeller/geometry/matrix.h"
10
11 namespace impeller {
12
13 class TextureFilterInput final : public FilterInput {
14 public:
15 ~TextureFilterInput() 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 Matrix GetLocalTransform(const Entity& entity) const override;
32
33 private:
34 TextureFilterInput(std::shared_ptr<Texture> texture,
35 Matrix local_transform = Matrix());
36
37 std::shared_ptr<Texture> texture_;
38 Matrix local_transform_;
39
40 friend FilterInput;
41 };
42
43 } // namespace impeller
impeller::TextureFilterInput::GetLocalTransform
Matrix GetLocalTransform(const Entity &entity) const override
Get the local transform of this filter input. This transform is relative to the Entity transform spac...
Definition: texture_filter_input.cc:43
impeller::TextureFilterInput::GetSnapshot
std::optional< Snapshot > GetSnapshot(const std::string &label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit) const override
Definition: texture_filter_input.cc:23
impeller::TextureFilterInput
Definition: texture_filter_input.h:13
impeller::TextureFilterInput::GetInput
Variant GetInput() const override
Definition: texture_filter_input.cc:19
matrix.h
impeller::Entity
Definition: entity.h:21
impeller::FilterInput
Definition: filter_input.h:29
impeller::TextureFilterInput::~TextureFilterInput
~TextureFilterInput() 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::TextureFilterInput::GetCoverage
std::optional< Rect > GetCoverage(const Entity &entity) const override
Definition: texture_filter_input.cc:37
impeller
Definition: aiks_context.cc:10
impeller::ContentContext
Definition: content_context.h:344
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition: matrix.h:36