| Index: tools/telemetry/telemetry/core/tab.py
|
| diff --git a/tools/telemetry/telemetry/core/tab.py b/tools/telemetry/telemetry/core/tab.py
|
| index 5e6138dedfa2d976c017ed77d1bd18fca4f79bde..ace4cfe98e8986653374c7c5cc7427fe0766103e 100644
|
| --- a/tools/telemetry/telemetry/core/tab.py
|
| +++ b/tools/telemetry/telemetry/core/tab.py
|
| @@ -109,7 +109,9 @@ class Tab(web_contents.WebContents):
|
| screen.style.zIndex = '2147483638';
|
| document.body.appendChild(screen);
|
| requestAnimationFrame(function() {
|
| - window.__telemetry_screen_%d = screen;
|
| + requestAnimationFrame(function() {
|
| + window.__telemetry_screen_%d = screen;
|
| + });
|
| });
|
| })();
|
| """ % (color.r, color.g, color.b, color.a, int(color)))
|
| @@ -122,7 +124,11 @@ class Tab(web_contents.WebContents):
|
| (function() {
|
| document.body.removeChild(window.__telemetry_screen_%d);
|
| requestAnimationFrame(function() {
|
| - window.__telemetry_screen_%d = null;
|
| + requestAnimationFrame(function() {
|
| + window.__telemetry_screen_%d = null;
|
| + console.time('__ClearHighlight.video_capture_start');
|
| + console.timeEnd('__ClearHighlight.video_capture_start');
|
| + });
|
| });
|
| })();
|
| """ % (int(color), int(color)))
|
|
|