From 455ceab5f9986dcb5abcb1feb99e00ea62598ab2 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Sun, 10 Jan 2016 15:11:11 -0800 Subject: [PATCH] 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. --- sky/compositor/statistics_layer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/compositor/statistics_layer.cc b/sky/compositor/statistics_layer.cc index 2eabf7d8ae1..9f830b843bf 100644 --- a/sky/compositor/statistics_layer.cc +++ b/sky/compositor/statistics_layer.cc @@ -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),