From b016356c1ed92dccd8b6776d3eaf49355653c59e Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 23 Feb 2017 17:58:05 -0800 Subject: [PATCH] Roll Skia revision to 3f81f3703a68755c88f5cc4a87728b98f34c4cd4 (flutter/engine#3438) --- DEPS | 2 +- engine/src/flutter/flow/instrumentation.cc | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/DEPS b/DEPS index 0911167496..e87ef2585b 100644 --- a/DEPS +++ b/DEPS @@ -23,7 +23,7 @@ vars = { 'skia_git': 'https://skia.googlesource.com', 'github_git': 'https://github.com', 'base_revision': 'b2412302ed4e45bfb47d7b5c0c3418077009e1ce', - 'skia_revision': '1c8e82b72bfeb1a02297688cf082c365b62705f7', + 'skia_revision': '3f81f3703a68755c88f5cc4a87728b98f34c4cd4', # Note: When updating the Dart revision, ensure that all entries that are # dependencies of dart are also updated diff --git a/engine/src/flutter/flow/instrumentation.cc b/engine/src/flutter/flow/instrumentation.cc index bff1d8120e..74ddb5351d 100644 --- a/engine/src/flutter/flow/instrumentation.cc +++ b/engine/src/flutter/flow/instrumentation.cc @@ -151,9 +151,11 @@ void Stopwatch::Visualize(SkCanvas& canvas, const SkRect& rect) const { double sample_x = x + width * (static_cast(current_sample_) / kMaxSamples) - sample_margin_width; - canvas.drawRectCoords(sample_x, y, sample_x + width * sample_unit_width + - sample_margin_width * 2, - bottom, paint); + + const auto marker_rect = SkRect::MakeLTRB( + sample_x, y, + sample_x + width * sample_unit_width + sample_margin_width * 2, bottom); + canvas.drawRect(marker_rect, paint); } CounterValues::CounterValues() : current_sample_(kMaxSamples - 1) { @@ -220,9 +222,10 @@ void CounterValues::Visualize(SkCanvas& canvas, const SkRect& rect) const { double sample_x = x + width * (static_cast(current_sample_) / kMaxSamples) - sample_margin_width; - canvas.drawRectCoords(sample_x, y, sample_x + width * sample_unit_width + - sample_margin_width * 2, - bottom, paint); + const auto marker_rect = SkRect::MakeLTRB( + sample_x, y, + sample_x + width * sample_unit_width + sample_margin_width * 2, bottom); + canvas.drawRect(marker_rect, paint); } int64_t CounterValues::GetCurrentValue() const {