Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
flow
layers
backdrop_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_BACKDROP_FILTER_LAYER_H_
6
#define FLUTTER_FLOW_LAYERS_BACKDROP_FILTER_LAYER_H_
7
8
#include "flutter/flow/layers/container_layer.h"
9
#include "
third_party/skia/include/core/SkImageFilter.h
"
10
11
namespace
flutter
{
12
13
class
BackdropFilterLayer
:
public
ContainerLayer
{
14
public
:
15
BackdropFilterLayer
(std::shared_ptr<const DlImageFilter> filter,
16
DlBlendMode
blend_mode);
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
std::shared_ptr<const DlImageFilter> filter_;
26
DlBlendMode
blend_mode_;
27
28
FML_DISALLOW_COPY_AND_ASSIGN
(
BackdropFilterLayer
);
29
};
30
31
}
// namespace flutter
32
33
#endif
// FLUTTER_FLOW_LAYERS_BACKDROP_FILTER_LAYER_H_
SkImageFilter.h
flutter::BackdropFilterLayer
Definition
backdrop_filter_layer.h:13
flutter::BackdropFilterLayer::Preroll
void Preroll(PrerollContext *context) override
Definition
backdrop_filter_layer.cc:42
flutter::BackdropFilterLayer::Diff
void Diff(DiffContext *context, const Layer *old_layer) override
Definition
backdrop_filter_layer.cc:14
flutter::ContainerLayer
Definition
container_layer.h:14
flutter::DiffContext
Definition
diff_context.h:44
flutter::Layer
Definition
layer.h:126
flutter::Paint
Definition
paint.h:15
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
flutter::DlBlendMode
DlBlendMode
Definition
dl_blend_mode.h:26
flutter::PaintContext
Definition
layer.h:87
flutter::PrerollContext
Definition
layer.h:54
Generated on Fri Apr 26 2024 06:14:03 for Flutter Engine by
1.9.8