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

Issue 13123003: Flash: Don't lose a reference to the Graphics3D from the VideoDecoder. (Closed)

Created:
7 years, 9 months ago by danakj
Modified:
7 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, backer, piman, ilja
Visibility:
Public.

Description

Flash: Don't lose references to the Graphics3D from the VideoDecoder. When the Flash VideoDecoder is destroyed, it needs to drop the reference it holds on the Graphics3D object. Currently, the Destroy() method erases the id for the Graphics3D object before trying to drop its reference, making the drop a no-op and leaking the reference. Also, if the PPB_VideoDecoder_Impl object fails to initialize and create a platform_video_decoder_, it still holds onto its reference to the Graphics3D since it does not call Destroy() even though it called InitCommon() on the PPB_VideoDecoder_Shared base class. Lastly, when the plugin proxy's VideoDecoder class is destroyed, it should ensure that the base class' Destroy() has been called so that its reference is not leaked. BUG=chrome-os-partner:18331 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191176

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M ppapi/proxy/ppb_video_decoder_proxy.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_video_decoder_shared.cc View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
danakj
7 years, 9 months ago (2013-03-27 22:40:02 UTC) #1
danakj
Not sure who should review this, but dmichael, you're an OWNER in both places. Please ...
7 years, 9 months ago (2013-03-27 22:40:37 UTC) #2
piman
https://codereview.chromium.org/13123003/diff/2001/ppapi/shared_impl/ppb_video_decoder_shared.cc File ppapi/shared_impl/ppb_video_decoder_shared.cc (right): https://codereview.chromium.org/13123003/diff/2001/ppapi/shared_impl/ppb_video_decoder_shared.cc#newcode51 ppapi/shared_impl/ppb_video_decoder_shared.cc:51: graphics_context_ = 0; nit: you can move this inside ...
7 years, 9 months ago (2013-03-27 22:48:31 UTC) #3
danakj
N https://codereview.chromium.org/13123003/diff/2001/ppapi/shared_impl/ppb_video_decoder_shared.cc File ppapi/shared_impl/ppb_video_decoder_shared.cc (right): https://codereview.chromium.org/13123003/diff/2001/ppapi/shared_impl/ppb_video_decoder_shared.cc#newcode51 ppapi/shared_impl/ppb_video_decoder_shared.cc:51: graphics_context_ = 0; On 2013/03/27 22:48:31, piman wrote: ...
7 years, 9 months ago (2013-03-27 22:54:52 UTC) #4
danakj
https://codereview.chromium.org/13123003/diff/7001/webkit/plugins/ppapi/ppb_video_decoder_impl.cc File webkit/plugins/ppapi/ppb_video_decoder_impl.cc (right): https://codereview.chromium.org/13123003/diff/7001/webkit/plugins/ppapi/ppb_video_decoder_impl.cc#newcode214 webkit/plugins/ppapi/ppb_video_decoder_impl.cc:214: ppp_videodecoder_ = NULL; I'll move this above too. "Clean ...
7 years, 9 months ago (2013-03-27 22:56:04 UTC) #5
dmichael (off chromium)
https://codereview.chromium.org/13123003/diff/7001/ppapi/shared_impl/ppb_video_decoder_shared.cc File ppapi/shared_impl/ppb_video_decoder_shared.cc (right): https://codereview.chromium.org/13123003/diff/7001/ppapi/shared_impl/ppb_video_decoder_shared.cc#newcode49 ppapi/shared_impl/ppb_video_decoder_shared.cc:49: graphics_context_); What about either using ScopedPPResource, or actually getting ...
7 years, 9 months ago (2013-03-27 22:59:04 UTC) #6
danakj
https://codereview.chromium.org/13123003/diff/7001/ppapi/shared_impl/ppb_video_decoder_shared.cc File ppapi/shared_impl/ppb_video_decoder_shared.cc (right): https://codereview.chromium.org/13123003/diff/7001/ppapi/shared_impl/ppb_video_decoder_shared.cc#newcode49 ppapi/shared_impl/ppb_video_decoder_shared.cc:49: graphics_context_); On 2013/03/27 22:59:04, dmichael wrote: > What about ...
7 years, 9 months ago (2013-03-27 23:02:33 UTC) #7
danakj
PTAL New patch adds PPB_VideoDecoder_Shared::Destroy() to the proxy ~VideoDecoder() destructor. This fixes the remaining missing ...
7 years, 9 months ago (2013-03-27 23:20:58 UTC) #8
piman
https://codereview.chromium.org/13123003/diff/13001/webkit/plugins/ppapi/ppb_video_decoder_impl.cc File webkit/plugins/ppapi/ppb_video_decoder_impl.cc (right): https://codereview.chromium.org/13123003/diff/13001/webkit/plugins/ppapi/ppb_video_decoder_impl.cc#newcode213 webkit/plugins/ppapi/ppb_video_decoder_impl.cc:213: FlushCommandBuffer(); I think this still needs to happen before ...
7 years, 9 months ago (2013-03-27 23:37:43 UTC) #9
danakj
https://codereview.chromium.org/13123003/diff/13001/webkit/plugins/ppapi/ppb_video_decoder_impl.cc File webkit/plugins/ppapi/ppb_video_decoder_impl.cc (right): https://codereview.chromium.org/13123003/diff/13001/webkit/plugins/ppapi/ppb_video_decoder_impl.cc#newcode213 webkit/plugins/ppapi/ppb_video_decoder_impl.cc:213: FlushCommandBuffer(); On 2013/03/27 23:37:43, piman wrote: > I think ...
7 years, 9 months ago (2013-03-27 23:42:06 UTC) #10
piman
lgtm
7 years, 9 months ago (2013-03-27 23:42:51 UTC) #11
danakj
dmichael@ PTAL
7 years, 9 months ago (2013-03-28 00:09:57 UTC) #12
dmichael (off chromium)
lgtm with optional suggestion. piman knows this area better than I, so I'm counting on ...
7 years, 9 months ago (2013-03-28 02:40:48 UTC) #13
danakj
https://codereview.chromium.org/13123003/diff/7001/ppapi/shared_impl/ppb_video_decoder_shared.cc File ppapi/shared_impl/ppb_video_decoder_shared.cc (right): https://codereview.chromium.org/13123003/diff/7001/ppapi/shared_impl/ppb_video_decoder_shared.cc#newcode49 ppapi/shared_impl/ppb_video_decoder_shared.cc:49: graphics_context_); On 2013/03/28 02:40:49, dmichael wrote: > On 2013/03/27 ...
7 years, 9 months ago (2013-03-28 15:58:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/13123003/27001
7 years, 9 months ago (2013-03-28 16:00:20 UTC) #15
commit-bot: I haz the power
7 years, 9 months ago (2013-03-28 18:12:06 UTC) #16
Message was sent while issue was closed.
Change committed as 191176

Powered by Google App Engine
This is Rietveld 408576698