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

Issue 693623004: LOG and clear SurfaceFactory if it isn't empty on destruction. (Closed)

Created:
6 years, 1 month ago by jbauman
Modified:
6 years, 1 month ago
Reviewers:
jamesr
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

LOG and clear SurfaceFactory if it isn't empty on destruction. Otherwise it will leave dangling pointers in the SurfaceManager. Also add a DestroyAll method to allow owners to ensure every surface in the factory is destroyed. BUG=428127 Committed: https://crrev.com/fda1c1146ba1944abd2c032ef25cf2f4d35e49c0 Cr-Commit-Position: refs/heads/master@{#302339}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -4 lines) Patch
M cc/surfaces/surface_factory.h View 1 2 chunks +3 lines, -0 lines 1 comment Download
M cc/surfaces/surface_factory.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M cc/surfaces/surface_factory_unittest.cc View 1 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
jbauman
6 years, 1 month ago (2014-10-31 00:41:55 UTC) #2
jamesr
https://codereview.chromium.org/693623004/diff/20001/cc/surfaces/surface_factory.cc File cc/surfaces/surface_factory.cc (right): https://codereview.chromium.org/693623004/diff/20001/cc/surfaces/surface_factory.cc#newcode21 cc/surfaces/surface_factory.cc:21: DestroyAll(); DCHECK should enforce things that we know are ...
6 years, 1 month ago (2014-10-31 04:23:29 UTC) #3
jbauman
On 2014/10/31 04:23:29, jamesr wrote: > https://codereview.chromium.org/693623004/diff/20001/cc/surfaces/surface_factory.cc > File cc/surfaces/surface_factory.cc (right): > > https://codereview.chromium.org/693623004/diff/20001/cc/surfaces/surface_factory.cc#newcode21 > ...
6 years, 1 month ago (2014-10-31 20:49:56 UTC) #4
jamesr
If you think that condition really should never be hit change it to a DCHECK, ...
6 years, 1 month ago (2014-10-31 20:54:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/693623004/40001
6 years, 1 month ago (2014-10-31 21:56:32 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-31 22:46:25 UTC) #8
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 22:47:17 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fda1c1146ba1944abd2c032ef25cf2f4d35e49c0
Cr-Commit-Position: refs/heads/master@{#302339}

Powered by Google App Engine
This is Rietveld 408576698