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

Unified Diff: webkit/media/android/webmediaplayer_android.cc

Issue 10824141: Remove VideoDecoder::natural_size() & added VideoFrame::natural_size(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: webkit/media/android/webmediaplayer_android.cc
diff --git a/webkit/media/android/webmediaplayer_android.cc b/webkit/media/android/webmediaplayer_android.cc
index ef457b25e5d4f7a9ed113b028d99647e2a57141b..d2d1a9e93261e576d0a5ffa34b9cd0f3b57ff4dc 100644
--- a/webkit/media/android/webmediaplayer_android.cc
+++ b/webkit/media/android/webmediaplayer_android.cc
@@ -453,7 +453,9 @@ void WebMediaPlayerAndroid::OnVideoSizeChanged(int width, int height) {
natural_size_.height = height;
if (texture_id_) {
video_frame_.reset(new WebVideoFrameImpl(VideoFrame::WrapNativeTexture(
- texture_id_, kGLTextureExternalOES, width, height, base::TimeDelta(),
+ texture_id_, kGLTextureExternalOES, width, height,
+ natural_size_,
+ base::TimeDelta(),
base::Closure())));
}
}
« media/filters/video_renderer_base_unittest.cc ('K') | « media/tools/shader_bench/shader_bench.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698