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

Unified Diff: tools/telemetry/telemetry/core/bitmap.py

Issue 106523006: Add options to GPU pixel test to use cloud storage for reference and error images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/telemetry/telemetry/page/cloud_storage.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/bitmap.py
diff --git a/tools/telemetry/telemetry/core/bitmap.py b/tools/telemetry/telemetry/core/bitmap.py
index 471fe5f28df23d1aed4a96e46b65850f9b88c76f..234ea68063ced44eaae834a7aa9b16f0621755cd 100644
--- a/tools/telemetry/telemetry/core/bitmap.py
+++ b/tools/telemetry/telemetry/core/bitmap.py
@@ -92,7 +92,10 @@ class Bitmap(object):
def WritePngFile(self, path):
with open(path, "wb") as f:
- png.Writer(**self.metadata).write_array(f, self.pixels)
+ self.WritePngToFile(f)
+
+ def WritePngToFile(self, f):
dtu 2013/12/20 00:37:57 WritePngToFileObject Also unit test
Ken Russell (switch to Gerrit) 2013/12/20 01:52:51 Done.
+ png.Writer(**self._metadata).write_array(f, self.pixels)
@staticmethod
def FromPng(png_data):
« no previous file with comments | « content/test/gpu/gpu_tests/pixel.py ('k') | tools/telemetry/telemetry/page/cloud_storage.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698