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

Unified Diff: media/base/video_frame_pool.h

Issue 1267003004: Revert to zero-initializing buffers for FFmpegVideoDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zero initialize only the planes. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/video_frame_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame_pool.h
diff --git a/media/base/video_frame_pool.h b/media/base/video_frame_pool.h
index 947e8afd4fd6cfd819c45d743894c54a75cc9d60..d5c1690e9b567b9302667b6e879a0e8ff1e6d2c6 100644
--- a/media/base/video_frame_pool.h
+++ b/media/base/video_frame_pool.h
@@ -25,7 +25,9 @@ class MEDIA_EXPORT VideoFramePool {
// Returns a frame from the pool that matches the specified
// parameters or creates a new frame if no suitable frame exists in
- // the pool.
+ // the pool. The pool is drained if no matching frame is found.
+ // The buffer for the new frame will be zero initialized. Reused frames will
+ // not be zero initialized.
scoped_refptr<VideoFrame> CreateFrame(VideoPixelFormat format,
const gfx::Size& coded_size,
const gfx::Rect& visible_rect,
« no previous file with comments | « no previous file | media/base/video_frame_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698