Bug 1292747 (Part 1) - Remove 565 optimization telemetry. r=edwin
authorSeth Fowler <mark.seth.fowler@gmail.com>
Sat, 06 Aug 2016 01:24:45 -0700
changeset 398455 1d3d2282717047dc108ce52990843d803630c396
parent 398454 34002422988bfea9fac4ed9b3a15766496a869ca
child 398456 253ca6b47c8f5fd214101e48704470ae169c30f1
push id25532
push userbmo:gasolin@mozilla.com
push dateTue, 09 Aug 2016 05:57:08 +0000
reviewersedwin
bugs1292747
milestone51.0a1
Bug 1292747 (Part 1) - Remove 565 optimization telemetry. r=edwin
image/imgFrame.cpp
toolkit/components/telemetry/Histograms.json
--- a/image/imgFrame.cpp
+++ b/image/imgFrame.cpp
@@ -17,17 +17,16 @@
 #include "gfxAlphaRecovery.h"
 
 #include "GeckoProfiler.h"
 #include "MainThreadUtils.h"
 #include "mozilla/CheckedInt.h"
 #include "mozilla/gfx/Tools.h"
 #include "mozilla/Likely.h"
 #include "mozilla/MemoryReporting.h"
-#include "mozilla/Telemetry.h"
 #include "nsMargin.h"
 #include "nsThreadUtils.h"
 
 
 namespace mozilla {
 
 using namespace gfx;
 
@@ -435,18 +434,16 @@ imgFrame::Optimize()
   }
 
 #ifdef ANDROID
   SurfaceFormat optFormat = gfxPlatform::GetPlatform()
     ->Optimal2DFormatForContent(gfxContentType::COLOR);
 
   if (mFormat != SurfaceFormat::B8G8R8A8 &&
       optFormat == SurfaceFormat::R5G6B5_UINT16) {
-    Telemetry::Accumulate(Telemetry::IMAGE_OPTIMIZE_TO_565_USED, true);
-
     RefPtr<VolatileBuffer> buf =
       AllocateBufferForImage(mFrameRect.Size(), optFormat);
     if (!buf) {
       return NS_OK;
     }
 
     RefPtr<DataSourceSurface> surf =
       CreateLockedSurface(buf, mFrameRect.Size(), optFormat);
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -1018,23 +1018,16 @@
   "IMAGE_DECODE_SPEED_PNG": {
     "expires_in_version": "never",
     "kind": "exponential",
     "low": 500,
     "high": 50000000,
     "n_buckets": 50,
     "description": "PNG image decode speed (Kbytes/sec)"
   },
-  "IMAGE_OPTIMIZE_TO_565_USED": {
-    "expires_in_version": "54",
-    "kind": "boolean",
-    "description": "Records true each time a decoded image is optimized to R5G6B5 format.",
-    "alert_emails": ["seth@mozilla.com"],
-    "bug_numbers": [1281680]
-  },
   "CANVAS_2D_USED": {
     "expires_in_version": "never",
     "kind": "boolean",
     "description": "2D canvas used"
   },
   "CANVAS_WEBGL_ACCL_FAILURE_ID": {
     "alert_emails": ["gfx-telemetry-alerts@mozilla.com","bgirard@mozilla.com","msreckovic@mozilla.com"],
     "expires_in_version": "never",