| Flutter Impeller |

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