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

Issue 2963593002: Split DumpPixelsAsync in pixel_dump.h into more granular functions. (Closed)

Created:
3 years, 5 months ago by Łukasz Anforowicz
Modified:
3 years, 5 months ago
Reviewers:
alexmos
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, einbinder+watch-test-runner_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Split DumpPixelsAsync in pixel_dump.h into more granular functions. Before this CL, test_runner/pixel_dump.h would expose a single function: void DumpPixelsAsync( blink::WebView* web_view, const LayoutTestRuntimeFlags& layout_test_runtime_flags, float device_scale_factor_for_test, const base::Callback<void(const SkBitmap&)>& callback); After this CL, three more granular functions are exposed instead: void DumpPixelsAsync(blink::WebLocalFrame* web_frame, float device_scale_factor_for_test, base::OnceCallback<void(const SkBitmap&)> callback); void PrintFrameAsync(blink::WebLocalFrame* web_frame, base::OnceCallback<void(const SkBitmap&)> callback); base::OnceCallback<void(const SkBitmap&)> CreateSelectionBoundsRectDrawingCallback( blink::WebLocalFrame* web_frame, base::OnceCallback<void(const SkBitmap&)> original_callback); This change means that it is easier to replace only the new DumpPixelsAsync part, while retaining the old behavior for PrintFrameAsync and CreateSelectionDrawingCallback. In particular, a future CL should attempt to delegate DumpPixelsAsync to the browser, so that pixels belonging to OOPIFs are also captured. BUG=667551 Review-Url: https://codereview.chromium.org/2963593002 Cr-Commit-Position: refs/heads/master@{#485774} Committed: https://chromium.googlesource.com/chromium/src/+/20971a656acd1f320b5b27a5b6a895265e696bdf

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 14

Patch Set 7 : Addressed CR feedback from alexmos@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -117 lines) Patch
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M content/shell/test_runner/pixel_dump.h View 1 2 3 4 5 6 1 chunk +25 lines, -16 lines 0 comments Download
M content/shell/test_runner/pixel_dump.cc View 1 2 3 4 5 6 8 chunks +61 lines, -88 lines 0 comments Download
M content/shell/test_runner/test_runner.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/test_runner/test_runner.cc View 1 2 3 4 5 6 2 chunks +19 lines, -6 lines 0 comments Download
M content/shell/test_runner/test_runner_for_specific_view.cc View 1 2 3 4 5 2 chunks +12 lines, -2 lines 0 comments Download
M content/shell/test_runner/web_test_runner.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (29 generated)
Łukasz Anforowicz
Alex, can you PTAL?
3 years, 5 months ago (2017-07-10 21:32:06 UTC) #18
alexmos
Thanks, LGTM with nits https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc File content/shell/test_runner/pixel_dump.cc (right): https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc#newcode58 content/shell/test_runner/pixel_dump.cc:58: blink::WebRect wr, const &? https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc#newcode171 ...
3 years, 5 months ago (2017-07-11 15:01:07 UTC) #19
Łukasz Anforowicz
Thanks! https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc File content/shell/test_runner/pixel_dump.cc (right): https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc#newcode58 content/shell/test_runner/pixel_dump.cc:58: blink::WebRect wr, On 2017/07/11 15:01:06, alexmos wrote: > ...
3 years, 5 months ago (2017-07-11 16:30:24 UTC) #22
alexmos
LGTM https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc File content/shell/test_runner/pixel_dump.cc (right): https://codereview.chromium.org/2963593002/diff/100001/content/shell/test_runner/pixel_dump.cc#newcode171 content/shell/test_runner/pixel_dump.cc:171: return original_callback; On 2017/07/11 16:30:23, Łukasz A. wrote: ...
3 years, 5 months ago (2017-07-11 16:48:11 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963593002/120001
3 years, 5 months ago (2017-07-11 18:08:05 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/498176)
3 years, 5 months ago (2017-07-11 19:19:52 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963593002/120001
3 years, 5 months ago (2017-07-11 20:43:56 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 5 months ago (2017-07-11 22:45:15 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963593002/120001
3 years, 5 months ago (2017-07-12 00:01:35 UTC) #36
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 01:31:50 UTC) #39
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/20971a656acd1f320b5b27a5b6a8...

Powered by Google App Engine
This is Rietveld 408576698