Bug 1676357 - Remove unnecessary includes from Layers.h. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D96537

Depends on D96536
This commit is contained in:
Simon Giesecke 2020-11-23 16:08:52 +00:00
Родитель 262d17a458
Коммит 02262049f0
1 изменённых файлов: 51 добавлений и 56 удалений

Просмотреть файл

@ -7,71 +7,65 @@
#ifndef GFX_LAYERS_H #ifndef GFX_LAYERS_H
#define GFX_LAYERS_H #define GFX_LAYERS_H
#include <map> #include <cstdint> // for uint32_t, uint64_t, int32_t, uint8_t
#include <unordered_set> #include <cstring> // for memcpy
#include <stdint.h> // for uint32_t, uint64_t, uint8_t #include <iosfwd> // for stringstream
#include <stdio.h> // for FILE #include <new> // for operator new
#include <sys/types.h> // for int32_t #include <unordered_set> // for unordered_set
#include "FrameMetrics.h" // for FrameMetrics #include <utility> // for forward, move
#include "Units.h" // for LayerMargin, LayerPoint, ParentLayerIntRect #include "FrameMetrics.h" // for ScrollMetadata, FrameMetrics::ViewID, Fra...
#include "gfxContext.h" #include "ImageContainer.h" // for ImageContainer, ImageContainer::Mode, Ima...
#include "gfxTypes.h" #include "Units.h" // for LayerIntRegion, ParentLayerIntRect, Layer...
#include "gfxPoint.h" // for gfxPoint #include "gfxPoint.h" // for gfxPoint
#include "gfxRect.h" // for gfxRect #include "gfxRect.h" // for gfxRect
#include "gfx2DGlue.h" #include "mozilla/AlreadyAddRefed.h" // for already_AddRefed
#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2, etc #include "mozilla/Maybe.h" // for Maybe, Nothing (ptr only)
#include "mozilla/Array.h" #include "mozilla/Poison.h" // for CorruptionCanary
#include "mozilla/DebugOnly.h" // for DebugOnly #include "mozilla/RefPtr.h" // for RefPtr, operator!=
#include "mozilla/EventForwards.h" // for nsPaintEvent #include "mozilla/TimeStamp.h" // for TimeStamp
#include "mozilla/Maybe.h" // for Maybe #include "mozilla/UniquePtr.h" // for UniquePtr, MakeUnique
#include "mozilla/Poison.h" #include "mozilla/dom/Animation.h" // for Animation
#include "mozilla/RefPtr.h" // for already_AddRefed #include "mozilla/gfx/BasePoint.h" // for BasePoint<>::(anonymous union)::(anonymous)
#include "mozilla/TimeStamp.h" // for TimeStamp, TimeDuration #include "mozilla/gfx/BaseSize.h" // for BaseSize
#include "mozilla/UniquePtr.h" // for UniquePtr #include "mozilla/gfx/Matrix.h" // for Matrix4x4, Matrix, Matrix4x4Typed
#include "mozilla/dom/Animation.h" // for dom::Animation #include "mozilla/gfx/Point.h" // for Point, PointTyped, IntSize
#include "mozilla/gfx/BaseMargin.h" // for BaseMargin #include "mozilla/gfx/Polygon.h" // for Polygon
#include "mozilla/gfx/BasePoint.h" // for BasePoint #include "mozilla/gfx/Rect.h" // for IntRectTyped, IntRect
#include "mozilla/gfx/Point.h" // for IntSize #include "mozilla/gfx/TiledRegion.h" // for TiledIntRegion
#include "mozilla/gfx/TiledRegion.h" // for TiledIntRegion #include "mozilla/gfx/Types.h" // for CompositionOp, DeviceColor, SamplingFilter
#include "mozilla/gfx/Types.h" // for SurfaceFormat #include "mozilla/gfx/UserData.h" // for UserData, UserDataKey (ptr only)
#include "mozilla/gfx/UserData.h" // for UserData, etc #include "mozilla/layers/AnimationInfo.h" // for AnimationInfo
#include "mozilla/layers/AnimationInfo.h" // for AnimationInfo #include "mozilla/layers/CompositorTypes.h" // for TextureFactoryIdentifier
#include "mozilla/layers/BSPTree.h" // for LayerPolygon #include "mozilla/layers/LayerAttributes.h" // for SimpleLayerAttributes, ScrollbarData (ptr...
#include "mozilla/layers/CanvasRenderer.h" #include "mozilla/layers/ScrollableLayerGuid.h" // for ScrollableLayerGuid, ScrollableLayerGuid:...
#include "mozilla/layers/LayerAttributes.h" #include "nsHashKeys.h" // for nsUint64HashKey
#include "mozilla/layers/LayersTypes.h" #include "nsISupports.h" // for NS_INLINE_DECL_REFCOUNTING
#include "mozilla/webrender/WebRenderTypes.h" #include "nsIWidget.h" // for nsIWidget
#include "mozilla/mozalloc.h" // for operator delete, etc #include "nsPoint.h" // for nsIntPoint
#include "nsCOMPtr.h" // for already_AddRefed #include "nsRect.h" // for nsIntRect
#include "nsCSSPropertyID.h" // for nsCSSPropertyID #include "nsRefPtrHashtable.h" // for nsRefPtrHashtable
#include "nsDebug.h" // for NS_ASSERTION #include "nsRegion.h" // for nsIntRegion
#include "nsISupportsImpl.h" // for Layer::Release, etc #include "nsStringFlags.h" // for operator&
#include "nsRect.h" // for mozilla::gfx::IntRect #include "nsStringFwd.h" // for nsCString, nsAString, nsACString
#include "nsRefPtrHashtable.h" // for nsRefPtrHashtable #include "nsTArray.h" // for nsTArray, nsTArray_Impl, nsTArray_Impl<>:...
#include "nsRegion.h" // for nsIntRegion
#include "nsString.h" // for nsCString // XXX These includes could be avoided by moving function implementations to the
#include "nsTArray.h" // for nsTArray // cpp file
#include "nsTArrayForwardDeclare.h" // for nsTArray #include "gfx2DGlue.h" // for ThebesPoint
#include "nscore.h" // for nsACString, nsAString #include "mozilla/Assertions.h" // for AssertionConditionType, MOZ_ASSERT, MOZ_A...
#include "mozilla/Logging.h" // for PRLogModuleInfo #include "mozilla/DebugOnly.h" // for DebugOnly
#include "nsIWidget.h" // For plugin window configuration information structs #include "mozilla/layers/CanvasRenderer.h" // for CanvasRenderer
#include "ImageContainer.h" #include "mozilla/layers/LayersTypes.h" // for MOZ_LAYERS_LOG_IF_SHADOWABLE, Composition...
#include "nsDebug.h" // for NS_ASSERTION, NS_WARNING
class gfxContext; class gfxContext;
class nsDisplayListBuilder;
class nsDisplayItem;
extern uint8_t gLayerManagerLayerBuilder; extern uint8_t gLayerManagerLayerBuilder;
namespace mozilla { namespace mozilla {
class ComputedTimingFunction;
class FrameLayerBuilder; class FrameLayerBuilder;
namespace gl {
class GLContext;
} // namespace gl
namespace gfx { namespace gfx {
class DrawTarget; class DrawTarget;
} // namespace gfx } // namespace gfx
@ -108,6 +102,7 @@ class FrameUniformityData;
class PersistentBufferProvider; class PersistentBufferProvider;
class GlyphArray; class GlyphArray;
class WebRenderLayerManager; class WebRenderLayerManager;
struct LayerPolygon;
struct AnimData; struct AnimData;
namespace layerscope { namespace layerscope {