OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from metrics import smoothness | 5 from metrics import smoothness |
6 from metrics import timeline | 6 from metrics import timeline |
7 from telemetry.page import page_test | 7 from telemetry.page import page_test |
8 from telemetry.page import page_measurement | 8 from telemetry.page import page_measurement |
9 | 9 |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 self._metric.Stop(page, tab) | 52 self._metric.Stop(page, tab) |
53 | 53 |
54 def MeasurePage(self, page, tab, results): | 54 def MeasurePage(self, page, tab, results): |
55 self._metric.AddResults(tab, results) | 55 self._metric.AddResults(tab, results) |
56 | 56 |
57 if tab.browser.platform.IsRawDisplayFrameRateSupported(): | 57 if tab.browser.platform.IsRawDisplayFrameRateSupported(): |
58 for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements(): | 58 for r in tab.browser.platform.GetRawDisplayFrameRateMeasurements(): |
59 if r.value is None: | 59 if r.value is None: |
60 raise MissingDisplayFrameRateError(r.name) | 60 raise MissingDisplayFrameRateError(r.name) |
61 results.Add(r.name, r.unit, r.value) | 61 results.Add(r.name, r.unit, r.value) |
| 62 |
| 63 class SmoothnessWithRestart(Smoothness): |
| 64 def NeedsBrowserRestartAfterEachRun(self, browser): |
| 65 return True |
OLD | NEW |