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

Issue 11274036: Refactor video capture to new design (Closed)

Created:
8 years, 1 month ago by victorhsieh
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Refactor video capture to new design, as part of the whole Pepper resource redesign. New design provides higher performance and involves writing much less code. See the pepper implementation doc for detail. http://www.chromium.org/developers/design-documents/pepper-plugin-implementation BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168163

Patch Set 1 : #

Total comments: 29

Patch Set 2 : #

Total comments: 2

Patch Set 3 : bind callback #

Total comments: 97

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : rebase #

Patch Set 12 : export #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1043 lines, -1787 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_flash_host.h View 1 2 3 4 5 6 2 chunks +0 lines, -13 lines 0 comments Download
M content/renderer/pepper/pepper_flash_host.cc View 1 2 3 4 5 6 3 chunks +1 line, -56 lines 0 comments Download
A content/renderer/pepper/pepper_video_capture_host.h View 1 2 3 1 chunk +116 lines, -0 lines 0 comments Download
A content/renderer/pepper/pepper_video_capture_host.cc View 1 2 3 4 5 1 chunk +460 lines, -0 lines 0 comments Download
M ppapi/api/dev/ppb_video_capture_dev.idl View 1 2 3 6 chunks +0 lines, -24 lines 0 comments Download
M ppapi/c/dev/ppb_video_capture_dev.h View 1 3 chunks +1 line, -13 lines 0 comments Download
M ppapi/cpp/dev/video_capture_dev.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M ppapi/cpp/dev/video_capture_dev.cc View 1 2 3 6 chunks +3 lines, -39 lines 0 comments Download
M ppapi/examples/enumerate_devices/enumerate_devices.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/examples/video_capture/video_capture.cc View 1 1 chunk +0 lines, -7 lines 0 comments Download
M ppapi/examples/video_capture/video_capture.html View 1 2 chunks +3 lines, -7 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 5 chunks +0 lines, -12 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/proxy/flash_resource.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -8 lines 0 comments Download
M ppapi/proxy/flash_resource.cc View 1 2 3 4 5 2 chunks +0 lines, -42 lines 0 comments Download
M ppapi/proxy/flash_resource_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -36 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +30 lines, -59 lines 0 comments Download
D ppapi/proxy/ppb_video_capture_proxy.h View 1 chunk +0 lines, -107 lines 0 comments Download
D ppapi/proxy/ppb_video_capture_proxy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -546 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
M ppapi/proxy/resource_message_params.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_message_params.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 2 3 2 chunks +0 lines, -8 lines 0 comments Download
A ppapi/proxy/video_capture_resource.h View 1 2 3 4 5 6 7 8 1 chunk +93 lines, -0 lines 0 comments Download
A ppapi/proxy/video_capture_resource.cc View 1 2 3 4 5 6 7 8 1 chunk +277 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_video_capture_shared.h View 1 1 chunk +0 lines, -100 lines 0 comments Download
D ppapi/shared_impl/ppb_video_capture_shared.cc View 1 2 3 1 chunk +0 lines, -187 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M ppapi/thunk/ppb_buffer_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_buffer_trusted_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_flash_functions_api.h View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M ppapi/thunk/ppb_flash_thunk.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -12 lines 0 comments Download
M ppapi/thunk/ppb_video_capture_api.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -8 lines 0 comments Download
M ppapi/thunk/ppb_video_capture_thunk.cc View 1 2 chunks +0 lines, -22 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_buffer_impl.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
D webkit/plugins/ppapi/ppb_video_capture_impl.h View 1 chunk +0 lines, -109 lines 0 comments Download
D webkit/plugins/ppapi/ppb_video_capture_impl.cc View 1 chunk +0 lines, -332 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
victorhsieh
I've tested it with ppapi_example_vc and a flash with webcam. But please check my comment ...
8 years, 1 month ago (2012-10-25 09:16:42 UTC) #1
raymes
8 years, 1 month ago (2012-10-25 14:49:25 UTC) #2
yzshen1
Here are a few high-level comments. I am OOO today and will take a closer ...
8 years, 1 month ago (2012-10-25 20:41:05 UTC) #3
victorhsieh
http://codereview.chromium.org/11274036/diff/4026/content/renderer/pepper/pepper_video_capture_host.cc File content/renderer/pepper/pepper_video_capture_host.cc (right): http://codereview.chromium.org/11274036/diff/4026/content/renderer/pepper/pepper_video_capture_host.cc#newcode251 content/renderer/pepper/pepper_video_capture_host.cc:251: instance->delegate()->EnumerateDevices( On 2012/10/25 20:41:05, yzshen1 wrote: > FYI: I ...
8 years, 1 month ago (2012-10-26 02:34:54 UTC) #4
yzshen1
A few more comments. Haven't looked into the details of .*_host.* and .*_resource.* . Will ...
8 years, 1 month ago (2012-10-29 18:34:22 UTC) #5
victorhsieh
PTAL https://chromiumcodereview.appspot.com/11274036/diff/4026/content/renderer/pepper/content_renderer_pepper_host_factory.cc File content/renderer/pepper/content_renderer_pepper_host_factory.cc (right): https://chromiumcodereview.appspot.com/11274036/diff/4026/content/renderer/pepper/content_renderer_pepper_host_factory.cc#newcode45 content/renderer/pepper/content_renderer_pepper_host_factory.cc:45: PepperVideoCaptureHost* host = new PepperVideoCaptureHost( On 2012/10/29 18:34:23, ...
8 years, 1 month ago (2012-10-30 09:43:28 UTC) #6
brettw
LGTM for a high-level review. I'll defer to Yuzhu for the rest. http://codereview.chromium.org/11274036/diff/16001/ppapi/proxy/video_capture_resource.cc File ppapi/proxy/video_capture_resource.cc ...
8 years, 1 month ago (2012-10-31 23:50:26 UTC) #7
yzshen1
On 2012/10/29 18:34:23, yzshen1 wrote: > The reason why we needed the state machine on ...
8 years, 1 month ago (2012-11-01 18:03:07 UTC) #8
victorhsieh
https://chromiumcodereview.appspot.com/11274036/diff/4026/ppapi/shared_impl/ppb_video_capture_shared.h File ppapi/shared_impl/ppb_video_capture_shared.h (right): https://chromiumcodereview.appspot.com/11274036/diff/4026/ppapi/shared_impl/ppb_video_capture_shared.h#newcode15 ppapi/shared_impl/ppb_video_capture_shared.h:15: class PPAPI_SHARED_EXPORT PPB_VideoCapture_Shared { Oops, I guess I missed ...
8 years, 1 month ago (2012-11-02 04:28:47 UTC) #9
yzshen1
More comments. I haven't reviewed *_host.*. http://codereview.chromium.org/11274036/diff/4026/content/renderer/pepper/content_renderer_pepper_host_factory.cc File content/renderer/pepper/content_renderer_pepper_host_factory.cc (right): http://codereview.chromium.org/11274036/diff/4026/content/renderer/pepper/content_renderer_pepper_host_factory.cc#newcode45 content/renderer/pepper/content_renderer_pepper_host_factory.cc:45: PepperVideoCaptureHost* host = ...
8 years, 1 month ago (2012-11-06 06:51:40 UTC) #10
yzshen1
https://chromiumcodereview.appspot.com/11274036/diff/25033/content/renderer/pepper/pepper_video_capture_host.cc File content/renderer/pepper/pepper_video_capture_host.cc (right): https://chromiumcodereview.appspot.com/11274036/diff/25033/content/renderer/pepper/pepper_video_capture_host.cc#newcode7 content/renderer/pepper/pepper_video_capture_host.cc:7: #include "content/public/renderer/renderer_ppapi_host.h" you have included it in .h. https://chromiumcodereview.appspot.com/11274036/diff/25033/content/renderer/pepper/pepper_video_capture_host.cc#newcode9 ...
8 years, 1 month ago (2012-11-06 21:56:23 UTC) #11
victorhsieh
PTAL Thanks for detail review! http://codereview.chromium.org/11274036/diff/4026/content/renderer/pepper/content_renderer_pepper_host_factory.cc File content/renderer/pepper/content_renderer_pepper_host_factory.cc (right): http://codereview.chromium.org/11274036/diff/4026/content/renderer/pepper/content_renderer_pepper_host_factory.cc#newcode45 content/renderer/pepper/content_renderer_pepper_host_factory.cc:45: PepperVideoCaptureHost* host = new ...
8 years, 1 month ago (2012-11-08 09:20:18 UTC) #12
yzshen1
https://chromiumcodereview.appspot.com/11274036/diff/25033/content/renderer/pepper/content_renderer_pepper_host_factory.cc File content/renderer/pepper/content_renderer_pepper_host_factory.cc (right): https://chromiumcodereview.appspot.com/11274036/diff/25033/content/renderer/pepper/content_renderer_pepper_host_factory.cc#newcode59 content/renderer/pepper/content_renderer_pepper_host_factory.cc:59: PepperVideoCaptureHost* host = new PepperVideoCaptureHost( Ah. Didn't know about ...
8 years, 1 month ago (2012-11-10 01:14:40 UTC) #13
victorhsieh
PTAL Raymes, please help to review flash* files. I didn't remove flash_host but let me ...
8 years, 1 month ago (2012-11-13 03:10:53 UTC) #14
raymes
The *flash* files look good. Please also test the enumerate devices ppapi example and make ...
8 years, 1 month ago (2012-11-13 15:53:45 UTC) #15
raymes
http://codereview.chromium.org/11274036/diff/27043/content/renderer/pepper/pepper_flash_host.cc File content/renderer/pepper/pepper_flash_host.cc (left): http://codereview.chromium.org/11274036/diff/27043/content/renderer/pepper/pepper_flash_host.cc#oldcode36 content/renderer/pepper/pepper_flash_host.cc:36: int32_t PepperFlashHost::OnResourceMessageReceived( Please leave this here and just return ...
8 years, 1 month ago (2012-11-13 15:54:15 UTC) #16
victorhsieh
Done. And add jln@ for ppapi_messages.h review. http://codereview.chromium.org/11274036/diff/27043/content/renderer/pepper/pepper_flash_host.cc File content/renderer/pepper/pepper_flash_host.cc (left): http://codereview.chromium.org/11274036/diff/27043/content/renderer/pepper/pepper_flash_host.cc#oldcode36 content/renderer/pepper/pepper_flash_host.cc:36: int32_t PepperFlashHost::OnResourceMessageReceived( ...
8 years, 1 month ago (2012-11-14 01:07:50 UTC) #17
jln (very slow on Chromium)
On 2012/11/14 01:07:50, Victor Hsieh wrote: > Done. And add jln@ for ppapi_messages.h review. The ...
8 years, 1 month ago (2012-11-14 01:25:03 UTC) #18
victorhsieh
On 2012/11/14 01:25:03, Julien Tinnes wrote: > On 2012/11/14 01:07:50, Victor Hsieh wrote: > > ...
8 years, 1 month ago (2012-11-14 01:40:57 UTC) #19
yzshen1
http://codereview.chromium.org/11274036/diff/25033/content/renderer/pepper/pepper_video_capture_host.cc File content/renderer/pepper/pepper_video_capture_host.cc (right): http://codereview.chromium.org/11274036/diff/25033/content/renderer/pepper/pepper_video_capture_host.cc#newcode197 content/renderer/pepper/pepper_video_capture_host.cc:197: HostResource host_resource; On 2012/11/13 03:10:53, Victor Hsieh wrote: > ...
8 years, 1 month ago (2012-11-14 06:54:16 UTC) #20
victorhsieh
http://codereview.chromium.org/11274036/diff/22004/ppapi/proxy/video_capture_resource.cc File ppapi/proxy/video_capture_resource.cc (right): http://codereview.chromium.org/11274036/diff/22004/ppapi/proxy/video_capture_resource.cc#newcode164 ppapi/proxy/video_capture_resource.cc:164: ppp_video_capture_impl_->OnDeviceInfo( On 2012/11/14 06:54:16, yzshen1 wrote: > Please see ...
8 years, 1 month ago (2012-11-14 08:22:27 UTC) #21
Pam (message me for reviews)
Drive-by: Please be more complete in your change description. What new design? Why? How is ...
8 years, 1 month ago (2012-11-14 13:06:45 UTC) #22
victorhsieh
On 2012/11/14 13:06:45, Pam wrote: > Drive-by: Please be more complete in your change description. ...
8 years, 1 month ago (2012-11-14 13:22:34 UTC) #23
yzshen1
http://codereview.chromium.org/11274036/diff/33022/ppapi/thunk/ppb_video_capture_api.h File ppapi/thunk/ppb_video_capture_api.h (right): http://codereview.chromium.org/11274036/diff/33022/ppapi/thunk/ppb_video_capture_api.h#newcode40 ppapi/thunk/ppb_video_capture_api.h:40: virtual int32_t EnumerateDevicesSync(PP_ArrayOutput* devices) = 0; I mean const ...
8 years, 1 month ago (2012-11-14 17:55:36 UTC) #24
victorhsieh
http://codereview.chromium.org/11274036/diff/30058/ppapi/proxy/video_capture_resource.cc File ppapi/proxy/video_capture_resource.cc (right): http://codereview.chromium.org/11274036/diff/30058/ppapi/proxy/video_capture_resource.cc#newcode138 ppapi/proxy/video_capture_resource.cc:138: PP_ArrayOutput& devices) { On 2012/11/14 17:55:36, yzshen1 wrote: > ...
8 years, 1 month ago (2012-11-14 22:47:35 UTC) #25
brettw
I think you make a reasonable point. It looks like we use const in other ...
8 years, 1 month ago (2012-11-14 22:51:51 UTC) #26
yzshen1
http://codereview.chromium.org/11274036/diff/30058/ppapi/proxy/video_capture_resource.cc File ppapi/proxy/video_capture_resource.cc (right): http://codereview.chromium.org/11274036/diff/30058/ppapi/proxy/video_capture_resource.cc#newcode138 ppapi/proxy/video_capture_resource.cc:138: PP_ArrayOutput& devices) { On 2012/11/14 22:47:35, Victor Hsieh wrote: ...
8 years, 1 month ago (2012-11-14 23:01:02 UTC) #27
victorhsieh
Sometimes I had the same dilemma on different code base. Nice to see a standard ...
8 years, 1 month ago (2012-11-14 23:23:08 UTC) #28
yzshen1
LGTM Thanks!
8 years, 1 month ago (2012-11-14 23:34:44 UTC) #29
victorhsieh
Julien, To answer your question in our offline discussion, the security level should remains the ...
8 years, 1 month ago (2012-11-15 04:39:57 UTC) #30
jln (very slow on Chromium)
On 2012/11/15 04:39:57, Victor Hsieh wrote: > Julien, > > To answer your question in ...
8 years, 1 month ago (2012-11-16 00:27:01 UTC) #31
yzshen1
On 2012/11/16 00:27:01, Julien Tinnes wrote: > On 2012/11/15 04:39:57, Victor Hsieh wrote: > > ...
8 years, 1 month ago (2012-11-16 00:53:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/victorhsieh@chromium.org/11274036/42001
8 years, 1 month ago (2012-11-16 02:02:01 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/victorhsieh@chromium.org/11274036/43043
8 years, 1 month ago (2012-11-16 03:19:15 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/victorhsieh@chromium.org/11274036/43043
8 years, 1 month ago (2012-11-16 07:36:45 UTC) #35
commit-bot: I haz the power
8 years, 1 month ago (2012-11-16 07:53:10 UTC) #36
Change committed as 168163

Powered by Google App Engine
This is Rietveld 408576698