blob: 07b3307159c7402d653f408ea24ec61c93121c04 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "impeller/entity/contents/filters/color_filter_contents.h"
#include "impeller/entity/contents/filters/inputs/filter_input.h"
namespace impeller {
class SrgbToLinearFilterContents final : public ColorFilterContents {
public:
SrgbToLinearFilterContents();
~SrgbToLinearFilterContents() override;
private:
// |FilterContents|
std::optional<Snapshot> RenderFilter(
const FilterInput::Vector& input_textures,
const ContentContext& renderer,
const Entity& entity,
const Matrix& effect_transform,
const Rect& coverage) const override;
FML_DISALLOW_COPY_AND_ASSIGN(SrgbToLinearFilterContents);
};
} // namespace impeller