Flutter Impeller
local_matrix_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/filter_contents.h
"
8
#include "
impeller/entity/contents/filters/inputs/filter_input.h
"
9
10
namespace
impeller
{
11
12
class
LocalMatrixFilterContents
final :
public
FilterContents
{
13
public
:
14
LocalMatrixFilterContents
();
15
16
~LocalMatrixFilterContents
()
override
;
17
18
void
SetMatrix
(
Matrix
matrix);
19
20
// |FilterContents|
21
Matrix
GetLocalTransform
(
const
Matrix
& parent_transform)
const override
;
22
23
private
:
24
// |FilterContents|
25
std::optional<Entity> RenderFilter(
26
const
FilterInput::Vector
& input_textures,
27
const
ContentContext
& renderer,
28
const
Entity
& entity,
29
const
Matrix
& effect_transform,
30
const
Rect
& coverage,
31
const
std::optional<Rect>& coverage_hint)
const override
;
32
33
Matrix
matrix_;
34
35
FML_DISALLOW_COPY_AND_ASSIGN(
LocalMatrixFilterContents
);
36
};
37
38
}
// namespace impeller
impeller::LocalMatrixFilterContents::LocalMatrixFilterContents
LocalMatrixFilterContents()
impeller::Entity
Definition:
entity.h:21
filter_contents.h
filter_input.h
impeller::LocalMatrixFilterContents::GetLocalTransform
Matrix GetLocalTransform(const Matrix &parent_transform) const override
Definition:
local_matrix_filter_contents.cc:17
impeller::LocalMatrixFilterContents::SetMatrix
void SetMatrix(Matrix matrix)
Definition:
local_matrix_filter_contents.cc:13
impeller::LocalMatrixFilterContents::~LocalMatrixFilterContents
~LocalMatrixFilterContents() override
impeller::FilterInput::Vector
std::vector< FilterInput::Ref > Vector
Definition:
filter_input.h:32
impeller::LocalMatrixFilterContents
Definition:
local_matrix_filter_contents.h:12
impeller
Definition:
aiks_context.cc:10
impeller::ContentContext
Definition:
content_context.h:344
impeller::TRect< Scalar >
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition:
matrix.h:36
impeller::FilterContents
Definition:
filter_contents.h:19
impeller
entity
contents
filters
local_matrix_filter_contents.h
Generated by
1.8.17