mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] use correct blend mode for performance overlay (flutter/engine#45365)
Man this is a sharp ðª I literally pointed this out in the review and failed to notice the wrong parameter had the blend mode.
This commit is contained in:
parent
83ece1f3e3
commit
bad97b052b
@ -101,7 +101,11 @@ void DlStopwatchVisualizer::Visualize(DlCanvas* canvas,
|
||||
}
|
||||
|
||||
// Actually draw.
|
||||
// Note we use kSrcOver, because some of the colors above have opacity < 1.0.
|
||||
// Use kSrcOver blend mode so that elements under the performance overlay are
|
||||
// partially visible.
|
||||
paint.setBlendMode(DlBlendMode::kSrcOver);
|
||||
// The second blend mode does nothing since the paint has no additional color
|
||||
// sources like a tiled image or gradient.
|
||||
canvas->DrawVertices(painter.IntoVertices(), DlBlendMode::kSrcOver, paint);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user