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

Unified Diff: media/gpu/vp8_decoder.cc

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
Index: media/gpu/vp8_decoder.cc
diff --git a/media/gpu/vp8_decoder.cc b/media/gpu/vp8_decoder.cc
index 9d582ed0a627a3c862fe60e8aec93c38d27f9126..8c6f4f660636a8e62c89713e4a5fa75eb141a27a 100644
--- a/media/gpu/vp8_decoder.cc
+++ b/media/gpu/vp8_decoder.cc
@@ -185,6 +185,10 @@ gfx::Size VP8Decoder::GetPicSize() const {
return pic_size_;
}
+gfx::Rect VP8Decoder::GetVisibleRect() const {
+ return gfx::Rect(pic_size_);
+}
+
size_t VP8Decoder::GetRequiredNumOfPictures() const {
const size_t kVP8NumFramesActive = 4;
const size_t kPicsInPipeline = limits::kMaxVideoFrames + 2;

Powered by Google App Engine
This is Rietveld 408576698