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 10749019: VideoDecodeAccelerator now SupportsWeakPtr instead of being RefCountedThreadSafe. (Closed)

Created:
8 years, 5 months ago by Ami GONE FROM CHROMIUM
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org, Pawel Osciak, Ryan Sleevi
Visibility:
Public.

Description

VideoDecodeAccelerator now SupportsWeakPtr instead of being RefCountedThreadSafe. Claiming both (which GpuVideoDecodeAcceleratorHost was doing) is confusing and RCTS encourages sloppy lifecycle management. Instead drop RCTS in favor of WeakPtr<>s and explicit lifecycle management (scoped_ptr, with Pass). BUG=136294 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147069

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : Pure rebase #

Total comments: 2

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -169 lines) Patch
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.h View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator.cc View 1 2 3 4 5 6 7 chunks +10 lines, -8 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 4 chunks +14 lines, -16 lines 0 comments Download
M content/common/gpu/media/mac_video_decode_accelerator.h View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M content/common/gpu/media/mac_video_decode_accelerator.mm View 1 2 3 4 5 6 9 chunks +22 lines, -14 lines 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator.h View 1 2 3 4 5 6 5 chunks +12 lines, -9 lines 0 comments Download
M content/common/gpu/media/omx_video_decode_accelerator.cc View 1 2 3 4 5 6 10 chunks +18 lines, -16 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 4 5 6 4 chunks +17 lines, -2 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 6 15 chunks +34 lines, -21 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 4 chunks +12 lines, -13 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/pepper_platform_video_decoder_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/pepper_platform_video_decoder_impl.cc View 1 2 3 4 5 6 2 chunks +11 lines, -11 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 2 chunks +9 lines, -2 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 15 chunks +32 lines, -20 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 4 5 6 3 chunks +6 lines, -9 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 1 2 3 4 5 6 7 chunks +10 lines, -11 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10749019/diff/17001/content/common/gpu/media/h264_bit_reader.h File content/common/gpu/media/h264_bit_reader.h (right): https://chromiumcodereview.appspot.com/10749019/diff/17001/content/common/gpu/media/h264_bit_reader.h#newcode22 content/common/gpu/media/h264_bit_reader.h:22: // See the definition of more_rbsp_data() in spec. Ignore ...
8 years, 5 months ago (2012-07-16 21:07:53 UTC) #1
Ryan Sleevi
Drive-by, since I filed the original bug, but I'm a little concerned, because while it ...
8 years, 5 months ago (2012-07-16 21:26:07 UTC) #2
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10749019/diff/17001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://chromiumcodereview.appspot.com/10749019/diff/17001/media/filters/gpu_video_decoder.cc#newcode97 media/filters/gpu_video_decoder.cc:97: &VideoDecodeAccelerator::Reset, vda_->AsWeakPtr())); On 2012/07/16 21:26:07, Ryan Sleevi wrote: > ...
8 years, 5 months ago (2012-07-16 21:31:57 UTC) #3
Ryan Sleevi
On 2012/07/16 21:31:57, Ami Fischman wrote: > https://chromiumcodereview.appspot.com/10749019/diff/17001/media/filters/gpu_video_decoder.cc > File media/filters/gpu_video_decoder.cc (right): > > https://chromiumcodereview.appspot.com/10749019/diff/17001/media/filters/gpu_video_decoder.cc#newcode97 ...
8 years, 5 months ago (2012-07-16 21:47:01 UTC) #4
Ami GONE FROM CHROMIUM
piman: please OWNERS review for content/common/gpu/client and webkit/plugins/ppapi brettw: please OWNERS-review for content/content_tests.gypi rsleevi: FYI, ...
8 years, 5 months ago (2012-07-16 21:51:02 UTC) #5
Ami GONE FROM CHROMIUM
On 2012/07/16 21:47:01, Ryan Sleevi wrote: > Create the object on the VDA loop (not ...
8 years, 5 months ago (2012-07-16 21:57:36 UTC) #6
brettw
LGTM with comment for content_tests.gypi https://chromiumcodereview.appspot.com/10749019/diff/24002/content/content_tests.gypi File content/content_tests.gypi (right): https://chromiumcodereview.appspot.com/10749019/diff/24002/content/content_tests.gypi#newcode632 content/content_tests.gypi:632: 'os_posix == 1 and ...
8 years, 5 months ago (2012-07-16 22:11:54 UTC) #7
scherkus (not reviewing)
fischman gave me the rundown on a whiteboard -- lgtm
8 years, 5 months ago (2012-07-16 22:14:31 UTC) #8
piman
https://chromiumcodereview.appspot.com/10749019/diff/24002/media/video/video_decode_accelerator.h File media/video/video_decode_accelerator.h (right): https://chromiumcodereview.appspot.com/10749019/diff/24002/media/video/video_decode_accelerator.h#newcode134 media/video/video_decode_accelerator.h:134: virtual void Destroy(scoped_ptr<VideoDecodeAccelerator> self) = 0; I can't say ...
8 years, 5 months ago (2012-07-16 22:16:01 UTC) #9
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10749019/diff/24002/content/content_tests.gypi File content/content_tests.gypi (right): https://chromiumcodereview.appspot.com/10749019/diff/24002/content/content_tests.gypi#newcode632 content/content_tests.gypi:632: 'os_posix == 1 and OS != "mac" and OS ...
8 years, 5 months ago (2012-07-16 22:34:03 UTC) #10
Ryan Sleevi
Thanks. Looking at the patchset diffs, I think this addresses my lifetime concerns. I'm never ...
8 years, 5 months ago (2012-07-16 22:45:01 UTC) #11
piman
On Mon, Jul 16, 2012 at 3:34 PM, <fischman@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/10749019/diff/** > 24002/content/content_tests.**gypi<https://chromiumcodereview.appspot.com/10749019/diff/24002/content/content_tests.gypi> ...
8 years, 5 months ago (2012-07-16 22:46:25 UTC) #12
Ami GONE FROM CHROMIUM
On 2012/07/16 22:46:25, piman wrote: > e.g. DCHECK that Destroy() is called before the destructor. ...
8 years, 5 months ago (2012-07-16 23:16:10 UTC) #13
sail
mac * LGTM! I ran video_decoder_accelerator_unittest with this patch and everything ran fine. http://codereview.chromium.org/10749019/diff/29030/content/common/gpu/media/mac_video_decode_accelerator.mm File ...
8 years, 5 months ago (2012-07-17 16:15:14 UTC) #14
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10749019/diff/29030/content/common/gpu/media/mac_video_decode_accelerator.mm File content/common/gpu/media/mac_video_decode_accelerator.mm (right): http://codereview.chromium.org/10749019/diff/29030/content/common/gpu/media/mac_video_decode_accelerator.mm#newcode254 content/common/gpu/media/mac_video_decode_accelerator.mm:254: &MacVideoDecodeAccelerator::NotifyInputBufferRead, this, On 2012/07/17 16:15:14, sail wrote: > also ...
8 years, 5 months ago (2012-07-17 16:54:23 UTC) #15
piman
https://chromiumcodereview.appspot.com/10749019/diff/20009/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://chromiumcodereview.appspot.com/10749019/diff/20009/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode32 content/common/gpu/client/command_buffer_proxy_impl.cc:32: : video_decoder_hosts_deleter_(&video_decoder_hosts_), So, doesn't this mean that when the ...
8 years, 5 months ago (2012-07-17 17:14:28 UTC) #16
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10749019/diff/20009/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://chromiumcodereview.appspot.com/10749019/diff/20009/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode32 content/common/gpu/client/command_buffer_proxy_impl.cc:32: : video_decoder_hosts_deleter_(&video_decoder_hosts_), On 2012/07/17 17:14:28, piman wrote: > So, ...
8 years, 5 months ago (2012-07-17 17:58:50 UTC) #17
piman
Great, I like it. LGTM
8 years, 5 months ago (2012-07-17 18:04:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/10749019/25030
8 years, 5 months ago (2012-07-17 18:07:25 UTC) #19
Ami GONE FROM CHROMIUM
On 2012/07/17 18:04:07, piman wrote: > Great, I like it. > LGTM Thanks for the ...
8 years, 5 months ago (2012-07-17 18:07:30 UTC) #20
commit-bot: I haz the power
8 years, 5 months ago (2012-07-17 19:37:55 UTC) #21
Try job failure for 10749019-25030 (retry) on mac_rel for step "browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698