| Flutter Impeller |

linear_to_srgb_filter_contents.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_LINEAR_TO_SRGB_FILTER_CONTENTS_H_
6 #define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LINEAR_TO_SRGB_FILTER_CONTENTS_H_
7
8 #include "impeller/entity/contents/filters/color_filter_contents.h"
9 #include "impeller/entity/contents/filters/inputs/filter_input.h"
10
11 namespace impeller {
12
13 class LinearToSrgbFilterContents final : public ColorFilterContents {
14 public:
15 LinearToSrgbFilterContents();
16
17 ~LinearToSrgbFilterContents() override;
18
19 private:
20 // |FilterContents|
21 std::optional<Entity> RenderFilter(
22 const FilterInput::Vector& input_textures,
23 const ContentContext& renderer,
24 const Entity& entity,
25 const Matrix& effect_transform,
26 const Rect& coverage,
27 const std::optional<Rect>& coverage_hint) const override;
28
29 LinearToSrgbFilterContents(const LinearToSrgbFilterContents&) = delete;
30
31 LinearToSrgbFilterContents& operator=(const LinearToSrgbFilterContents&) =
32 delete;
33 };
34
35 } // namespace impeller
36
37 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LINEAR_TO_SRGB_FILTER_CONTENTS_H_
impeller::LinearToSrgbFilterContents
Definition: linear_to_srgb_filter_contents.h:13
impeller::ColorFilterContents
Definition: color_filter_contents.h:12
impeller::LinearToSrgbFilterContents::LinearToSrgbFilterContents
LinearToSrgbFilterContents()
impeller::Entity
Definition: entity.h:20
filter_input.h
color_filter_contents.h
impeller::FilterInput::Vector
std::vector< FilterInput::Ref > Vector
Definition: filter_input.h:33
impeller
Definition: aiks_blend_unittests.cc:18
impeller::ContentContext
Definition: content_context.h:366
impeller::TRect< Scalar >
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition: matrix.h:37
impeller::LinearToSrgbFilterContents::~LinearToSrgbFilterContents
~LinearToSrgbFilterContents() override