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

Issue 190693002: Migrate Telemetry from beginWindowSnapshotPNG to Page.captureScreenshot (Closed)

Created:
6 years, 9 months ago by Vladislav Kaznacheev
Modified:
6 years, 5 months ago
CC:
chromium-reviews, jam, yurys, joi+watch-content_chromium.org, paulirish+reviews_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Visibility:
Public.

Description

Migrate Telemetry from beginWindowSnapshotPNG to Page.captureScreenshot This patch: 1. Changes Page.captureScreenshot implementation to synchronize with the renderer properly. 2. Migrates Telemetry test to using Page.captureScreenshot, including screenshot_sync test. 3. Removes window.chrome.gpuBenchmarking.beginWindowSnapshotPNG as obsolete. BUG=242405

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added TODO #

Patch Set 3 : Aligned with the existing API #

Total comments: 4

Patch Set 4 : Refactored Telemetry #

Patch Set 5 : Increased repetitions #

Patch Set 6 : Rebase #

Patch Set 7 : Fixed linux compile #

Total comments: 1

Patch Set 8 : Rebase #

Patch Set 9 : Rebase after the compositor fix #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -314 lines) Patch
M content/browser/devtools/renderer_overrides_handler.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/devtools/renderer_overrides_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -25 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +39 lines, -36 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -6 lines 0 comments Download
M content/public/browser/render_widget_host.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -28 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +1 line, -14 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +3 lines, -23 lines 0 comments Download
M content/test/data/gpu/screenshot_sync.html View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -131 lines 0 comments Download
M content/test/gpu/gpu_tests/screenshot_sync.py View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -34 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Vladislav Kaznacheev
6 years, 9 months ago (2014-03-07 11:54:46 UTC) #1
pfeldman
https://chromiumcodereview.appspot.com/190693002/diff/1/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://chromiumcodereview.appspot.com/190693002/diff/1/content/browser/renderer_host/render_widget_host_impl.h#newcode180 content/browser/renderer_host/render_widget_host_impl.h:180: virtual void GetSnapshotFromRenderer( It looks like this method is ...
6 years, 9 months ago (2014-03-07 12:21:22 UTC) #2
Vladislav Kaznacheev
https://chromiumcodereview.appspot.com/190693002/diff/1/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://chromiumcodereview.appspot.com/190693002/diff/1/content/browser/renderer_host/render_widget_host_impl.h#newcode180 content/browser/renderer_host/render_widget_host_impl.h:180: virtual void GetSnapshotFromRenderer( This method is used when the ...
6 years, 9 months ago (2014-03-11 13:08:56 UTC) #3
Vladislav Kaznacheev
Please review for the general sanity. Will add OWNERs for final approvals when you are ...
6 years, 9 months ago (2014-03-11 13:14:30 UTC) #4
Ken Russell (switch to Gerrit)
+bajones for review This CL leaves the code in a strange intermediate state. As much ...
6 years, 9 months ago (2014-03-11 18:22:29 UTC) #5
Vladislav Kaznacheev
https://chromiumcodereview.appspot.com/190693002/diff/40001/content/browser/devtools/renderer_overrides_handler.h File content/browser/devtools/renderer_overrides_handler.h (right): https://chromiumcodereview.appspot.com/190693002/diff/40001/content/browser/devtools/renderer_overrides_handler.h#newcode81 content/browser/devtools/renderer_overrides_handler.h:81: void ScreencastFrameCaptured( These are two different things. Screencast is ...
6 years, 9 months ago (2014-03-12 09:24:23 UTC) #6
Vladislav Kaznacheev
PTAL. Included the changes to Telemetry and window.chrome.gpuBenchmarking.
6 years, 9 months ago (2014-03-12 15:28:53 UTC) #7
bajones
This CL changes the intent of gpu_tests/screenshot_sync.html. The previous version was a stress test. It ...
6 years, 9 months ago (2014-03-12 17:03:46 UTC) #8
Ken Russell (switch to Gerrit)
On 2014/03/12 17:03:46, bajones wrote: > This CL changes the intent of gpu_tests/screenshot_sync.html. The previous ...
6 years, 9 months ago (2014-03-12 17:47:51 UTC) #9
Vladislav Kaznacheev
On 2014/03/12 17:47:51, Ken Russell wrote: > On 2014/03/12 17:03:46, bajones wrote: > > This ...
6 years, 9 months ago (2014-03-12 19:44:06 UTC) #10
Ken Russell (switch to Gerrit)
On 2014/03/12 19:44:06, Vladislav Kaznacheev wrote: > On 2014/03/12 17:47:51, Ken Russell wrote: > > ...
6 years, 9 months ago (2014-03-12 20:23:47 UTC) #11
Vladislav Kaznacheev
On 2014/03/12 20:23:47, Ken Russell wrote: > On 2014/03/12 19:44:06, Vladislav Kaznacheev wrote: > > ...
6 years, 9 months ago (2014-03-13 14:01:01 UTC) #12
bajones
On 2014/03/13 14:01:01, Vladislav Kaznacheev wrote: > I have increased snapshot repetitions to 50. I ...
6 years, 9 months ago (2014-03-13 16:34:55 UTC) #13
Ken Russell (switch to Gerrit)
This looks good overall. Could you please send this CL to the linux_gpu, win_gpu and ...
6 years, 9 months ago (2014-03-13 18:11:46 UTC) #14
Ken Russell (switch to Gerrit)
phajdan.jr@ points out that you may also need an explicit -m argument to git cl ...
6 years, 9 months ago (2014-03-13 18:12:24 UTC) #15
nduca
so exciting, thank you for contributing this patch. minor issue. https://codereview.chromium.org/190693002/diff/110001/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py File tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py (right): https://codereview.chromium.org/190693002/diff/110001/tools/telemetry/telemetry/core/backends/chrome/inspector_backend.py#newcode120 ...
6 years, 9 months ago (2014-03-17 20:06:49 UTC) #16
Ken Russell (switch to Gerrit)
Thanks for submitting the try jobs; looks like they're working well. LGTM with nduca's comment ...
6 years, 9 months ago (2014-03-17 21:30:18 UTC) #17
Vladislav Kaznacheev
On 2014/03/17 21:30:18, Ken Russell wrote: > Thanks for submitting the try jobs; looks like ...
6 years, 9 months ago (2014-03-19 12:31:09 UTC) #18
bajones
Thanks for investigating! This definitely sounds like a problem, and presumably one that could occur ...
6 years, 9 months ago (2014-03-19 15:47:54 UTC) #19
Vladislav Kaznacheev
On 2014/03/19 15:47:54, bajones wrote: > Thanks for investigating! > > This definitely sounds like ...
6 years, 9 months ago (2014-03-20 07:41:05 UTC) #20
bajones
http://crbug.com/354339 is fixed now, and I've verified that this with that fix in place this ...
6 years, 7 months ago (2014-05-22 23:09:01 UTC) #21
Vladislav Kaznacheev
On 2014/05/22 23:09:01, bajones wrote: > http://crbug.com/354339 is fixed now, and I've verified that this ...
6 years, 7 months ago (2014-05-23 11:48:19 UTC) #22
Vladislav Kaznacheev
Hello OWNERS, pfeldman@, please review: content/browser/devtools/renderer_overrides_handler.cc content/browser/devtools/renderer_overrides_handler.h kbr@, please review: content/browser/renderer_host/render_widget_host_impl.cc content/browser/renderer_host/render_widget_host_impl.h content/renderer/gpu/gpu_benchmarking_extension.cc content/test/data/gpu/screenshot_sync.html content/test/gpu/gpu_tests/screenshot_sync.py ...
6 years, 7 months ago (2014-05-28 09:15:54 UTC) #23
jochen (gone - plz use gerrit)
+enne/danakj who recently ripped out similar APIs
6 years, 6 months ago (2014-05-28 12:10:29 UTC) #24
tonyg
Let's split the Telemetry change into a separate patch. Since Telemetry has to work back ...
6 years, 6 months ago (2014-05-28 17:12:19 UTC) #25
Tom Sepez
Messages LGTM.
6 years, 6 months ago (2014-05-28 17:32:10 UTC) #26
Vladislav Kaznacheev
On 2014/05/28 17:12:19, tonyg wrote: > Let's split the Telemetry change into a separate patch. ...
6 years, 6 months ago (2014-05-29 11:29:54 UTC) #27
tonyg
> How about I try and teach telemetry to support both the old way and ...
6 years, 6 months ago (2014-05-30 17:12:25 UTC) #28
Ken Russell (switch to Gerrit)
6 years, 6 months ago (2014-06-05 01:43:24 UTC) #29
I'm really sorry for taking so long to get to this code review. It looks great
overall.

I'm not sure how many Telemetry consumers are really using the Screenshot
support. From the standpoint of the GPU bots, since they only test on top of
tree, it would be fine to require the new code path. However, it shouldn't be
hard to test for the existence of
window.chrome.gpuBenchmarking.beginWindowSnapshotPNG and just go down the old
code path if necessary.

Powered by Google App Engine
This is Rietveld 408576698