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

Issue 126373002: Make ChromeOS screenshots use async readback path (Closed)

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

Description

Make ChromeOS screenshots use async readback path The synchronous readback path adds complexity through ui and cc compositors and will ideally be removed. The screenshots already use a post task mechanism to save to disk, so making them use the asynchronous readback path instead is straightforward. BUG=332167 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244859

Patch Set 1 #

Patch Set 2 : Fix up snapshot_win #

Patch Set 3 : Rebase #

Total comments: 5

Patch Set 4 : Remove window_snapshot code #

Total comments: 2

Patch Set 5 : Remove include #

Patch Set 6 : Fix typo compiler errors #

Patch Set 7 : Add missing include #

Patch Set 8 : Set timestamp before screenshot #

Patch Set 9 : ScreenshotTakerObserver for policy test #

Patch Set 10 : Fix rebase error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -72 lines) Patch
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/screenshot_taker.h View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/screenshot_taker.cc View 1 2 3 4 5 6 7 8 9 5 chunks +71 lines, -35 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M ui/snapshot/snapshot.h View 2 chunks +5 lines, -1 line 0 comments Download
M ui/snapshot/snapshot_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/snapshot/snapshot_aura.cc View 1 2 4 chunks +63 lines, -18 lines 0 comments Download
M ui/snapshot/snapshot_aura_unittest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/snapshot/snapshot_gtk.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/snapshot/snapshot_ios.mm View 1 chunk +1 line, -1 line 0 comments Download
M ui/snapshot/snapshot_mac.mm View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/snapshot/snapshot_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
enne (OOO)
Depends on https://codereview.chromium.org/119753007/
6 years, 11 months ago (2014-01-07 20:20:20 UTC) #1
enne (OOO)
mukai: window_snapshot changes (if you're not a good reviewer for this, please let me know) ...
6 years, 11 months ago (2014-01-09 00:59:27 UTC) #2
Jun Mukai
lgtm, with a nit comment. https://codereview.chromium.org/126373002/diff/60001/chrome/browser/ui/ash/screenshot_taker.cc File chrome/browser/ui/ash/screenshot_taker.cc (right): https://codereview.chromium.org/126373002/diff/60001/chrome/browser/ui/ash/screenshot_taker.cc#newcode558 chrome/browser/ui/ash/screenshot_taker.cc:558: ScreenshotTakerObserver::SCREENSHOT_GRABWINDOW_PARTIAL_FAILED, Right now we ...
6 years, 11 months ago (2014-01-09 01:19:31 UTC) #3
enne (OOO)
https://codereview.chromium.org/126373002/diff/60001/chrome/browser/ui/ash/screenshot_taker.cc File chrome/browser/ui/ash/screenshot_taker.cc (right): https://codereview.chromium.org/126373002/diff/60001/chrome/browser/ui/ash/screenshot_taker.cc#newcode558 chrome/browser/ui/ash/screenshot_taker.cc:558: ScreenshotTakerObserver::SCREENSHOT_GRABWINDOW_PARTIAL_FAILED, On 2014/01/09 01:19:32, Jun Mukai wrote: > You ...
6 years, 11 months ago (2014-01-09 02:47:50 UTC) #4
enne (OOO)
ben: ui/ and chrome/browser/ui/ OWNERS https://codereview.chromium.org/126373002/diff/60001/chrome/browser/ui/window_snapshot/window_snapshot.cc File chrome/browser/ui/window_snapshot/window_snapshot.cc (right): https://codereview.chromium.org/126373002/diff/60001/chrome/browser/ui/window_snapshot/window_snapshot.cc#newcode25 chrome/browser/ui/window_snapshot/window_snapshot.cc:25: void GrabWindowSnapshotForUserAsync( On 2014/01/09 ...
6 years, 11 months ago (2014-01-09 19:38:42 UTC) #5
Jun Mukai
https://codereview.chromium.org/126373002/diff/130001/chrome/browser/ui/window_snapshot/window_snapshot.h File chrome/browser/ui/window_snapshot/window_snapshot.h (right): https://codereview.chromium.org/126373002/diff/130001/chrome/browser/ui/window_snapshot/window_snapshot.h#newcode11 chrome/browser/ui/window_snapshot/window_snapshot.h:11: #include "ui/snapshot/snapshot.h" nit: you don't have to include this ...
6 years, 11 months ago (2014-01-09 19:41:24 UTC) #6
enne (OOO)
https://codereview.chromium.org/126373002/diff/130001/chrome/browser/ui/window_snapshot/window_snapshot.h File chrome/browser/ui/window_snapshot/window_snapshot.h (right): https://codereview.chromium.org/126373002/diff/130001/chrome/browser/ui/window_snapshot/window_snapshot.h#newcode11 chrome/browser/ui/window_snapshot/window_snapshot.h:11: #include "ui/snapshot/snapshot.h" On 2014/01/09 19:41:24, Jun Mukai wrote: > ...
6 years, 11 months ago (2014-01-09 19:50:02 UTC) #7
Ben Goodger (Google)
owner lgtm
6 years, 11 months ago (2014-01-10 16:40:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/210002
6 years, 11 months ago (2014-01-10 17:28:22 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, check_deps2git, ...
6 years, 11 months ago (2014-01-10 18:06:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/210002
6 years, 11 months ago (2014-01-10 18:08:42 UTC) #11
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
6 years, 11 months ago (2014-01-10 18:41:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/540001
6 years, 11 months ago (2014-01-10 18:43:44 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=244932
6 years, 11 months ago (2014-01-10 19:48:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/590002
6 years, 11 months ago (2014-01-10 20:54:01 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=190414
6 years, 11 months ago (2014-01-10 22:44:09 UTC) #16
enne (OOO)
mukai: FYI, the TakeSnapshot unit test failed because it was checking the last screenshot timestamp. ...
6 years, 11 months ago (2014-01-10 23:11:48 UTC) #17
Jun Mukai
On 2014/01/10 23:11:48, enne wrote: > mukai: FYI, the TakeSnapshot unit test failed because it ...
6 years, 11 months ago (2014-01-10 23:21:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/870001
6 years, 11 months ago (2014-01-11 00:21:10 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=190517
6 years, 11 months ago (2014-01-11 04:32:34 UTC) #20
enne (OOO)
mukai: Ack, sorry, but I also missed this failure in the policy browser test. This ...
6 years, 11 months ago (2014-01-13 23:50:50 UTC) #21
Jun Mukai
On 2014/01/13 23:50:50, enne wrote: > mukai: Ack, sorry, but I also missed this failure ...
6 years, 11 months ago (2014-01-14 00:56:50 UTC) #22
enne (OOO)
> I don't even know that policy browser test thing... someone else wrote that. > ...
6 years, 11 months ago (2014-01-14 00:58:53 UTC) #23
enne (OOO)
> I don't even know that policy browser test thing... someone else wrote that. > ...
6 years, 11 months ago (2014-01-14 00:59:12 UTC) #24
enne (OOO)
> Oh, ScreenshotTakerObserver seems much better, thanks! I'll see if I can modify > the ...
6 years, 11 months ago (2014-01-14 20:38:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/1190001
6 years, 11 months ago (2014-01-14 20:40:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/1190001
6 years, 11 months ago (2014-01-14 23:01:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/126373002/1190001
6 years, 11 months ago (2014-01-15 01:34:59 UTC) #28
commit-bot: I haz the power
6 years, 11 months ago (2014-01-15 09:55:03 UTC) #29
Message was sent while issue was closed.
Change committed as 244859

Powered by Google App Engine
This is Rietveld 408576698