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

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

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Created 8 years, 2 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 b105c35682ce9f13518270f158559242b695b5b6..a7367028632c0f4a8320d7333895594c795a0459 100644
--- a/webkit/media/android/webmediaplayer_android.cc
+++ b/webkit/media/android/webmediaplayer_android.cc
@@ -335,10 +335,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, natural_size_, natural_size_,
- base::TimeDelta(),
- VideoFrame::ReadPixelsCB(),
- base::Closure())));
+ texture_id_, kGLTextureExternalOES, natural_size_,
+ gfx::Rect(natural_size_), natural_size_, base::TimeDelta(),
+ VideoFrame::ReadPixelsCB(), base::Closure())));
}
}

Powered by Google App Engine
This is Rietveld 408576698