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

Issue 1503393006: GpuMemoryBuffers: Tighten AcquireIOSurface's error checking (Closed)

Created:
5 years ago by ccameron
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GpuMemoryBuffers: Tighten AcquireIOSurface's error checking The function AcquireIOSurface accounts for most of the situations where GpuMemoryBuffer allocation fails. Add a CHECK that mach_port_allocate succeeds, because there is no recovery for being out of resources in this way. Add a CHECK that, if the browser returns Mach port, that port is valid can be successfully opened as an IOSurface. This should never be hit, because the browser should return a valid port if it reports success. Add a CHECK that mach_msg succeed. The suspicion is that this will account for all failures of AcquireIOSurface (and that this particular part of the patch will need to be reverted due to high crash rates). BUG=554541 Committed: https://crrev.com/efeb58b686b4c9531ce334f0adc34c8cd13ec78b Cr-Commit-Position: refs/heads/master@{#364432}

Patch Set 1 #

Patch Set 2 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M content/child/child_io_surface_manager_mac.cc View 1 2 chunks +11 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
ccameron
This is to diagnose what was happening in ChildIOSurfaceManager::AcquireIOSurface. That function accounted for 85% of ...
5 years ago (2015-12-08 21:41:12 UTC) #3
reveman
lgtm but can you add a comment with a bug number that make it clear ...
5 years ago (2015-12-08 22:03:46 UTC) #4
ccameron
Thanks. Adding avi@ for Mac content/ review. This is more of the (1) "Make OOMs ...
5 years ago (2015-12-10 01:34:53 UTC) #6
Avi (use Gerrit)
lgtm
5 years ago (2015-12-10 15:26:48 UTC) #7
ccameron
Thanks!
5 years ago (2015-12-10 18:59:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1503393006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1503393006/20001
5 years ago (2015-12-10 18:59:46 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-10 19:43:42 UTC) #13
commit-bot: I haz the power
5 years ago (2015-12-10 19:45:24 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/efeb58b686b4c9531ce334f0adc34c8cd13ec78b
Cr-Commit-Position: refs/heads/master@{#364432}

Powered by Google App Engine
This is Rietveld 408576698