Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: tools/perf/measurements/screenshot.py

Issue 668753002: [Telemetry] Migrate bitmap.py from bitmaptools.cc to numpy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/pixel.py ('k') | tools/perf/metrics/speedindex.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/screenshot.py
diff --git a/tools/perf/measurements/screenshot.py b/tools/perf/measurements/screenshot.py
index 49309b374e1390d1a1f701a7dabedabb88e4c642..37936f8a90a80482afc629d3eb589ea3d61ac48f 100644
--- a/tools/perf/measurements/screenshot.py
+++ b/tools/perf/measurements/screenshot.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import os
+from telemetry.image_processing import image_util
from telemetry.page import page_test
from telemetry.page import page_test
from telemetry.value import scalar
@@ -31,7 +32,7 @@ class Screenshot(page_test.PageTest):
else:
previous_mtime = -1
- screenshot.WritePngFile(outpath)
+ image_util.WritePngFile(screenshot, outpath)
saved_picture_count = 0
if os.path.exists(outpath) and os.path.getmtime(outpath) > previous_mtime:
« no previous file with comments | « content/test/gpu/gpu_tests/pixel.py ('k') | tools/perf/metrics/speedindex.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698