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

Issue 299003004: Fix leak in GpuChannel (Closed)

Created:
6 years, 7 months ago by piman
Modified:
6 years, 7 months ago
Reviewers:
no sievers
CC:
chromium-reviews, piman+watch_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Fix leak in GpuChannel There may be remaining messages in the deferred queue on unclean teardown. Delete those. Also, a little bit of cleanup in the area: - GpuChannel doesn't need to be refcounted - It's ok to copy WeakPtr across threads, as long as they're only dereferenced on the thread that the factory is destroyed. So no need for the extra indirection. BUG=374843 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272584

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -60 lines) Patch
M content/common/gpu/gpu_channel.h View 4 chunks +2 lines, -10 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 10 chunks +21 lines, -40 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 3 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
piman
6 years, 7 months ago (2014-05-23 04:19:18 UTC) #1
no sievers
LGTM. Yea that WeakPtr handling looks like it's from before WeakPtr itself supported being deleted ...
6 years, 7 months ago (2014-05-23 18:07:03 UTC) #2
no sievers
LGTM. Yea that WeakPtr handling looks like it's from before WeakPtr itself supported being deleted ...
6 years, 7 months ago (2014-05-23 18:07:04 UTC) #3
piman
The CQ bit was checked by piman@chromium.org
6 years, 7 months ago (2014-05-23 18:11:14 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/299003004/1
6 years, 7 months ago (2014-05-23 18:12:00 UTC) #5
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 20:18:10 UTC) #6
Message was sent while issue was closed.
Change committed as 272584

Powered by Google App Engine
This is Rietveld 408576698