Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) a=ritu
authorBill McCloskey <billm@mozilla.com>
Mon, 04 Jan 2016 16:00:27 -0800
changeset 306022 ed31b63cffd0414d5f5a94a1724572e57a5a6465
parent 306021 6227624c15df9f8ffcb6e8621fed477bd2d4a1a9
child 306023 9a6a8fe3ec9dd95901260f375144ec0159764149
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, ritu
bugs1236266
milestone44.0
Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) a=ritu
gfx/ipc/GfxMessageUtils.h
--- a/gfx/ipc/GfxMessageUtils.h
+++ b/gfx/ipc/GfxMessageUtils.h
@@ -371,17 +371,17 @@ template<typename Region, typename Rect,
 struct RegionParamTraits
 {
   typedef Region paramType;
 
   static void Write(Message* msg, const paramType& param)
   {
     Iter it(param);
     while (const Rect* r = it.Next()) {
-      MOZ_ASSERT(!r->IsEmpty());
+      MOZ_RELEASE_ASSERT(!r->IsEmpty());
       WriteParam(msg, *r);
     }
     // empty rects are sentinel values because nsRegions will never
     // contain them
     WriteParam(msg, Rect());
   }
 
   static bool Read(const Message* msg, void** iter, paramType* result)