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

Issue 1131933006: Ensure that instances of DisplayImpl and SurfaceImpl don't outlive SurfacesServiceApplication. (Closed)

Created:
5 years, 7 months ago by jam
Modified:
5 years, 7 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure that instances of DisplayImpl and SurfaceImpl don't outlive SurfacesServiceApplication. This is because they have an unowned pointer to cc::SurfaceManager. Also ensure we don't have a double delete of display_ in DisplayImpl's destructor. This occurred because when display_ was deleted, it would end up calling back into OutputSurfaceLost() which would attempt to delete display__ again. This is split off https://codereview.chromium.org/1139673003 BUG=484234 Committed: https://crrev.com/cc43e06f6855d1c34645e498f88d64385f727405 Cr-Commit-Position: refs/heads/master@{#330386}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -13 lines) Patch
M components/surfaces/display_factory_impl.h View 2 chunks +4 lines, -1 line 0 comments Download
M components/surfaces/display_factory_impl.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M components/surfaces/display_impl.h View 2 chunks +4 lines, -1 line 0 comments Download
M components/surfaces/display_impl.cc View 5 chunks +13 lines, -2 lines 0 comments Download
M components/surfaces/surfaces_impl.h View 2 chunks +4 lines, -1 line 0 comments Download
M components/surfaces/surfaces_impl.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M components/surfaces/surfaces_service_application.h View 3 chunks +13 lines, -0 lines 0 comments Download
M components/surfaces/surfaces_service_application.cc View 1 3 chunks +24 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
jam
5 years, 7 months ago (2015-05-18 17:16:25 UTC) #2
Elliot Glaysher
https://codereview.chromium.org/1131933006/diff/1/components/surfaces/surfaces_service_application.cc File components/surfaces/surfaces_service_application.cc (right): https://codereview.chromium.org/1131933006/diff/1/components/surfaces/surfaces_service_application.cc#newcode22 components/surfaces/surfaces_service_application.cc:22: STLDeleteElements(&displays_); I suspect that autocomplete went out of control ...
5 years, 7 months ago (2015-05-18 17:41:29 UTC) #3
jam
https://codereview.chromium.org/1131933006/diff/1/components/surfaces/surfaces_service_application.cc File components/surfaces/surfaces_service_application.cc (right): https://codereview.chromium.org/1131933006/diff/1/components/surfaces/surfaces_service_application.cc#newcode22 components/surfaces/surfaces_service_application.cc:22: STLDeleteElements(&displays_); On 2015/05/18 17:41:29, Elliot Glaysher wrote: > I ...
5 years, 7 months ago (2015-05-18 17:44:20 UTC) #4
Elliot Glaysher
lgtm
5 years, 7 months ago (2015-05-18 17:44:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131933006/20001
5 years, 7 months ago (2015-05-18 17:45:24 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-18 20:13:16 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 22:41:11 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cc43e06f6855d1c34645e498f88d64385f727405
Cr-Commit-Position: refs/heads/master@{#330386}

Powered by Google App Engine
This is Rietveld 408576698