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

Issue 1143243007: Extract some logic from transport_dib into shared_memory. (Closed)

Created:
5 years, 6 months ago by erikchen
Modified:
5 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract some logic from transport_dib into shared_memory. This CL contains no intended behavior change. Some of the logic in transport_dib_posix.cc made assumptions about the internal structure of SharedMemoryHandle. I've moved that logic into shared_memory_posix.cc. BUG=466437 Committed: https://crrev.com/38aef4f4010fda1317ea1baa3ec25be8f6b4d6eb Cr-Commit-Position: refs/heads/master@{#332246}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Comments from thakis. #

Patch Set 4 : Fix inverted conditional. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -7 lines) Patch
M base/memory/shared_memory.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ui/surface/transport_dib_posix.cc View 1 2 3 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
erikchen
thakis: Please review. https://codereview.chromium.org/1143243007/diff/20001/base/memory/shared_memory.h File base/memory/shared_memory.h (right): https://codereview.chromium.org/1143243007/diff/20001/base/memory/shared_memory.h#newcode133 base/memory/shared_memory.h:133: #if defined(OS_POSIX) && !defined(OS_ANDROID) I find ...
5 years, 6 months ago (2015-05-30 00:00:35 UTC) #2
Nico
lgtm! https://codereview.chromium.org/1143243007/diff/20001/ui/surface/transport_dib_posix.cc File ui/surface/transport_dib_posix.cc (right): https://codereview.chromium.org/1143243007/diff/20001/ui/surface/transport_dib_posix.cc#newcode87 ui/surface/transport_dib_posix.cc:87: if (size == -1 || (!shared_memory_.Map(size))) nit: no ...
5 years, 6 months ago (2015-05-30 00:02:44 UTC) #3
erikchen
https://codereview.chromium.org/1143243007/diff/20001/ui/surface/transport_dib_posix.cc File ui/surface/transport_dib_posix.cc (right): https://codereview.chromium.org/1143243007/diff/20001/ui/surface/transport_dib_posix.cc#newcode87 ui/surface/transport_dib_posix.cc:87: if (size == -1 || (!shared_memory_.Map(size))) On 2015/05/30 00:02:43, ...
5 years, 6 months ago (2015-05-30 00:10:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143243007/40001
5 years, 6 months ago (2015-05-30 10:05:01 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/22864)
5 years, 6 months ago (2015-05-30 11:29:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143243007/60001
5 years, 6 months ago (2015-06-01 17:09:52 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-01 19:43:47 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-06-01 19:44:44 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/38aef4f4010fda1317ea1baa3ec25be8f6b4d6eb
Cr-Commit-Position: refs/heads/master@{#332246}

Powered by Google App Engine
This is Rietveld 408576698