Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
flow
layers
shader_mask_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_SHADER_MASK_LAYER_H_
6
#define FLUTTER_FLOW_LAYERS_SHADER_MASK_LAYER_H_
7
8
#include "flutter/display_list/effects/dl_color_source.h"
9
#include "flutter/flow/layers/cacheable_layer.h"
10
11
namespace
flutter
{
12
13
class
ShaderMaskLayer
:
public
CacheableContainerLayer
{
14
public
:
15
ShaderMaskLayer
(std::shared_ptr<DlColorSource> color_source,
16
const
SkRect
& mask_rect,
17
DlBlendMode
blend_mode);
18
19
void
Diff
(
DiffContext
* context,
const
Layer
* old_layer)
override
;
20
21
void
Preroll
(
PrerollContext
* context)
override
;
22
23
void
Paint
(
PaintContext
& context)
const override
;
24
25
private
:
26
std::shared_ptr<DlColorSource> color_source_;
27
SkRect
mask_rect_;
28
DlBlendMode
blend_mode_;
29
30
FML_DISALLOW_COPY_AND_ASSIGN
(
ShaderMaskLayer
);
31
};
32
33
}
// namespace flutter
34
35
#endif
// FLUTTER_FLOW_LAYERS_SHADER_MASK_LAYER_H_
flutter::CacheableContainerLayer
Definition
cacheable_layer.h:32
flutter::DiffContext
Definition
diff_context.h:44
flutter::Layer
Definition
layer.h:126
flutter::Paint
Definition
paint.h:15
flutter::ShaderMaskLayer
Definition
shader_mask_layer.h:13
flutter::ShaderMaskLayer::Diff
void Diff(DiffContext *context, const Layer *old_layer) override
Definition
shader_mask_layer.cc:19
flutter::ShaderMaskLayer::Preroll
void Preroll(PrerollContext *context) override
Definition
shader_mask_layer.cc:37
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
SkRect
Definition
extension.cpp:13
flutter::PaintContext
Definition
layer.h:87
flutter::PrerollContext
Definition
layer.h:54
Generated on Fri Apr 26 2024 06:14:04 for Flutter Engine by
1.9.8