Bug 1417021 - Fix various non-unified build errors in imagelib. r=aosmond

This commit is contained in:
Jonathan Watt
2017-10-24 23:22:55 +01:00
parent 73a1cb85e0
commit 75b61adca2
12 changed files with 25 additions and 6 deletions

View File

@@ -5,17 +5,20 @@
#include "Decoder.h" #include "Decoder.h"
#include "mozilla/gfx/2D.h"
#include "DecodePool.h" #include "DecodePool.h"
#include "GeckoProfiler.h" #include "GeckoProfiler.h"
#include "IDecodingTask.h" #include "IDecodingTask.h"
#include "ISurfaceProvider.h" #include "ISurfaceProvider.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/gfx/Point.h"
#include "mozilla/Telemetry.h"
#include "nsComponentManagerUtils.h"
#include "nsProxyRelease.h" #include "nsProxyRelease.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsComponentManagerUtils.h"
#include "mozilla/Telemetry.h"
using mozilla::gfx::IntPoint;
using mozilla::gfx::IntSize; using mozilla::gfx::IntSize;
using mozilla::gfx::IntRect;
using mozilla::gfx::SurfaceFormat; using mozilla::gfx::SurfaceFormat;
namespace mozilla { namespace mozilla {

View File

@@ -10,7 +10,9 @@
#include "AnimationSurfaceProvider.h" #include "AnimationSurfaceProvider.h"
#include "Decoder.h" #include "Decoder.h"
#include "DecodedSurfaceProvider.h"
#include "IDecodingTask.h" #include "IDecodingTask.h"
#include "ImageOps.h"
#include "nsPNGDecoder.h" #include "nsPNGDecoder.h"
#include "nsGIFDecoder2.h" #include "nsGIFDecoder2.h"
#include "nsJPEGDecoder.h" #include "nsJPEGDecoder.h"

View File

@@ -11,10 +11,10 @@
#ifndef mozilla_image_IDecodingTask_h #ifndef mozilla_image_IDecodingTask_h
#define mozilla_image_IDecodingTask_h #define mozilla_image_IDecodingTask_h
#include "imgFrame.h"
#include "mozilla/NotNull.h" #include "mozilla/NotNull.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "nsIEventTarget.h"
#include "imgFrame.h"
#include "SourceBuffer.h" #include "SourceBuffer.h"
namespace mozilla { namespace mozilla {

View File

@@ -13,6 +13,7 @@
#include "mozilla/BasePrincipal.h" #include "mozilla/BasePrincipal.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "PLDHashTable.h"
class nsIDocument; class nsIDocument;
class nsIURI; class nsIURI;

View File

@@ -10,6 +10,7 @@
#include <stdint.h> #include <stdint.h>
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "nsSize.h" #include "nsSize.h"
#include "nsTArray.h"
#include "Orientation.h" #include "Orientation.h"
#include "FrameTimeout.h" #include "FrameTimeout.h"

View File

@@ -21,6 +21,7 @@
#include "mozilla/Move.h" #include "mozilla/Move.h"
#include "mozilla/Variant.h" #include "mozilla/Variant.h"
#include "mozilla/Vector.h" #include "mozilla/Vector.h"
#include "SourceBuffer.h"
namespace mozilla { namespace mozilla {
namespace image { namespace image {

View File

@@ -24,6 +24,7 @@
#include "gfxPlatform.h" #include "gfxPlatform.h"
#include "mozilla/EndianUtils.h" #include "mozilla/EndianUtils.h"
#include "mozilla/gfx/Types.h"
#include "mozilla/Telemetry.h" #include "mozilla/Telemetry.h"
extern "C" { extern "C" {
@@ -38,6 +39,8 @@ extern "C" {
static void cmyk_convert_rgb(JSAMPROW row, JDIMENSION width); static void cmyk_convert_rgb(JSAMPROW row, JDIMENSION width);
using mozilla::gfx::SurfaceFormat;
namespace mozilla { namespace mozilla {
namespace image { namespace image {

View File

@@ -4,8 +4,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "ImageLogging.h"
#include "imgRequestProxy.h" #include "imgRequestProxy.h"
#include "ImageLogging.h"
#include "imgLoader.h" #include "imgLoader.h"
#include "Image.h" #include "Image.h"
#include "ImageOps.h" #include "ImageOps.h"
@@ -14,8 +15,10 @@
#include "imgINotificationObserver.h" #include "imgINotificationObserver.h"
#include "mozilla/dom/TabGroup.h" // for TabGroup #include "mozilla/dom/TabGroup.h" // for TabGroup
#include "mozilla/dom/DocGroup.h" // for DocGroup #include "mozilla/dom/DocGroup.h" // for DocGroup
#include "mozilla/Move.h"
#include "mozilla/Telemetry.h" // for Telemetry #include "mozilla/Telemetry.h" // for Telemetry
using namespace mozilla;
using namespace mozilla::image; using namespace mozilla::image;
// The split of imgRequestProxy and imgRequestProxyStatic means that // The split of imgRequestProxy and imgRequestProxyStatic means that

View File

@@ -393,6 +393,7 @@ ImageTestCase CorruptICOWithBadBppTestCase();
ImageTestCase TransparentPNGTestCase(); ImageTestCase TransparentPNGTestCase();
ImageTestCase TransparentGIFTestCase(); ImageTestCase TransparentGIFTestCase();
ImageTestCase FirstFramePaddingGIFTestCase(); ImageTestCase FirstFramePaddingGIFTestCase();
ImageTestCase TransparentIfWithinICOBMPTestCase(TestCaseFlags aFlags);
ImageTestCase NoFrameDelayGIFTestCase(); ImageTestCase NoFrameDelayGIFTestCase();
ImageTestCase ExtraImageSubBlocksAnimatedGIFTestCase(); ImageTestCase ExtraImageSubBlocksAnimatedGIFTestCase();

View File

@@ -9,6 +9,7 @@
#include "DecoderFactory.h" #include "DecoderFactory.h"
#include "decoders/nsBMPDecoder.h" #include "decoders/nsBMPDecoder.h"
#include "IDecodingTask.h" #include "IDecodingTask.h"
#include "ImageOps.h"
#include "imgIContainer.h" #include "imgIContainer.h"
#include "imgITools.h" #include "imgITools.h"
#include "ImageFactory.h" #include "ImageFactory.h"

View File

@@ -7,7 +7,9 @@
#include <algorithm> #include <algorithm>
#include <cstdint> #include <cstdint>
#include "Common.h"
#include "mozilla/Move.h" #include "mozilla/Move.h"
#include "nsIInputStream.h"
#include "SourceBuffer.h" #include "SourceBuffer.h"
#include "SurfaceCache.h" #include "SurfaceCache.h"

View File

@@ -4,6 +4,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "Common.h"
#include "mozilla/Vector.h" #include "mozilla/Vector.h"
#include "StreamingLexer.h" #include "StreamingLexer.h"