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

Issue 2775793003: Update XServerPixelBuffer to handle shmget() errors properly. (Closed)

Created:
3 years, 9 months ago by Sergey Ulanov
Modified:
3 years, 9 months ago
Reviewers:
Hzj_jie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Update XServerPixelBuffer to handle shmget() errors properly. When screen/window capturers fail to use shared memory, they are supposed to fall back to XGetImage(). It's slower, but should still allow to capture desktop content. This wasn't implemented correclty in XScreenPixelBuffer - it was failing completely when shmget() returns an error. BUG=705146 Review-Url: https://codereview.webrtc.org/2775793003 Cr-Commit-Position: refs/heads/master@{#17401} Committed: https://chromium.googlesource.com/external/webrtc/+/858b0f4703e043e1b90b95c1351aa8663c11fd7c

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -18 lines) Patch
M webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc View 1 4 chunks +26 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Sergey Ulanov
3 years, 9 months ago (2017-03-24 23:27:02 UTC) #2
Hzj_jie
https://codereview.webrtc.org/2775793003/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc File webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc (right): https://codereview.webrtc.org/2775793003/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc#newcode158 webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc:158: shm_segment_info_ = nullptr; It looks like in Release() function, ...
3 years, 9 months ago (2017-03-25 00:30:31 UTC) #3
Sergey Ulanov
https://codereview.webrtc.org/2775793003/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc File webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc (right): https://codereview.webrtc.org/2775793003/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc#newcode158 webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc:158: shm_segment_info_ = nullptr; On 2017/03/25 00:30:30, Hzj_jie wrote: > ...
3 years, 9 months ago (2017-03-27 19:23:06 UTC) #4
Hzj_jie
On 2017/03/27 19:23:06, Sergey Ulanov wrote: > https://codereview.webrtc.org/2775793003/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc > File webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc (right): > > https://codereview.webrtc.org/2775793003/diff/1/webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.cc#newcode158 ...
3 years, 9 months ago (2017-03-27 19:27:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2775793003/20001
3 years, 9 months ago (2017-03-27 20:03:53 UTC) #7
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 20:47:36 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/858b0f4703e043e1b90b95c13...

Powered by Google App Engine
This is Rietveld 408576698