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

Unified Diff: media/gpu/vp9_picture.h

Issue 2926593002: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client (Closed)
Patch Set: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client Created 3 years, 6 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
« media/gpu/vp9_decoder.cc ('K') | « media/gpu/vp9_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/vp9_picture.h
diff --git a/media/gpu/vp9_picture.h b/media/gpu/vp9_picture.h
index 7c026fa2ea91b1c72d9014dba623a61da5bd8230..5b774ce062b9b028f65b9e3f44ff12425d8290fd 100644
--- a/media/gpu/vp9_picture.h
+++ b/media/gpu/vp9_picture.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "media/filters/vp9_parser.h"
+#include "ui/gfx/geometry/rect.h"
namespace media {
@@ -25,6 +26,11 @@ class VP9Picture : public base::RefCounted<VP9Picture> {
std::unique_ptr<Vp9FrameHeader> frame_hdr;
+ // The visible size of picture. This could be either parsed from frame
+ // header, or set to gfx::Rect(0, 0) for indicating the client using the
Owen Lin 2017/06/13 03:00:14 nit: I think we don't need to explain what to do i
johnylin1 2017/06/14 14:11:22 Done.
+ // visible size extracted from the container instead.
+ gfx::Rect visible_rect;
+
protected:
friend class base::RefCounted<VP9Picture>;
virtual ~VP9Picture();
« media/gpu/vp9_decoder.cc ('K') | « media/gpu/vp9_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698