summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authormagjed <magjed@chromium.org>2014-10-28 10:42:52 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-28 17:43:12 +0000
commitd7fee8e7dd15c692e6946792b86d0806583e3b03 (patch)
tree9e60e216ca4df958dba8bb1f922fc9c7cbef6eab /ppapi/api
parentdb4e5e24ad969ae8efc8f3cadd392b072dfd07cf (diff)
downloadchromium_src-d7fee8e7dd15c692e6946792b86d0806583e3b03.zip
chromium_src-d7fee8e7dd15c692e6946792b86d0806583e3b03.tar.gz
chromium_src-d7fee8e7dd15c692e6946792b86d0806583e3b03.tar.bz2
With this CL, the time for PepperVideoSourceHost::SendGetFrameReply drops from about 4ms to 0.7ms for each 720p frame.
If the current video frame is of the same size as the previous frame, reuse the shared memory and overwrite the previous frame. Pepper does not hold onto a frame after it has been processed, and it indicates processing is done by sending a new request, so overwriting the previous frame should be fine. BUG=423365 Review URL: https://codereview.chromium.org/653873003 Cr-Commit-Position: refs/heads/master@{#301657}
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/private/ppb_video_source_private.idl3
1 files changed, 2 insertions, 1 deletions
diff --git a/ppapi/api/private/ppb_video_source_private.idl b/ppapi/api/private/ppb_video_source_private.idl
index 3fc5872..e57eedd 100644
--- a/ppapi/api/private/ppb_video_source_private.idl
+++ b/ppapi/api/private/ppb_video_source_private.idl
@@ -61,7 +61,8 @@ interface PPB_VideoSource_Private {
[in] PP_CompletionCallback callback);
/**
- * Gets a frame from the video source.
+ * Gets a frame from the video source. The returned image data is only valid
+ * until the next call to GetFrame.
* The image data resource inside the returned frame will have its reference
* count incremented by one and must be managed by the plugin.
*