Bug 1344649 - part 1: use picture instead of display size to construct Image. r?jya draft
authorJohn Lin <jolin@mozilla.com>
Thu, 09 Mar 2017 12:08:34 +0800
changeset 497991 0a1163c2cb1b91232a58ea690db291ce75265c91
parent 497875 6d38ad302429c98115c354d643e81987ecec5d3c
child 497992 625093bc6c8db1a106cb6f6b5f722d757e9493db
push id49080
push userbmo:jolin@mozilla.com
push dateTue, 14 Mar 2017 04:52:48 +0000
reviewersjya
bugs1344649
milestone55.0a1
Bug 1344649 - part 1: use picture instead of display size to construct Image. r?jya MozReview-Commit-ID: LkVq9iaj14k
dom/media/platforms/android/RemoteDataDecoder.cpp
--- a/dom/media/platforms/android/RemoteDataDecoder.cpp
+++ b/dom/media/platforms/android/RemoteDataDecoder.cpp
@@ -177,17 +177,17 @@ public:
           && !isEOS) {
         return;
       }
 
       if (size > 0) {
         MutexAutoLock lock(mDecoder->mMutex);
 
         RefPtr<layers::Image> img = new SurfaceTextureImage(
-          mDecoder->mSurfaceTexture.get(), mDecoder->mConfig.mDisplay,
+          mDecoder->mSurfaceTexture.get(), mDecoder->mConfig.mImage,
           gl::OriginPos::BottomLeft);
 
         RefPtr<VideoData> v = VideoData::CreateFromImage(
           mDecoder->mConfig, offset, presentationTimeUs, durationUs,
           img, !!(flags & MediaCodec::BUFFER_FLAG_SYNC_FRAME),
           presentationTimeUs,
           gfx::IntRect(0, 0, mDecoder->mConfig.mDisplay.width,
                        mDecoder->mConfig.mDisplay.height));