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

Issue 311313003: DevTools: Fix for Page.captureScreenshot (Closed)

Created:
6 years, 6 months ago by vkuzkokov
Modified:
6 years, 6 months ago
CC:
chromium-reviews, vsevik, creis+watch_chromium.org, tdresser+watch_chromium.org, nasko+codewatch_chromium.org, jam, yurys, paulirish+reviews_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

DevTools: Fix for Page.captureScreenshot from https://chromiumcodereview.appspot.com/190693002/ This patch makes Page.captureScreenshot synchronize with the renderer. When fixed implementation hits Stable it will be possible to use Page.captureScreenshot in Telemetry instead of window.chrome.gpuBenchmarking.beginWindowSnapshotPNG and remove the latter. BUG=242405 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278472 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279094

Patch Set 1 #

Patch Set 2 : Added test #

Total comments: 4

Patch Set 3 : Added TODO #

Patch Set 4 : Added missing overrides and virtuals #

Patch Set 5 : Added WINDOW_OLD_SNAPSHOT where needed. Disabled test on Android. #

Patch Set 6 : Fix for mac #

Patch Set 7 : Fix for mac (again) #

Total comments: 2

Patch Set 8 : Removed GetSnapshotFromBrowser from public API #

Patch Set 9 : Added comment #

Patch Set 10 : Added tolerance #

Patch Set 11 : Used std::abs #

Patch Set 12 : cast to int #

Patch Set 13 : Removed debug hook #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -82 lines) Patch
M content/browser/devtools/renderer_overrides_handler.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler.cc View 1 2 chunks +19 lines, -39 lines 0 comments Download
M content/browser/devtools/renderer_overrides_handler_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +70 lines, -33 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 7 chunks +67 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
M ui/events/latency_info.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/latency_info.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
vkuzkokov
6 years, 6 months ago (2014-06-11 18:33:15 UTC) #1
Vladislav Kaznacheev
Please expand the patch description so that the choices you have made are obvious. https://codereview.chromium.org/311313003/diff/20001/content/browser/devtools/renderer_overrides_handler_browsertest.cc ...
6 years, 6 months ago (2014-06-16 08:25:27 UTC) #2
vkuzkokov
https://codereview.chromium.org/311313003/diff/20001/content/browser/devtools/renderer_overrides_handler_browsertest.cc File content/browser/devtools/renderer_overrides_handler_browsertest.cc (right): https://codereview.chromium.org/311313003/diff/20001/content/browser/devtools/renderer_overrides_handler_browsertest.cc#newcode113 content/browser/devtools/renderer_overrides_handler_browsertest.cc:113: EXPECT_TRUE(content::ExecuteScript( On 2014/06/16 08:25:27, Vladislav Kaznacheev wrote: > Does ...
6 years, 6 months ago (2014-06-16 10:01:24 UTC) #3
Vladislav Kaznacheev
lgtm
6 years, 6 months ago (2014-06-16 12:47:33 UTC) #4
vkuzkokov
The CQ bit was checked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-16 12:49:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vkuzkokov@chromium.org/311313003/40001
6 years, 6 months ago (2014-06-16 12:49:49 UTC) #6
vkuzkokov
The CQ bit was unchecked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-16 13:14:44 UTC) #7
vkuzkokov
PTAL ccameron: content/browser/renderer_host/render_widget_host_view_mac.mm jbauman: ui/events/latency_info.h ui/events/latency_info.cc
6 years, 6 months ago (2014-06-17 17:04:14 UTC) #8
ccameron
lgtm
6 years, 6 months ago (2014-06-17 17:09:51 UTC) #9
jbauman
ui/events/latency_info.* lgtm
6 years, 6 months ago (2014-06-17 23:47:21 UTC) #10
vkuzkokov
jam, PTAL: content/browser/renderer_host/render_widget_host_impl.h content/browser/renderer_host/render_widget_host_impl.cc content/common/view_messages.h content/public/browser/render_widget_host.h content/renderer/render_view_impl.h content/renderer/render_view_impl.cc
6 years, 6 months ago (2014-06-18 09:20:39 UTC) #11
jam
lgtm with comment https://codereview.chromium.org/311313003/diff/120001/content/public/browser/render_widget_host.h File content/public/browser/render_widget_host.h (right): https://codereview.chromium.org/311313003/diff/120001/content/public/browser/render_widget_host.h#newcode298 content/public/browser/render_widget_host.h:298: const base::Callback<void(const unsigned char*, size_t)> callback) ...
6 years, 6 months ago (2014-06-18 16:46:35 UTC) #12
vkuzkokov
https://codereview.chromium.org/311313003/diff/120001/content/public/browser/render_widget_host.h File content/public/browser/render_widget_host.h (right): https://codereview.chromium.org/311313003/diff/120001/content/public/browser/render_widget_host.h#newcode298 content/public/browser/render_widget_host.h:298: const base::Callback<void(const unsigned char*, size_t)> callback) = 0; On ...
6 years, 6 months ago (2014-06-19 08:00:20 UTC) #13
vkuzkokov
tsepez, PTAL: content/common/view_messages.h
6 years, 6 months ago (2014-06-19 08:01:46 UTC) #14
Tom Sepez
Messages LGTM.
6 years, 6 months ago (2014-06-19 14:05:39 UTC) #15
vkuzkokov
The CQ bit was checked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-19 14:07:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vkuzkokov@chromium.org/311313003/160001
6 years, 6 months ago (2014-06-19 14:08:48 UTC) #17
commit-bot: I haz the power
Change committed as 278472
6 years, 6 months ago (2014-06-19 20:27:06 UTC) #18
vkuzkokov
The CQ bit was checked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-20 08:54:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vkuzkokov@chromium.org/311313003/180001
6 years, 6 months ago (2014-06-20 08:56:31 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 12:43:17 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 12:53:07 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/198268)
6 years, 6 months ago (2014-06-20 12:53:08 UTC) #23
vkuzkokov
The CQ bit was checked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-23 08:19:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vkuzkokov@chromium.org/311313003/200001
6 years, 6 months ago (2014-06-23 08:21:33 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-23 09:23:16 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-23 09:29:39 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/154882) android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/199083)
6 years, 6 months ago (2014-06-23 09:29:40 UTC) #28
vkuzkokov
The CQ bit was checked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-23 10:05:21 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vkuzkokov@chromium.org/311313003/240001
6 years, 6 months ago (2014-06-23 10:06:38 UTC) #30
vkuzkokov
The CQ bit was unchecked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-23 10:12:40 UTC) #31
vkuzkokov
The CQ bit was checked by vkuzkokov@chromium.org
6 years, 6 months ago (2014-06-23 10:15:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vkuzkokov@chromium.org/311313003/260001
6 years, 6 months ago (2014-06-23 10:15:37 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-23 12:07:22 UTC) #34
commit-bot: I haz the power
6 years, 6 months ago (2014-06-23 12:22:47 UTC) #35
Message was sent while issue was closed.
Change committed as 279094

Powered by Google App Engine
This is Rietveld 408576698