Flutter Engine
The Flutter Engine
placeholder_filter_input.cc
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
6
7#include <optional>
8#include <utility>
9
11
12namespace impeller {
13
15 : coverage_rect_(coverage_rect) {}
16
18
20 return coverage_rect_;
21}
22
24 const std::string& label,
26 const Entity& entity,
27 std::optional<Rect> coverage_limit,
28 int32_t mip_count) const {
29 return std::nullopt;
30}
31
33 const Entity& entity) const {
34 return coverage_rect_;
35}
36
38 const std::shared_ptr<LazyGlyphAtlas>& lazy_glyph_atlas,
39 Scalar scale) {}
40
41} // namespace impeller
std::variant< std::shared_ptr< FilterContents >, std::shared_ptr< Contents >, std::shared_ptr< Texture >, Rect > Variant
Definition: filter_input.h:37
void PopulateGlyphAtlas(const std::shared_ptr< LazyGlyphAtlas > &lazy_glyph_atlas, Scalar scale) override
std::optional< Snapshot > GetSnapshot(const std::string &label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit, int32_t mip_count=1) const override
std::optional< Rect > GetCoverage(const Entity &entity) const override
float Scalar
Definition: scalar.h:18
const Scalar scale