mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
StatisticsLayer was shifting subsequent paints.
Turns out we weren't actually saving and restoring the matrix, so our combined 180.0 pixel downshift was also affecting all subsequent paints in the frame.
This commit is contained in:
parent
59c075786a
commit
455ceab5f9
@ -66,7 +66,7 @@ void StatisticsLayer::Paint(PaintContext::ScopedFrame& frame) {
|
||||
using Opt = CompositorOptions::Option;
|
||||
|
||||
SkScalar width = has_paint_bounds() ? paint_bounds().width() : 0;
|
||||
SkAutoCanvasRestore save(&frame.canvas(), false);
|
||||
SkAutoCanvasRestore save(&frame.canvas(), true);
|
||||
|
||||
VisualizeStopWatch(frame.canvas(), frame.context().frame_time(), width,
|
||||
options_.isEnabled(Opt::VisualizeRasterizerStatistics),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user