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

Issue 2739163003: Shape Detection: move the Mac service to the sandboxed GPU process (Closed)

Created:
3 years, 9 months ago by mcasas
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org, Robert Sesek
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shape Detection: move the Mac service to the sandboxed GPU process ShapeDetection in Mac uses privileged and potentially dangerous APIs inside CoreImage and perhaps more, transitively. This CL moves the shape detection service to run in the GPU process, which is sandboxed. The reason for using the GPU process is that CoreImage APIs seem to depend strongly and mysteriously on the GPU, as I learned while trying to get the unittests to work [1] in our normal mac bots (which are virtual machines and have no GPU). I tried using a sw rendering context and a coupe of other circumventions but nothing really worked. [1] early PSs in https://codereview.chromium.org/2677553003/ BUG=666143 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2739163003 Cr-Commit-Position: refs/heads/master@{#456555} Committed: https://chromium.googlesource.com/chromium/src/+/95d98937e0fb0baf11d7c3088a99bb20a58e32cf

Patch Set 1 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M content/browser/service_manager/service_manager_context.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M content/gpu/BUILD.gn View 1 chunk +2 lines, -0 lines 2 comments Download
M content/gpu/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_service_factory.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
mcasas
rockot@ what we worked on today, PTAL (also please advise on the BUILD.gn dependency) kbr@ ...
3 years, 9 months ago (2017-03-10 02:08:53 UTC) #9
Ken Rockot(use gerrit already)
nice, LGTM https://codereview.chromium.org/2739163003/diff/20001/content/gpu/BUILD.gn File content/gpu/BUILD.gn (right): https://codereview.chromium.org/2739163003/diff/20001/content/gpu/BUILD.gn#newcode65 content/gpu/BUILD.gn:65: "//services/shape_detection:lib", On 2017/03/10 at 02:08:53, mcasas wrote: ...
3 years, 9 months ago (2017-03-10 16:09:12 UTC) #10
Ken Rockot(use gerrit already)
On 2017/03/10 at 16:09:12, Ken Rockot wrote: > nice, LGTM > > https://codereview.chromium.org/2739163003/diff/20001/content/gpu/BUILD.gn > File ...
3 years, 9 months ago (2017-03-10 16:12:03 UTC) #11
Robert Sesek
GPU process seems like a reasonable place for this. LGTM
3 years, 9 months ago (2017-03-10 21:35:40 UTC) #13
Ken Russell (switch to Gerrit)
rs lgtm
3 years, 9 months ago (2017-03-13 22:28:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2739163003/20001
3 years, 9 months ago (2017-03-13 22:38:30 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:20001) as https://chromium.googlesource.com/chromium/src/+/95d98937e0fb0baf11d7c3088a99bb20a58e32cf
3 years, 9 months ago (2017-03-13 23:56:25 UTC) #19
tzik
3 years, 9 months ago (2017-03-15 07:09:29 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:20001) has been created in
https://codereview.chromium.org/2749213002/ by tzik@chromium.org.

The reason for reverting is:
fast/shapedetection/shapedetection-security-test.html seems to get flaky due to
this CL on mac bots.

BUG=701675
.

Powered by Google App Engine
This is Rietveld 408576698