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

Issue 10388108: Implement media::VideoDecodeAccelerator on Mac (Closed)

Created:
8 years, 7 months ago by sail
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, apatrick_chromium, darin-cc_chromium.org, viettrungluu, Pawel Osciak
Visibility:
Public.

Description

Implement media::VideoDecodeAccelerator on Mac This CL implements media::VideoDecodeAccelerator for Mac. This will be used to implement hardware video decoding for Pepper Flash. Currently a couple things are still missing: - the new VideoDecodeAcceleratorMac class needs to be hooked up to GpuVideoDecodeAccelerator - the PPB_VideoDecoder_Dev::Create() API needs to be extended so clients can specify the extra AVC data. BUG=127414 TEST=Ran on Mac and Windows. Sending ARM try bots now. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140153 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140187

Patch Set 1 #

Patch Set 2 : a #

Patch Set 3 : b #

Patch Set 4 : a #

Total comments: 49

Patch Set 5 : address review comments #

Total comments: 96

Patch Set 6 : patch #

Patch Set 7 : fix typo #

Patch Set 8 : remove #if 0 #

Total comments: 45

Patch Set 9 : address review comments #

Patch Set 10 : remove #if 0 #

Patch Set 11 : a #

Patch Set 12 : a #

Total comments: 2

Patch Set 13 : address review comments #

Total comments: 6

Patch Set 14 : address review comments #

Patch Set 15 : address review comments #

Total comments: 6

Patch Set 16 : address review comments #

Patch Set 17 : fix build #

Patch Set 18 : fix win build #

Patch Set 19 : fix cros build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1302 lines, -441 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M base/mac/scoped_cftyperef.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +32 lines, -10 lines 0 comments Download
M base/memory/scoped_nsobject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +12 lines, -17 lines 0 comments Download
M base/memory/scoped_nsobject_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
A base/memory/scoped_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_window_controller_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
A content/common/gpu/media/mac_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +125 lines, -0 lines 0 comments Download
A content/common/gpu/media/mac_video_decode_accelerator.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +346 lines, -0 lines 0 comments Download
A content/common/gpu/media/rendering_helper.h View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A content/common/gpu/media/rendering_helper_egl.cc View 1 2 3 4 5 1 chunk +388 lines, -0 lines 0 comments Download
A content/common/gpu/media/rendering_helper_mac.mm View 1 2 3 4 5 1 chunk +217 lines, -0 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 15 chunks +59 lines, -394 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +14 lines, -1 line 0 comments Download
M ui/gfx/video_decode_acceleration_support_mac.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gfx/video_decode_acceleration_support_mac.mm View 1 2 3 4 5 5 chunks +8 lines, -8 lines 0 comments Download
M ui/gfx/video_decode_acceleration_support_mac_unittest.mm View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
sail
fischman: video_decode_accelerator_unittest.cc and rendering_helper* rsesek, thakis: everything else
8 years, 7 months ago (2012-05-15 10:24:17 UTC) #1
Robert Sesek
https://chromiumcodereview.appspot.com/10388108/diff/6/base/mac/scoped_refptr_cftype.h File base/mac/scoped_refptr_cftype.h (right): https://chromiumcodereview.appspot.com/10388108/diff/6/base/mac/scoped_refptr_cftype.h#newcode21 base/mac/scoped_refptr_cftype.h:21: class scoped_refptr_cftype { Needs a test. https://chromiumcodereview.appspot.com/10388108/diff/6/base/mac/scoped_refptr_cftype.h#newcode21 base/mac/scoped_refptr_cftype.h:21: class ...
8 years, 7 months ago (2012-05-15 16:04:49 UTC) #2
Ami GONE FROM CHROMIUM
This is exciting! I had no idea you (or anyone!) was working on this. https://chromiumcodereview.appspot.com/10388108/diff/6/base/base.gypi ...
8 years, 7 months ago (2012-05-15 17:55:21 UTC) #3
Avi (use Gerrit)
https://chromiumcodereview.appspot.com/10388108/diff/6/base/mac/scoped_refptr_cftype.h File base/mac/scoped_refptr_cftype.h (right): https://chromiumcodereview.appspot.com/10388108/diff/6/base/mac/scoped_refptr_cftype.h#newcode3 base/mac/scoped_refptr_cftype.h:3: // found in the LICENSE file. scoped_nsobject recently received ...
8 years, 7 months ago (2012-05-15 18:04:18 UTC) #4
sail
https://chromiumcodereview.appspot.com/10388108/diff/6/base/base.gypi File base/base.gypi (right): https://chromiumcodereview.appspot.com/10388108/diff/6/base/base.gypi#newcode1 base/base.gypi:1: # Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 7 months ago (2012-05-15 23:53:31 UTC) #5
Ami GONE FROM CHROMIUM
FYIs: +cc posciak, author of VAVDA (https://chromiumcodereview.appspot.com/9814001/) +cc iyengar, author of DXVA
8 years, 7 months ago (2012-05-16 00:45:15 UTC) #6
Ami GONE FROM CHROMIUM
Turns out that CR comments are like pringles, I can't stop at just one. Don't ...
8 years, 7 months ago (2012-05-17 21:44:47 UTC) #7
sail
Hey Ami. Thanks so much for the thorough review. I think I've addressed all your ...
8 years, 7 months ago (2012-05-23 23:02:29 UTC) #8
sail
fixed some typos
8 years, 7 months ago (2012-05-23 23:20:33 UTC) #9
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10388108/diff/5010/base/mac/scoped_cftyperef.h File base/mac/scoped_cftyperef.h (right): https://chromiumcodereview.appspot.com/10388108/diff/5010/base/mac/scoped_cftyperef.h#newcode38 base/mac/scoped_cftyperef.h:38: OwnershipPolicy policy = ASSUME) On 2012/05/23 23:02:29, sail wrote: ...
8 years, 7 months ago (2012-05-24 21:30:29 UTC) #10
sail
https://chromiumcodereview.appspot.com/10388108/diff/5010/content/common/gpu/media/mac_video_decode_accelerator.mm File content/common/gpu/media/mac_video_decode_accelerator.mm (right): https://chromiumcodereview.appspot.com/10388108/diff/5010/content/common/gpu/media/mac_video_decode_accelerator.mm#newcode95 content/common/gpu/media/mac_video_decode_accelerator.mm:95: cgl_context_ = static_cast<CGLContextObj>(gl_context); On 2012/05/24 21:30:29, Ami Fischman wrote: ...
8 years, 6 months ago (2012-05-29 03:45:00 UTC) #11
sail
https://chromiumcodereview.appspot.com/10388108/diff/25001/content/common/gpu/media/mac_video_decode_accelerator.mm File content/common/gpu/media/mac_video_decode_accelerator.mm (right): https://chromiumcodereview.appspot.com/10388108/diff/25001/content/common/gpu/media/mac_video_decode_accelerator.mm#newcode61 content/common/gpu/media/mac_video_decode_accelerator.mm:61: DLOG(ERROR) << "Unable to get IOSurface for CVPixelBuffer."; On ...
8 years, 6 months ago (2012-05-29 23:22:57 UTC) #12
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10388108/diff/25001/content/common/gpu/media/mac_video_decode_accelerator.mm File content/common/gpu/media/mac_video_decode_accelerator.mm (right): https://chromiumcodereview.appspot.com/10388108/diff/25001/content/common/gpu/media/mac_video_decode_accelerator.mm#newcode97 content/common/gpu/media/mac_video_decode_accelerator.mm:97: uint32_t frame_width, On 2012/05/29 03:45:01, sail wrote: > On ...
8 years, 6 months ago (2012-05-30 00:29:58 UTC) #13
sail
http://codereview.chromium.org/10388108/diff/25001/content/common/gpu/media/mac_video_decode_accelerator.mm File content/common/gpu/media/mac_video_decode_accelerator.mm (right): http://codereview.chromium.org/10388108/diff/25001/content/common/gpu/media/mac_video_decode_accelerator.mm#newcode97 content/common/gpu/media/mac_video_decode_accelerator.mm:97: uint32_t frame_width, On 2012/05/30 00:29:58, Ami Fischman wrote: > ...
8 years, 6 months ago (2012-05-30 20:13:45 UTC) #14
Ami GONE FROM CHROMIUM
LGTM
8 years, 6 months ago (2012-05-30 23:04:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10388108/38001
8 years, 6 months ago (2012-05-30 23:21:52 UTC) #16
commit-bot: I haz the power
Presubmit check for 10388108-38001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-05-30 23:22:21 UTC) #17
sail
thakis: base/mac OWNERS review sky: ui/gfx OWNERS review brettw: content/ OWNERS review
8 years, 6 months ago (2012-05-30 23:28:18 UTC) #18
Nico
https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h File base/mac/scoped_cftyperef.h (right): https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h#newcode41 base/mac/scoped_cftyperef.h:41: explicit ScopedCFTypeRef(CFT object = NULL, Wouldn't it be nicer ...
8 years, 6 months ago (2012-05-30 23:33:39 UTC) #19
sail
https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h File base/mac/scoped_cftyperef.h (right): https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h#newcode41 base/mac/scoped_cftyperef.h:41: explicit ScopedCFTypeRef(CFT object = NULL, On 2012/05/30 23:33:39, Nico ...
8 years, 6 months ago (2012-05-30 23:37:54 UTC) #20
Nico
On 2012/05/30 23:37:54, sail wrote: > https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h > File base/mac/scoped_cftyperef.h (right): > > https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h#newcode41 > ...
8 years, 6 months ago (2012-05-30 23:41:25 UTC) #21
sail
On 2012/05/30 23:41:25, Nico wrote: > On 2012/05/30 23:37:54, sail wrote: > > > https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h ...
8 years, 6 months ago (2012-05-30 23:57:11 UTC) #22
sail
mark, avi: could you take a look at my changes to base/mac. Thanks!
8 years, 6 months ago (2012-05-30 23:57:47 UTC) #23
sky
LGTM
8 years, 6 months ago (2012-05-31 00:24:03 UTC) #24
Avi (use Gerrit)
I'm OK with it; Mark is the one to make happy. https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h File base/mac/scoped_cftyperef.h (right): ...
8 years, 6 months ago (2012-05-31 04:09:39 UTC) #25
Mark Mentovai
https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h File base/mac/scoped_cftyperef.h (right): https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h#newcode17 base/mac/scoped_cftyperef.h:17: enum OwnershipPolicy { Now we have base::mac::OwnershipPolicy here and ...
8 years, 6 months ago (2012-05-31 13:15:52 UTC) #26
sail
https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h File base/mac/scoped_cftyperef.h (right): https://chromiumcodereview.appspot.com/10388108/diff/38001/base/mac/scoped_cftyperef.h#newcode17 base/mac/scoped_cftyperef.h:17: enum OwnershipPolicy { On 2012/05/31 13:15:53, Mark Mentovai wrote: ...
8 years, 6 months ago (2012-06-01 00:05:41 UTC) #27
Mark Mentovai
LGTM otherwise for base OWNERS approval. I only reviewed the files in base. https://chromiumcodereview.appspot.com/10388108/diff/34004/base/memory/scoped_policy.h File ...
8 years, 6 months ago (2012-06-01 03:10:31 UTC) #28
sail
https://chromiumcodereview.appspot.com/10388108/diff/34004/base/memory/scoped_policy.h File base/memory/scoped_policy.h (right): https://chromiumcodereview.appspot.com/10388108/diff/34004/base/memory/scoped_policy.h#newcode10 base/memory/scoped_policy.h:10: On 2012/06/01 03:10:32, Mark Mentovai wrote: > Eliminate this ...
8 years, 6 months ago (2012-06-01 03:19:02 UTC) #29
Mark Mentovai
LGTM for base OWNERS approval.
8 years, 6 months ago (2012-06-01 03:19:45 UTC) #30
brettw
content/*.gypi LGTM
8 years, 6 months ago (2012-06-01 03:27:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10388108/32020
8 years, 6 months ago (2012-06-01 05:34:36 UTC) #32
commit-bot: I haz the power
Try job failure for 10388108-32020 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-01 05:42:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10388108/29008
8 years, 6 months ago (2012-06-01 15:41:39 UTC) #34
commit-bot: I haz the power
Try job failure for 10388108-29008 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-01 16:38:13 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10388108/40001
8 years, 6 months ago (2012-06-01 20:07:09 UTC) #36
commit-bot: I haz the power
Try job failure for 10388108-40001 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-01 22:26:25 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10388108/40001
8 years, 6 months ago (2012-06-01 23:01:30 UTC) #38
commit-bot: I haz the power
Change committed as 140153
8 years, 6 months ago (2012-06-02 01:31:15 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10388108/56002
8 years, 6 months ago (2012-06-02 06:19:44 UTC) #40
commit-bot: I haz the power
8 years, 6 months ago (2012-06-02 08:17:43 UTC) #41
Change committed as 140187

Powered by Google App Engine
This is Rietveld 408576698