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

Unified Diff: content/renderer/media/rtc_video_decoder.cc

Issue 10824141: Remove VideoDecoder::natural_size() & added VideoFrame::natural_size(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright year. Created 8 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
« no previous file with comments | « content/renderer/media/rtc_video_decoder.h ('k') | content/renderer/media/rtc_video_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder.cc
diff --git a/content/renderer/media/rtc_video_decoder.cc b/content/renderer/media/rtc_video_decoder.cc
index f4a0e731755bad222afa2c04a2613ee473c627cf..810856706ba54ca2d3ba92ca46b38ba056cc53c8 100644
--- a/content/renderer/media/rtc_video_decoder.cc
+++ b/content/renderer/media/rtc_video_decoder.cc
@@ -102,11 +102,6 @@ void RTCVideoDecoder::Stop(const base::Closure& closure) {
closure.Run();
}
-const gfx::Size& RTCVideoDecoder::natural_size() {
- // TODO(vrk): Return natural size when aspect ratio support is implemented.
- return visible_size_;
-}
-
void RTCVideoDecoder::PrepareForShutdownHack() {
if (!video_decoder_thread_->RunsTasksOnCurrentThread()) {
video_decoder_thread_->PostTask(
@@ -159,8 +154,8 @@ void RTCVideoDecoder::RenderFrame(const cricket::VideoFrame* frame) {
// TODO(scherkus): migrate this to proper buffer recycling.
scoped_refptr<media::VideoFrame> video_frame =
media::VideoFrame::CreateFrame(media::VideoFrame::YV12,
- visible_size_.width(),
- visible_size_.height(),
+ visible_size_,
+ visible_size_,
timestamp - start_time_);
last_frame_timestamp_ = timestamp;
« no previous file with comments | « content/renderer/media/rtc_video_decoder.h ('k') | content/renderer/media/rtc_video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698