Bug 1368776 - Part 8. Fix ImageResource::GetImageContainerImpl assert to allow high quality scaling. r=tnikkel
authorAndrew Osmond <aosmond@mozilla.com>
Fri, 17 Nov 2017 06:45:26 -0500
changeset 392469 9402cc966061e6954409bbe7ca8047ba1fd0eec1
parent 392468 fd84718d8dbf50f149b6e131d496e495d1a08cf2
child 392470 0cd5200c5f768b8d10ef23ac8986003c0c71375b
push id32921
push usernerli@mozilla.com
push dateFri, 17 Nov 2017 22:02:18 +0000
treeherdermozilla-central@daa0dcd1616c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstnikkel
bugs1368776
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1368776 - Part 8. Fix ImageResource::GetImageContainerImpl assert to allow high quality scaling. r=tnikkel
image/Image.cpp
--- a/image/Image.cpp
+++ b/image/Image.cpp
@@ -98,17 +98,18 @@ already_AddRefed<ImageContainer>
 ImageResource::GetImageContainerImpl(LayerManager* aManager,
                                      const IntSize& aSize,
                                      uint32_t aFlags)
 {
   MOZ_ASSERT(NS_IsMainThread());
   MOZ_ASSERT(aManager);
   MOZ_ASSERT((aFlags & ~(FLAG_SYNC_DECODE |
                          FLAG_SYNC_DECODE_IF_FAST |
-                         FLAG_ASYNC_NOTIFY))
+                         FLAG_ASYNC_NOTIFY |
+                         FLAG_HIGH_QUALITY_SCALING))
                == FLAG_NONE,
              "Unsupported flag passed to GetImageContainer");
 
   if (!IsImageContainerAvailable(aManager, aFlags)) {
     return nullptr;
   }
 
   if (mAnimationConsumers == 0) {