Bug 1143506 - Give up on sync decoding if we get DrawResult::BAD_IMAGE. r=tn
authorSeth Fowler <seth@mozilla.com>
Tue, 17 Mar 2015 13:56:49 -0700
changeset 264464 c82354a9cf8453a16542ae947f1f2e7fb3ec4fe8
parent 264463 14e7f9959c85d2d28143914209eee85450fc2b59
child 264465 a86ab0a7bce72eb83ad3154470df81df8d685d53
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstn
bugs1143506
milestone39.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 1143506 - Give up on sync decoding if we get DrawResult::BAD_IMAGE. r=tn
layout/base/nsDisplayListInvalidation.h
--- a/layout/base/nsDisplayListInvalidation.h
+++ b/layout/base/nsDisplayListInvalidation.h
@@ -128,17 +128,18 @@ public:
       // We previously invalidated for sync decoding and haven't gotten painted
       // since them. This suggests that our display item is completely occluded
       // and there's no point in invalidating again - and because the reftest
       // harness takes a new snapshot every time we invalidate, doing so might
       // lead to an invalidation loop if we're in a reftest.
       return false;
     }
 
-    if (mLastDrawResult == mozilla::image::DrawResult::SUCCESS) {
+    if (mLastDrawResult == mozilla::image::DrawResult::SUCCESS ||
+        mLastDrawResult == mozilla::image::DrawResult::BAD_IMAGE) {
       return false;
     }
 
     return true;
   }
 
 private:
   mozilla::image::DrawResult mLastDrawResult;