11
11
#include " flutter/fml/macros.h"
12
12
#include " fml/logging.h"
13
13
#include " impeller/base/validation.h"
14
+ #include " impeller/entity/advanced_blend.vert.h"
15
+ #include " impeller/entity/advanced_blend_colorburn.frag.h"
16
+ #include " impeller/entity/advanced_blend_screen.frag.h"
17
+ #include " impeller/entity/blend.frag.h"
18
+ #include " impeller/entity/blend.vert.h"
14
19
#include " impeller/entity/border_mask_blur.frag.h"
15
20
#include " impeller/entity/border_mask_blur.vert.h"
16
21
#include " impeller/entity/entity.h"
24
29
#include " impeller/entity/solid_fill.vert.h"
25
30
#include " impeller/entity/solid_stroke.frag.h"
26
31
#include " impeller/entity/solid_stroke.vert.h"
27
- #include " impeller/entity/texture_blend.frag.h"
28
- #include " impeller/entity/texture_blend.vert.h"
29
- #include " impeller/entity/texture_blend_screen.frag.h"
30
- #include " impeller/entity/texture_blend_screen.vert.h"
31
32
#include " impeller/entity/texture_fill.frag.h"
32
33
#include " impeller/entity/texture_fill.vert.h"
33
34
#include " impeller/renderer/formats.h"
@@ -38,10 +39,11 @@ using GradientFillPipeline =
38
39
PipelineT<GradientFillVertexShader, GradientFillFragmentShader>;
39
40
using SolidFillPipeline =
40
41
PipelineT<SolidFillVertexShader, SolidFillFragmentShader>;
41
- using TextureBlendPipeline =
42
- PipelineT<TextureBlendVertexShader, TextureBlendFragmentShader>;
43
- using TextureBlendScreenPipeline =
44
- PipelineT<TextureBlendScreenVertexShader, TextureBlendScreenFragmentShader>;
42
+ using BlendPipeline = PipelineT<BlendVertexShader, BlendFragmentShader>;
43
+ using BlendScreenPipeline =
44
+ PipelineT<AdvancedBlendVertexShader, AdvancedBlendScreenFragmentShader>;
45
+ using BlendColorburnPipeline =
46
+ PipelineT<AdvancedBlendVertexShader, AdvancedBlendColorburnFragmentShader>;
45
47
using TexturePipeline =
46
48
PipelineT<TextureFillVertexShader, TextureFillFragmentShader>;
47
49
using GaussianBlurPipeline =
@@ -98,14 +100,18 @@ class ContentContext {
98
100
return GetPipeline (solid_fill_pipelines_, opts);
99
101
}
100
102
101
- std::shared_ptr<Pipeline> GetTextureBlendPipeline (
102
- ContentContextOptions opts) const {
103
+ std::shared_ptr<Pipeline> GetBlendPipeline (ContentContextOptions opts) const {
103
104
return GetPipeline (texture_blend_pipelines_, opts);
104
105
}
105
106
106
- std::shared_ptr<Pipeline> GetTextureBlendScreenPipeline (
107
+ std::shared_ptr<Pipeline> GetBlendScreenPipeline (
108
+ ContentContextOptions opts) const {
109
+ return GetPipeline (blend_screen_pipelines_, opts);
110
+ }
111
+
112
+ std::shared_ptr<Pipeline> GetBlendColorburnPipeline (
107
113
ContentContextOptions opts) const {
108
- return GetPipeline (texture_blend_screen_pipelines_ , opts);
114
+ return GetPipeline (blend_colorburn_pipelines_ , opts);
109
115
}
110
116
111
117
std::shared_ptr<Pipeline> GetTexturePipeline (
@@ -161,8 +167,9 @@ class ContentContext {
161
167
// map.
162
168
mutable Variants<GradientFillPipeline> gradient_fill_pipelines_;
163
169
mutable Variants<SolidFillPipeline> solid_fill_pipelines_;
164
- mutable Variants<TextureBlendPipeline> texture_blend_pipelines_;
165
- mutable Variants<TextureBlendScreenPipeline> texture_blend_screen_pipelines_;
170
+ mutable Variants<BlendPipeline> texture_blend_pipelines_;
171
+ mutable Variants<BlendScreenPipeline> blend_screen_pipelines_;
172
+ mutable Variants<BlendColorburnPipeline> blend_colorburn_pipelines_;
166
173
mutable Variants<TexturePipeline> texture_pipelines_;
167
174
mutable Variants<GaussianBlurPipeline> gaussian_blur_pipelines_;
168
175
mutable Variants<BorderMaskBlurPipeline> border_mask_blur_pipelines_;
0 commit comments