提交 455ceab5 编写于 作者: I Ian Hickson

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.
上级 59c07578
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册