Bug 1514803 - Expose nsPNGEncoder header r=aosmond
authorBarret Rennie <barret@brennie.ca>
Tue, 08 Jan 2019 21:30:45 +0000
changeset 453068 a72d578c3a83289c63a6604e33e797a1f097aab2
parent 453067 95324d36ded5b08991bd78245823931430066298
child 453069 53a37a8d97ee37fbf7f9e8e6991d3964f20d38f7
push id35344
push usershindli@mozilla.com
push dateWed, 09 Jan 2019 21:41:24 +0000
treeherdermozilla-central@47ced8013922 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaosmond
bugs1514803
milestone66.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 1514803 - Expose nsPNGEncoder header r=aosmond Differential Revision: https://phabricator.services.mozilla.com/D14814
image/encoders/png/nsPNGEncoder.h
image/moz.build
--- a/image/encoders/png/nsPNGEncoder.h
+++ b/image/encoders/png/nsPNGEncoder.h
@@ -1,14 +1,15 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#ifndef nsPNGEncoder_h
+#ifndef mozilla_image_encoders_png_nsPNGEncoder_h
+#define mozilla_image_encoders_png_nsPNGEncoder_h
 
 #include <png.h>
 
 #include "imgIEncoder.h"
 #include "nsCOMPtr.h"
 
 #include "mozilla/Attributes.h"
 #include "mozilla/ReentrantMonitor.h"
@@ -69,9 +70,9 @@ class nsPNGEncoder final : public imgIEn
 
   // nsPNGEncoder is designed to allow one thread to pump data into it while
   // another reads from it.  We lock to ensure that the buffer remains
   // append-only while we read from it (that it is not realloced) and to
   // ensure that only one thread dispatches a callback for each call to
   // AsyncWait.
   ReentrantMonitor mReentrantMonitor;
 };
-#endif  // nsPNGEncoder_h
+#endif  // mozilla_image_encoders_png_nsPNGEncoder_h
--- a/image/moz.build
+++ b/image/moz.build
@@ -50,16 +50,17 @@ EXPORTS += [
     'imgRequestProxy.h',
     'IProgressObserver.h',
     'Orientation.h',
     'SurfaceCacheUtils.h',
 ]
 
 EXPORTS.mozilla.image += [
     'encoders/jpeg/nsJPEGEncoder.h',
+    'encoders/png/nsPNGEncoder.h',
     'ImageMemoryReporter.h',
     'RecyclingSourceSurface.h',
 ]
 
 UNIFIED_SOURCES += [
     'AnimationFrameBuffer.cpp',
     'AnimationSurfaceProvider.cpp',
     'ClippedImage.cpp',