File tree Expand file tree Collapse file tree 3 files changed +21
-19
lines changed
engine/src/flutter/impeller Expand file tree Collapse file tree 3 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ bool LineContents::Render(const ContentContext& renderer,
162
162
163
163
VS::FrameInfo frame_info;
164
164
FS::FragInfo frag_info;
165
- frag_info.color = color_. Premultiply () ;
165
+ frag_info.color = color_;
166
166
167
167
PipelineBuilderCallback pipeline_callback =
168
168
[&renderer](ContentContextOptions options) {
Original file line number Diff line number Diff line change 4
4
5
5
precision mediump float ;
6
6
7
+ #include < impeller/ color.glsl>
7
8
#include < impeller/ types.glsl>
8
9
9
10
uniform FragInfo {
@@ -41,4 +42,5 @@ float CalculateLine() {
41
42
void main() {
42
43
float line = CalculateLine();
43
44
frag_color = vec4 (frag_info.color.xyz, line);
45
+ frag_color = IPPremultiply(frag_color);
44
46
}
Original file line number Diff line number Diff line change 4431
4431
"uses_late_zs_update" : false ,
4432
4432
"variants" : {
4433
4433
"Main" : {
4434
- "fp16_arithmetic" : 6 ,
4434
+ "fp16_arithmetic" : 0 ,
4435
4435
"has_stack_spilling" : false ,
4436
4436
"performance" : {
4437
4437
"longest_path_bound_pipelines" : [
4438
4438
" varying"
4439
4439
],
4440
4440
"longest_path_cycles" : [
4441
- 0.21875 ,
4442
- 0.140625 ,
4443
- 0.21875 ,
4441
+ 0.1875 ,
4442
+ 0.1875 ,
4443
+ 0.1875 ,
4444
4444
0.0 ,
4445
4445
0.0 ,
4446
4446
1.75 ,
4459
4459
" varying"
4460
4460
],
4461
4461
"shortest_path_cycles" : [
4462
- 0.140625 ,
4463
- 0.125 ,
4464
- 0.140625 ,
4462
+ 0.171875 ,
4463
+ 0.171875 ,
4464
+ 0.109375 ,
4465
4465
0.0 ,
4466
4466
0.0 ,
4467
4467
1.75 ,
4471
4471
" varying"
4472
4472
],
4473
4473
"total_cycles" : [
4474
- 0.21875 ,
4475
- 0.140625 ,
4476
- 0.21875 ,
4474
+ 0.1875 ,
4475
+ 0.1875 ,
4476
+ 0.1875 ,
4477
4477
0.0 ,
4478
4478
0.0 ,
4479
4479
1.75 ,
8251
8251
"uses_late_zs_update" : false ,
8252
8252
"variants" : {
8253
8253
"Main" : {
8254
- "fp16_arithmetic" : 15 ,
8254
+ "fp16_arithmetic" : 33 ,
8255
8255
"has_stack_spilling" : false ,
8256
8256
"performance" : {
8257
8257
"longest_path_bound_pipelines" : [
8258
8258
" varying"
8259
8259
],
8260
8260
"longest_path_cycles" : [
8261
8261
0.1875 ,
8262
- 0.140625 ,
8263
- 0.1875 ,
8262
+ 0.171875 ,
8263
+ 0.15625 ,
8264
8264
0.1875 ,
8265
8265
0.0 ,
8266
8266
1.75 ,
8280
8280
],
8281
8281
"shortest_path_cycles" : [
8282
8282
0.1875 ,
8283
- 0.125 ,
8284
- 0.140625 ,
8283
+ 0.15625 ,
8284
+ 0.109375 ,
8285
8285
0.1875 ,
8286
8286
0.0 ,
8287
8287
1.75 ,
8292
8292
],
8293
8293
"total_cycles" : [
8294
8294
0.1875 ,
8295
- 0.140625 ,
8296
- 0.1875 ,
8295
+ 0.171875 ,
8296
+ 0.15625 ,
8297
8297
0.1875 ,
8298
8298
0.0 ,
8299
8299
1.75 ,
8302
8302
},
8303
8303
"stack_spill_bytes" : 0 ,
8304
8304
"thread_occupancy" : 100 ,
8305
- "uniform_registers_used" : 6 ,
8305
+ "uniform_registers_used" : 4 ,
8306
8306
"work_registers_used" : 18
8307
8307
}
8308
8308
}
You can’t perform that action at this time.
0 commit comments