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

Unified Diff: tools/telemetry/telemetry/core/platform/__init__.py

Issue 141053006: [telemetry] Process streams of bitmaps via BitmapIter Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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
Index: tools/telemetry/telemetry/core/platform/__init__.py
diff --git a/tools/telemetry/telemetry/core/platform/__init__.py b/tools/telemetry/telemetry/core/platform/__init__.py
index a72004fec6d4ad93576299414d308ed4758c3e88..3a3f3f6457b8f3712a651d9f3c17fa59b436b088 100644
--- a/tools/telemetry/telemetry/core/platform/__init__.py
+++ b/tools/telemetry/telemetry/core/platform/__init__.py
@@ -150,14 +150,9 @@ class Platform(object):
def StopVideoCapture(self):
"""Stops capturing video.
- Yields:
- (time_ms, bitmap) tuples representing each video keyframe. Only the first
- frame in a run of sequential duplicate bitmaps is included.
- time_ms is milliseconds relative to the first frame.
- bitmap is a telemetry.core.Bitmap.
+ Returns a telemetry.core.BitmapIter.
"""
- for t in self._platform_backend.StopVideoCapture():
- yield t
+ return self._platform_backend.StopVideoCapture()
def CreatePlatformBackendForCurrentOS():
« no previous file with comments | « tools/telemetry/telemetry/core/bitmapiter.py ('k') | tools/telemetry/telemetry/core/platform/android_platform_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698