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

Issue 11411053: Reuse PPB_Buffer_Impl in ContentDecryptorDelegate. (Closed)

Created:
8 years, 1 month ago by xhwang
Modified:
8 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Reuse PPB_Buffer_Impl in ContentDecryptorDelegate. PPB_Buffer_Impl wraps shared memory which is expensive to allocate. Allocating shared memory involved an sync IPC to to browser. To reduce the latency caused by this, reuse PPB_Buffer_Impl in ContentDecryptorDelegate for audio and video streams. Test on Linux (Ubuntu 10.04) shows that this change reduces the time to MakeBufferResource() from 0.543ms to 0.040 ms per frame. The difference can be larger on slower platforms. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168632

Patch Set 1 #

Total comments: 18

Patch Set 2 : resolve ddorwin's comments #

Total comments: 2

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -16 lines) Patch
M webkit/plugins/ppapi/content_decryptor_delegate.h View 1 3 chunks +20 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/content_decryptor_delegate.cc View 1 2 9 chunks +95 lines, -16 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
xhwang
PTAL!
8 years, 1 month ago (2012-11-17 01:27:58 UTC) #1
ddorwin
http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc File webkit/plugins/ppapi/content_decryptor_delegate.cc (right): http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc#newcode342 webkit/plugins/ppapi/content_decryptor_delegate.cc:342: // |{audio|video}_input_resource_size_| must be available here because there What ...
8 years, 1 month ago (2012-11-17 02:07:37 UTC) #2
xhwang
PTAL again! http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc File webkit/plugins/ppapi/content_decryptor_delegate.cc (right): http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc#newcode342 webkit/plugins/ppapi/content_decryptor_delegate.cc:342: // |{audio|video}_input_resource_size_| must be available here because ...
8 years, 1 month ago (2012-11-18 00:10:33 UTC) #3
ddorwin
LGTM % nit. Thanks. http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc File webkit/plugins/ppapi/content_decryptor_delegate.cc (right): http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc#newcode942 webkit/plugins/ppapi/content_decryptor_delegate.cc:942: } On 2012/11/18 00:10:33, xhwang ...
8 years, 1 month ago (2012-11-18 00:37:19 UTC) #4
xhwang
dmichael@: could you please do a OWNERS review?
8 years, 1 month ago (2012-11-19 19:39:24 UTC) #5
dmichael (off chromium)
lgtm
8 years, 1 month ago (2012-11-19 20:11:35 UTC) #6
xhwang
http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc File webkit/plugins/ppapi/content_decryptor_delegate.cc (right): http://codereview.chromium.org/11411053/diff/1/webkit/plugins/ppapi/content_decryptor_delegate.cc#newcode942 webkit/plugins/ppapi/content_decryptor_delegate.cc:942: } On 2012/11/18 00:37:19, ddorwin wrote: > On 2012/11/18 ...
8 years, 1 month ago (2012-11-19 21:16:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11411053/6
8 years, 1 month ago (2012-11-19 21:17:03 UTC) #8
commit-bot: I haz the power
8 years, 1 month ago (2012-11-19 23:33:33 UTC) #9
Change committed as 168632

Powered by Google App Engine
This is Rietveld 408576698