Bug 1241865 - Disable canvas-2d-pixels memory reporter as it currently reports inaccurate values. r=nical
authorGeorge Wright <george@mozilla.com>
Tue, 13 Sep 2016 23:03:09 -0400
changeset 355051 0e86a4830af98020d503358094034baee6b8ad67
parent 355050 deaaf8536e8cdd46c7a464db586be20b5f8d3ef1
child 355052 663cde4dd04473cc3106f8bf1f64332f27a0f131
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1241865
milestone51.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 1241865 - Disable canvas-2d-pixels memory reporter as it currently reports inaccurate values. r=nical
dom/canvas/CanvasRenderingContext2D.cpp
--- a/dom/canvas/CanvasRenderingContext2D.cpp
+++ b/dom/canvas/CanvasRenderingContext2D.cpp
@@ -1684,17 +1684,18 @@ CanvasRenderingContext2D::SetErrorState(
 }
 
 void
 CanvasRenderingContext2D::RegisterAllocation()
 {
   // XXX - It would make more sense to track the allocation in
   // PeristentBufferProvider, rather than here.
   static bool registered = false;
-  if (!registered) {
+  // FIXME: Disable the reporter for now, see bug 1241865
+  if (!registered && false) {
     registered = true;
     RegisterStrongMemoryReporter(new Canvas2dPixelsReporter());
   }
 
   gCanvasAzureMemoryUsed += mWidth * mHeight * 4;
   JSContext* context = nsContentUtils::GetCurrentJSContext();
   if (context) {
     JS_updateMallocCounter(context, mWidth * mHeight * 4);