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

Issue 543243003: Remote Assistance on Chrome OS Part I - Aura Desktop Capturer (Closed)

Created:
6 years, 3 months ago by kelvinp
Modified:
6 years, 3 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remote Assistance on Chrome OS - Aura Desktop Capturer This CL implements a WebRTC Desktop Capturer that captures from the Aura Shell root window. The capturer is used by the It2MeHost on Chrome OS. |DesktopCaptureDeviceAura| cannot be re-used in our scenario because is timer-driven as opposed to caller driven, which is required by WebRTC. The current implementation uses the layer API desktop_window_->layer()->RequestCopyOfOutput(request.Pass()) to request the layer and its subtree to be rendered to a |SkiaBitmap|. It then copies the pixels to a WebRTC |DesktopFrame|. BUG=411530 Committed: https://crrev.com/278b065b519617b1e9231bd53e6502706d20787c Cr-Commit-Position: refs/heads/master@{#295187} Committed: https://crrev.com/0215564c6c0225e22419c85e7854c5ce103414c2 Cr-Commit-Position: refs/heads/master@{#295214}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address feedback and add unittest #

Patch Set 3 : Rebase on ToT #

Patch Set 4 : Fix linker errors on build bots #

Total comments: 26

Patch Set 5 : Address wez's feedback #

Total comments: 10

Patch Set 6 : Address sergey's feedback #

Patch Set 7 #

Total comments: 12

Patch Set 8 : Address Reed's feedback #

Total comments: 8

Patch Set 9 : Address sky's feedback #

Patch Set 10 : rebase on ToT #

Patch Set 11 : Fix gclient runhooks on Windows and Mac #

Patch Set 12 : Fix Build bot failures on Official Chrome builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -66 lines) Patch
M remoting/host/DEPS View 2 chunks +3 lines, -0 lines 0 comments Download
A remoting/host/chromeos/aura_desktop_capturer.h View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A remoting/host/chromeos/aura_desktop_capturer.cc View 1 2 3 4 5 6 7 8 1 chunk +119 lines, -0 lines 0 comments Download
A remoting/host/chromeos/aura_desktop_capturer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 6 7 8 9 10 10 chunks +118 lines, -64 lines 0 comments Download
M remoting/remoting_host_linux.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 70 (28 generated)
kelvinp
PTAL
6 years, 3 months ago (2014-09-06 00:32:13 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/543243003/diff/1/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/1/remoting/host/chromeos/aura_desktop_capturer.cc#newcode61 remoting/host/chromeos/aura_desktop_capturer.cc:61: uint8_t* bitmapData = reinterpret_cast<uint8_t*>(bitmap->getPixels()); bitmap_data https://codereview.chromium.org/543243003/diff/1/remoting/host/chromeos/aura_desktop_capturer.cc#newcode65 remoting/host/chromeos/aura_desktop_capturer.cc:65: frame->CopyPixelsFrom(bitmapData, bitmap->rowBytes(), ...
6 years, 3 months ago (2014-09-06 02:03:25 UTC) #4
kelvinp
PTAL https://codereview.chromium.org/543243003/diff/1/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/1/remoting/host/chromeos/aura_desktop_capturer.cc#newcode61 remoting/host/chromeos/aura_desktop_capturer.cc:61: uint8_t* bitmapData = reinterpret_cast<uint8_t*>(bitmap->getPixels()); On 2014/09/06 02:03:25, Sergey ...
6 years, 3 months ago (2014-09-09 21:19:47 UTC) #8
Wez
Drive-by on the capture implementation. Mostly looks good. :) https://codereview.chromium.org/543243003/diff/80001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/80001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode19 remoting/host/chromeos/aura_desktop_capturer.cc:19: ...
6 years, 3 months ago (2014-09-10 01:41:11 UTC) #10
kelvinp
PTAL https://codereview.chromium.org/543243003/diff/80001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/80001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode19 remoting/host/chromeos/aura_desktop_capturer.cc:19: class SkiaBitmapDestkopFrame : public webrtc::DesktopFrame { On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 22:33:59 UTC) #11
Sergey Ulanov
https://codereview.chromium.org/543243003/diff/100001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/100001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode44 remoting/host/chromeos/aura_desktop_capturer.cc:44: webrtc::DesktopSize size(width, height); nit: size(bitmap->width(), bitmap->height()) and remove two ...
6 years, 3 months ago (2014-09-10 23:08:52 UTC) #12
Sergey Ulanov
lgtm when my comments are addressed
6 years, 3 months ago (2014-09-10 23:09:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/120001
6 years, 3 months ago (2014-09-11 00:13:42 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54389) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/59327) chromium_presubmit ...
6 years, 3 months ago (2014-09-11 00:20:53 UTC) #17
James Cook
I'm not very familiar with It2Me. How does this feature interact with multi-monitor support? Ash ...
6 years, 3 months ago (2014-09-11 00:40:50 UTC) #19
kelvinp
On 2014/09/11 00:40:50, James Cook wrote: > I'm not very familiar with It2Me. How does ...
6 years, 3 months ago (2014-09-11 01:00:11 UTC) #20
reed1
https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer_unittest.cc File remoting/host/chromeos/aura_desktop_capturer_unittest.cc (right): https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer_unittest.cc#newcode20 remoting/host/chromeos/aura_desktop_capturer_unittest.cc:20: // Test frame data. can/should frame_data be declared const? ...
6 years, 3 months ago (2014-09-11 13:48:15 UTC) #22
James Cook
DEPS on ash/ lgtm https://codereview.chromium.org/543243003/diff/140001/remoting/remoting_host.gypi File remoting/remoting_host.gypi (right): https://codereview.chromium.org/543243003/diff/140001/remoting/remoting_host.gypi#newcode26 remoting/remoting_host.gypi:26: 'enable_it2me_host': 0, Does this section ...
6 years, 3 months ago (2014-09-11 15:52:35 UTC) #23
danakj
DEPS LGTM
6 years, 3 months ago (2014-09-11 18:35:22 UTC) #25
sky
https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode75 remoting/host/chromeos/aura_desktop_capturer.cc:75: desktop_window_ = ash::Shell::GetPrimaryRootWindow(); Why are you using GetprimaryRootWindow and ...
6 years, 3 months ago (2014-09-11 19:34:24 UTC) #27
danakj
https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer_unittest.cc File remoting/host/chromeos/aura_desktop_capturer_unittest.cc (right): https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer_unittest.cc#newcode21 remoting/host/chromeos/aura_desktop_capturer_unittest.cc:21: unsigned char frame_data[] = { On 2014/09/11 13:48:15, reed1 ...
6 years, 3 months ago (2014-09-11 19:37:12 UTC) #28
kelvinp
PTAL https://codereview.chromium.org/543243003/diff/100001/remoting/host/chromeos/aura_desktop_capturer_unittest.cc File remoting/host/chromeos/aura_desktop_capturer_unittest.cc (right): https://codereview.chromium.org/543243003/diff/100001/remoting/host/chromeos/aura_desktop_capturer_unittest.cc#newcode6 remoting/host/chromeos/aura_desktop_capturer_unittest.cc:6: #include "remoting/host/chromeos/aura_desktop_capturer.h" On 2014/09/10 23:08:52, Sergey Ulanov wrote: ...
6 years, 3 months ago (2014-09-11 20:54:17 UTC) #29
sky
https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/140001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode75 remoting/host/chromeos/aura_desktop_capturer.cc:75: desktop_window_ = ash::Shell::GetPrimaryRootWindow(); On 2014/09/11 20:54:17, kelvinp wrote: > ...
6 years, 3 months ago (2014-09-11 21:22:48 UTC) #30
kelvinp
https://codereview.chromium.org/543243003/diff/160001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/543243003/diff/160001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode91 remoting/host/chromeos/aura_desktop_capturer.cc:91: request->set_area(window_rect); On 2014/09/11 21:22:47, sky wrote: > It seems ...
6 years, 3 months ago (2014-09-11 22:27:52 UTC) #31
kelvinp
PTAL
6 years, 3 months ago (2014-09-11 22:28:09 UTC) #32
sky
LGTM
6 years, 3 months ago (2014-09-12 02:23:18 UTC) #33
reed1
skbitmap lgtm
6 years, 3 months ago (2014-09-15 17:51:27 UTC) #34
chromium-reviews
Thank you everyone for the code review. Kelvin On Mon, Sep 15, 2014 at 10:51 ...
6 years, 3 months ago (2014-09-15 18:01:41 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/180001
6 years, 3 months ago (2014-09-15 18:25:09 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56063) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/60935) mac_chromium_compile_dbg ...
6 years, 3 months ago (2014-09-15 19:35:36 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/180001
6 years, 3 months ago (2014-09-16 00:37:20 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56299) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/61152) mac_chromium_compile_dbg ...
6 years, 3 months ago (2014-09-16 01:14:16 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/180001
6 years, 3 months ago (2014-09-16 02:18:59 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56340) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/61199) mac_chromium_compile_dbg ...
6 years, 3 months ago (2014-09-16 02:38:48 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/200001
6 years, 3 months ago (2014-09-16 03:28:14 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56356) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/61217) mac_chromium_compile_dbg ...
6 years, 3 months ago (2014-09-16 03:37:49 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/200001
6 years, 3 months ago (2014-09-16 18:07:37 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/56624) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/61479) mac_chromium_compile_dbg ...
6 years, 3 months ago (2014-09-16 18:18:30 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/220001
6 years, 3 months ago (2014-09-16 22:44:08 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/220001
6 years, 3 months ago (2014-09-16 23:45:31 UTC) #60
commit-bot: I haz the power
Committed patchset #11 (id:220001) as dd34e77cf1f8aec617750578360143a76ff8f422
6 years, 3 months ago (2014-09-17 00:24:25 UTC) #61
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/278b065b519617b1e9231bd53e6502706d20787c Cr-Commit-Position: refs/heads/master@{#295187}
6 years, 3 months ago (2014-09-17 00:24:57 UTC) #62
acolwell GONE FROM CHROMIUM
A revert of this CL (patchset #11 id:220001) has been created in https://codereview.chromium.org/579583003/ by acolwell@chromium.org. ...
6 years, 3 months ago (2014-09-17 00:43:52 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/240001
6 years, 3 months ago (2014-09-17 01:09:05 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/543243003/240001
6 years, 3 months ago (2014-09-17 01:15:29 UTC) #68
commit-bot: I haz the power
Committed patchset #12 (id:240001) as 7c3741869f23912954d77f5af90701a3b6323021
6 years, 3 months ago (2014-09-17 02:12:17 UTC) #69
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 02:12:56 UTC) #70
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/0215564c6c0225e22419c85e7854c5ce103414c2
Cr-Commit-Position: refs/heads/master@{#295214}

Powered by Google App Engine
This is Rietveld 408576698