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

Unified Diff: media/base/video_frame.h

Issue 22935009: Add content::SurfaceCapturer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_stride
Patch Set: cff149b4 WIP Created 7 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
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 82a08a986de17ce9482f8ff8767fbe3403e21a86..56eb1e57bfd1e4d8830aae163df8053ff5aff5a2 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -148,6 +148,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
uint8* data,
+ size_t data_size,
base::SharedMemoryHandle handle,
base::TimeDelta timestamp,
const base::Closure& no_longer_needed_cb);
@@ -192,6 +193,11 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
static size_t NumPlanes(Format format);
+ // Returns the required allocation size for a (tightly packed) frame of the
+ // givencoded size and format.
+ static size_t AllocationSize(Format format, const gfx::Size& coded_size);
+
+
Format format() const { return format_; }
const gfx::Size& coded_size() const { return coded_size_; }

Powered by Google App Engine
This is Rietveld 408576698