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

Unified Diff: media/base/video_frame.h

Issue 1227383003: Remove memset from VideoFrame and mark buffer as unpoisoned (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dalecurtis@ comments. Created 5 years, 5 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
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 2588e46e99d96b6dd8156feee0da1450e241ca90..e66ffffafc8a6bd5a6f950536e3f7e96cd8679bc 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -286,6 +286,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// given coded size and format.
static size_t AllocationSize(Format format, const gfx::Size& coded_size);
+ // Returns the actual allocation size for a YUV frame that is created by
+ // CreateFrame() method.
+ static size_t AlignedAllocationSize(const scoped_refptr<VideoFrame>& frame);
+
// Returns the plane gfx::Size (in bytes) for a plane of the given coded size
// and format.
static gfx::Size PlaneSize(Format format,

Powered by Google App Engine
This is Rietveld 408576698