Flutter Impeller
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
5
#include "
impeller/entity/contents/filters/inputs/placeholder_filter_input.h
"
6
7
#include <optional>
8
9
namespace
impeller
{
10
11
PlaceholderFilterInput::PlaceholderFilterInput
(
Rect
coverage_rect)
12
: coverage_rect_(coverage_rect) {}
13
14
PlaceholderFilterInput::~PlaceholderFilterInput
() =
default
;
15
16
std::optional<Snapshot>
PlaceholderFilterInput::GetSnapshot
(
17
std::string_view label,
18
const
ContentContext
& renderer,
19
const
Entity
& entity,
20
std::optional<Rect> coverage_limit,
21
int32_t mip_count)
const
{
22
return
std::nullopt;
23
}
24
25
std::optional<Rect>
PlaceholderFilterInput::GetCoverage
(
26
const
Entity
& entity)
const
{
27
return
coverage_rect_;
28
}
29
30
}
// namespace impeller
impeller::ContentContext
Definition:
content_context.h:138
impeller::Entity
Definition:
entity.h:26
impeller::PlaceholderFilterInput::GetSnapshot
std::optional< Snapshot > GetSnapshot(std::string_view label, const ContentContext &renderer, const Entity &entity, std::optional< Rect > coverage_limit, int32_t mip_count=1) const override
Definition:
placeholder_filter_input.cc:16
impeller::PlaceholderFilterInput::PlaceholderFilterInput
PlaceholderFilterInput(Rect coverage)
Definition:
placeholder_filter_input.cc:11
impeller::PlaceholderFilterInput::~PlaceholderFilterInput
~PlaceholderFilterInput() override
impeller::PlaceholderFilterInput::GetCoverage
std::optional< Rect > GetCoverage(const Entity &entity) const override
Definition:
placeholder_filter_input.cc:25
impeller
Definition:
allocation.cc:12
placeholder_filter_input.h
impeller::TRect< Scalar >
impeller
entity
contents
filters
inputs
placeholder_filter_input.cc
Generated by
1.9.1