Flutter Engine
Loading...
Searching...
No Matches
image_filter_layer.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
#ifndef FLUTTER_FLOW_LAYERS_IMAGE_FILTER_LAYER_H_
6
#define FLUTTER_FLOW_LAYERS_IMAGE_FILTER_LAYER_H_
7
8
#include <memory>
9
#include "
flutter/flow/layers/cacheable_layer.h
"
10
11
namespace
flutter
{
12
13
class
ImageFilterLayer
:
public
CacheableContainerLayer
{
14
public
:
15
explicit
ImageFilterLayer
(
const
std::shared_ptr<DlImageFilter>& filter,
16
const
DlPoint
& offset =
DlPoint
());
17
18
void
Diff
(
DiffContext
* context,
const
Layer
* old_layer)
override
;
19
20
void
Preroll
(
PrerollContext
* context)
override
;
21
22
void
Paint
(
PaintContext
& context)
const override
;
23
24
private
:
25
DlPoint
offset_;
26
const
std::shared_ptr<DlImageFilter> filter_;
27
std::shared_ptr<DlImageFilter> transformed_filter_;
28
29
FML_DISALLOW_COPY_AND_ASSIGN
(
ImageFilterLayer
);
30
};
31
32
}
// namespace flutter
33
34
#endif
// FLUTTER_FLOW_LAYERS_IMAGE_FILTER_LAYER_H_
cacheable_layer.h
flutter::CacheableContainerLayer
Definition
cacheable_layer.h:33
flutter::DiffContext
Definition
diff_context.h:41
flutter::ImageFilterLayer
Definition
image_filter_layer.h:13
flutter::ImageFilterLayer::Diff
void Diff(DiffContext *context, const Layer *old_layer) override
Definition
image_filter_layer.cc:21
flutter::ImageFilterLayer::Preroll
void Preroll(PrerollContext *context) override
Definition
image_filter_layer.cc:52
flutter::Layer
Definition
layer.h:113
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
flutter::DlPoint
impeller::Point DlPoint
Definition
dl_geometry_types.h:21
flutter::PaintContext
Definition
layer.h:78
flutter::PrerollContext
Definition
layer.h:45
impeller::Paint
Definition
paint.h:27
impeller::TPoint< Scalar >
flow
layers
image_filter_layer.h
Generated on Thu Nov 6 2025 16:11:21 for Flutter Engine by
1.9.8