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

Issue 119753007: Add GrabWindowSnapshotAsync tests (Closed)

Created:
6 years, 11 months ago by enne (OOO)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, sadrul, ben+aura_chromium.org, kalyank, piman, danakj
Visibility:
Public.

Description

Add GrabWindowSnapshotAsync aura tests This adds a version of GrabWindowSnapshotAsync that behaves identically to GrabWindowSnapshot except with a callback. The snapshot aura unit tests are updated to use this new async function instead of the sync one. In order to make the snapshot tests work properly, they also now have to use a real gl context so that real drawing and readback can occur through the compositor. BUG=331410, 332167 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243700

Patch Set 1 #

Patch Set 2 : Add async function with implicit target size #

Patch Set 3 : Remove needless test_screen change #

Patch Set 4 : Tests passing #

Patch Set 5 : Add snapshot API stubs for other platforms #

Patch Set 6 : Test both sync and async paths #

Total comments: 10

Patch Set 7 : Address review comments; fix shutdown issues #

Patch Set 8 : Fix rotation; fix multithreaded test #

Total comments: 1

Patch Set 9 : git cl format #

Patch Set 10 : Add windows snapshot async too #

Total comments: 2

Patch Set 11 : Consolidate output request logic #

Patch Set 12 : Rebased, compiling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -88 lines) Patch
M chrome/browser/media/desktop_media_list_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/base/view_event_test_base.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/public/test/test_renderer_host.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/remote_root_window_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/root_window_host_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/root_window_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/root_window_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/test/aura_test_helper.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/aura_test_helper.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/aura/window_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/window_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -6 lines 0 comments Download
M ui/keyboard/keyboard_controller_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/snapshot/snapshot.h View 1 2 3 4 5 6 2 chunks +9 lines, -4 lines 0 comments Download
M ui/snapshot/snapshot_android.cc View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M ui/snapshot/snapshot_aura.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +111 lines, -45 lines 0 comments Download
M ui/snapshot/snapshot_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +70 lines, -14 lines 0 comments Download
M ui/snapshot/snapshot_gtk.cc View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M ui/snapshot/snapshot_ios.mm View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M ui/snapshot/snapshot_mac.mm View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M ui/snapshot/snapshot_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -1 line 0 comments Download
M ui/views/test/views_test_base.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
enne (OOO)
https://codereview.chromium.org/119753007/diff/140001/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (left): https://codereview.chromium.org/119753007/diff/140001/ui/aura/window_tree_host.cc#oldcode78 ui/aura/window_tree_host.cc:78: // verify that this has no adverse effects. Unfortunately, ...
6 years, 11 months ago (2014-01-03 23:22:39 UTC) #1
Sergey Ulanov
https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot.h File ui/snapshot/snapshot.h (right): https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot.h#newcode46 ui/snapshot/snapshot.h:46: SNAPSHOT_EXPORT void GrabWindowSnapshotAsync( Maybe rename this to GrabWindowSnapshotAndScaleAsync() to ...
6 years, 11 months ago (2014-01-05 07:34:39 UTC) #2
Ben Goodger (Google)
chrome, content, aura, keyboard lgtm.
6 years, 11 months ago (2014-01-06 17:46:31 UTC) #3
enne (OOO)
https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot.h File ui/snapshot/snapshot.h (right): https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot.h#newcode46 ui/snapshot/snapshot.h:46: SNAPSHOT_EXPORT void GrabWindowSnapshotAsync( On 2014/01/05 07:34:40, Sergey Ulanov wrote: ...
6 years, 11 months ago (2014-01-07 00:25:24 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot_aura.cc File ui/snapshot/snapshot_aura.cc (right): https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot_aura.cc#newcode166 ui/snapshot/snapshot_aura.cc:166: gfx::Display::ROTATE_0, On 2014/01/07 00:25:25, enne wrote: > On 2014/01/05 ...
6 years, 11 months ago (2014-01-07 00:44:48 UTC) #5
enne (OOO)
https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot_aura.cc File ui/snapshot/snapshot_aura.cc (right): https://codereview.chromium.org/119753007/diff/140001/ui/snapshot/snapshot_aura.cc#newcode166 ui/snapshot/snapshot_aura.cc:166: gfx::Display::ROTATE_0, On 2014/01/07 00:44:48, Sergey Ulanov wrote: > On ...
6 years, 11 months ago (2014-01-07 19:49:28 UTC) #6
danakj
This change also fixes test crashes I'm seeing due to Xerrors in single-process mode when ...
6 years, 11 months ago (2014-01-07 23:30:17 UTC) #7
Sergey Ulanov
lgtm https://codereview.chromium.org/119753007/diff/490001/ui/snapshot/snapshot_aura.cc File ui/snapshot/snapshot_aura.cc (right): https://codereview.chromium.org/119753007/diff/490001/ui/snapshot/snapshot_aura.cc#newcode202 ui/snapshot/snapshot_aura.cc:202: scoped_ptr<cc::CopyOutputRequest> request = It looks like a lot ...
6 years, 11 months ago (2014-01-08 02:24:16 UTC) #8
enne (OOO)
https://codereview.chromium.org/119753007/diff/490001/ui/snapshot/snapshot_aura.cc File ui/snapshot/snapshot_aura.cc (right): https://codereview.chromium.org/119753007/diff/490001/ui/snapshot/snapshot_aura.cc#newcode202 ui/snapshot/snapshot_aura.cc:202: scoped_ptr<cc::CopyOutputRequest> request = On 2014/01/08 02:24:16, Sergey Ulanov wrote: ...
6 years, 11 months ago (2014-01-08 18:50:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/119753007/900001
6 years, 11 months ago (2014-01-08 20:45:36 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 23:55:01 UTC) #11
Message was sent while issue was closed.
Change committed as 243700

Powered by Google App Engine
This is Rietveld 408576698