Backed out changeset 81601f1ab879 (bug 1448703) for build bustages at builds/worker/workspace/build/src/gfx/webrender_bindings/Moz2DImageRenderer.cpp:108 on a CLOSED TREE
authorAndreea Pavel <apavel@mozilla.com>
Thu, 26 Apr 2018 18:52:48 +0300
changeset 415835 7a50e32d708acd69e5fc41dbc3eb6815d93cfbde
parent 415834 81601f1ab8799a121d82d5b560888aa7296fc776
child 415836 28c2803c243aaccac97653e21013450e74f4ef90
push id33910
push usershindli@mozilla.com
push dateThu, 26 Apr 2018 21:39:52 +0000
treeherdermozilla-central@63a0e2f626fe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1448703
milestone61.0a1
backs out81601f1ab8799a121d82d5b560888aa7296fc776
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
Backed out changeset 81601f1ab879 (bug 1448703) for build bustages at builds/worker/workspace/build/src/gfx/webrender_bindings/Moz2DImageRenderer.cpp:108 on a CLOSED TREE
gfx/webrender_bindings/Moz2DImageRenderer.cpp
--- a/gfx/webrender_bindings/Moz2DImageRenderer.cpp
+++ b/gfx/webrender_bindings/Moz2DImageRenderer.cpp
@@ -84,33 +84,33 @@ static struct FontDeleteLog {
   }
 
   // Store namespace clears as font id 0, since this will never be allocated.
   void Add(WrIdNamespace aNamespace) {
     AddEntry(AsUint64(WrFontKey { aNamespace, 0 }));
   }
 
   void AddAll() {
-    AddEntry(~0);
+    AddEntry(0);
   }
 
   // Find a matching entry in the log, searching backwards starting at the newest
   // entry and finishing with the oldest entry. Returns a brief description of why
   // the font was deleted, if known.
   const char* Find(WrFontKey aKey) {
     uint64_t keyEntry = AsUint64(aKey);
     uint64_t namespaceEntry = AsUint64(WrFontKey { aKey.mNamespace, 0 });
     size_t offset = mNextEntry;
     do {
       offset = (offset + MAX_ENTRIES - 1) % MAX_ENTRIES;
       if (mEntries[offset] == keyEntry) {
         return "deleted font";
       } else if (mEntries[offset] == namespaceEntry) {
         return "cleared namespace";
-      } else if (mEntries[offset] == ~0) {
+      } else if (!mEntries[offset]) {
         return "cleared all";
       }
     } while (offset != mNextEntry);
     return "unknown font";
   }
 } sFontDeleteLog;
 
 void