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

Issue 19990007: Don't leak CopyResult textures. (Closed)

Created:
7 years, 5 months ago by danakj
Modified:
7 years, 5 months ago
Reviewers:
piman
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, James Su
Visibility:
Public.

Description

Don't leak CopyResult textures. When a CopyResult provides a TextureMailbox, the ReleaseCallback must be called on the TextureMailbox when then client is done with the CopyResult. This change ensures that this happens. If the TextureMailbox is never removed from the CopyResult, then the CopyResult destructor takes care of it. Since the texture was never used, it uses a sync point of 0. When the TextureMailbox is removed from the CopyResult, then RWHVAura makes sure it calls the ReleaseCallback once it has the pixels it needs in memory. Since the pixels are already available on the CPU, it can use a sync point of 0 as well. R=piman BUG=263483 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213297

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M cc/output/copy_output_result.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 4 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
danakj
7 years, 5 months ago (2013-07-23 18:27:41 UTC) #1
piman
lgtm
7 years, 5 months ago (2013-07-23 18:32:58 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/19990007/1
7 years, 5 months ago (2013-07-23 18:36:43 UTC) #3
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 00:32:17 UTC) #4
Message was sent while issue was closed.
Change committed as 213297

Powered by Google App Engine
This is Rietveld 408576698