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

Issue 2334853002: Use RgbaColor in DesktopFrameGenerator and add RgbaColorTest (Closed)

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

Description

Use RgbaColor in DesktopFrameGenerator and add RgbaColorTest This change uses RgbaColor in DesktopFrameGenerator instead of raw uint32_t to avoid potential endian issues. BUG=633802 Committed: https://crrev.com/acc39c44bc901caace84e2f6671e67669194ee02 Cr-Commit-Position: refs/heads/master@{#14337}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Resolve review comments #

Total comments: 6

Patch Set 3 : Resolve review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -4 lines) Patch
M webrtc/modules/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_frame_generator.cc View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/rgba_color.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/rgba_color.cc View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
A webrtc/modules/desktop_capture/rgba_color_unittest.cc View 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
Hzj_jie
4 years, 3 months ago (2016-09-12 21:54:49 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc File webrtc/modules/desktop_capture/rgba_color.cc (right): https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc#newcode52 webrtc/modules/desktop_capture/rgba_color.cc:52: return *(reinterpret_cast<const uint32_t*>(&blue)); I don't think you can use ...
4 years, 3 months ago (2016-09-13 00:47:48 UTC) #5
Sergey Ulanov
Also please remove [WebRTC] prefix from CL description. It's redundant because this CL is in ...
4 years, 3 months ago (2016-09-13 00:49:11 UTC) #6
Hzj_jie
https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc File webrtc/modules/desktop_capture/rgba_color.cc (right): https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc#newcode52 webrtc/modules/desktop_capture/rgba_color.cc:52: return *(reinterpret_cast<const uint32_t*>(&blue)); On 2016/09/13 00:47:48, Sergey Ulanov wrote: ...
4 years, 3 months ago (2016-09-13 18:48:11 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc File webrtc/modules/desktop_capture/rgba_color.cc (right): https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc#newcode52 webrtc/modules/desktop_capture/rgba_color.cc:52: return *(reinterpret_cast<const uint32_t*>(&blue)); On 2016/09/13 18:48:10, Hzj_jie wrote: > ...
4 years, 3 months ago (2016-09-19 20:35:28 UTC) #9
Hzj_jie
https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc File webrtc/modules/desktop_capture/rgba_color.cc (right): https://codereview.chromium.org/2334853002/diff/20001/webrtc/modules/desktop_capture/rgba_color.cc#newcode52 webrtc/modules/desktop_capture/rgba_color.cc:52: return *(reinterpret_cast<const uint32_t*>(&blue)); On 2016/09/19 20:35:28, Sergey Ulanov wrote: ...
4 years, 3 months ago (2016-09-20 00:00:09 UTC) #10
Sergey Ulanov
lgtm https://codereview.chromium.org/2334853002/diff/40001/webrtc/modules/desktop_capture/desktop_frame_generator.cc File webrtc/modules/desktop_capture/desktop_frame_generator.cc (right): https://codereview.chromium.org/2334853002/diff/40001/webrtc/modules/desktop_capture/desktop_frame_generator.cc#newcode178 webrtc/modules/desktop_capture/desktop_frame_generator.cc:178: PaintRegion(frame, &updated_region_, RgbaColor(UINT32_MAX)); 0xFFFFFFFF would be more appropriate ...
4 years, 3 months ago (2016-09-20 21:06:41 UTC) #11
Hzj_jie
https://codereview.chromium.org/2334853002/diff/40001/webrtc/modules/desktop_capture/desktop_frame_generator.cc File webrtc/modules/desktop_capture/desktop_frame_generator.cc (right): https://codereview.chromium.org/2334853002/diff/40001/webrtc/modules/desktop_capture/desktop_frame_generator.cc#newcode178 webrtc/modules/desktop_capture/desktop_frame_generator.cc:178: PaintRegion(frame, &updated_region_, RgbaColor(UINT32_MAX)); On 2016/09/20 21:06:41, Sergey Ulanov wrote: ...
4 years, 3 months ago (2016-09-20 23:50:12 UTC) #12
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/2334853002/60001
4 years, 3 months ago (2016-09-21 00:08:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/16913)
4 years, 3 months ago (2016-09-21 00:28:53 UTC) #17
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/2334853002/60001
4 years, 3 months ago (2016-09-21 03:40:16 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-21 05:40:50 UTC) #22
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/2334853002/60001
4 years, 3 months ago (2016-09-21 19:14:22 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-21 19:23:22 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 19:23:31 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/acc39c44bc901caace84e2f6671e67669194ee02
Cr-Commit-Position: refs/heads/master@{#14337}

Powered by Google App Engine
This is Rietveld 408576698