From c956c9f91d473b593be542ae3a4971f5f620939c Mon Sep 17 00:00:00 2001 From: Morris Tseng Date: Thu, 3 Aug 2017 13:55:13 +0800 Subject: [PATCH] Bug 1379920 - Fix unified build error. r=nical MozReview-Commit-ID: Dx50fOh737p --- gfx/layers/mlgpu/SharedBufferMLGPU.h | 1 + gfx/layers/wr/WebRenderScrollData.cpp | 1 + gfx/layers/wr/WebRenderScrollData.h | 2 ++ gfx/layers/wr/WebRenderUserData.cpp | 9 +++++++-- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gfx/layers/mlgpu/SharedBufferMLGPU.h b/gfx/layers/mlgpu/SharedBufferMLGPU.h index fa472692d3c3..56b6488a8ee9 100644 --- a/gfx/layers/mlgpu/SharedBufferMLGPU.h +++ b/gfx/layers/mlgpu/SharedBufferMLGPU.h @@ -7,6 +7,7 @@ #define mozilla_gfx_layers_mlgpu_SharedBufferMLGPU_h #include "ShaderDefinitionsMLGPU.h" +#include "MLGDevice.h" #include "MLGDeviceTypes.h" #include "StagingBuffer.h" #include "mozilla/gfx/Logging.h" diff --git a/gfx/layers/wr/WebRenderScrollData.cpp b/gfx/layers/wr/WebRenderScrollData.cpp index afd983b231e2..138ebb696970 100644 --- a/gfx/layers/wr/WebRenderScrollData.cpp +++ b/gfx/layers/wr/WebRenderScrollData.cpp @@ -9,6 +9,7 @@ #include "LayersLogging.h" #include "mozilla/layout/RenderFrameParent.h" #include "mozilla/Unused.h" +#include "nsDisplayList.h" #include "nsTArray.h" #include "UnitTransforms.h" diff --git a/gfx/layers/wr/WebRenderScrollData.h b/gfx/layers/wr/WebRenderScrollData.h index 78341116340c..d0b1b9acd05d 100644 --- a/gfx/layers/wr/WebRenderScrollData.h +++ b/gfx/layers/wr/WebRenderScrollData.h @@ -19,6 +19,8 @@ #include "mozilla/Maybe.h" #include "nsTArrayForwardDeclare.h" +class nsDisplayItem; + namespace mozilla { struct ActiveScrolledRoot; diff --git a/gfx/layers/wr/WebRenderUserData.cpp b/gfx/layers/wr/WebRenderUserData.cpp index 865f379d751b..c57153960db0 100644 --- a/gfx/layers/wr/WebRenderUserData.cpp +++ b/gfx/layers/wr/WebRenderUserData.cpp @@ -4,6 +4,11 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "WebRenderUserData.h" + +#include "mozilla/layers/ImageClient.h" +#include "mozilla/layers/WebRenderBridgeChild.h" +#include "mozilla/layers/WebRenderLayerManager.h" +#include "mozilla/layers/WebRenderMessages.h" #include "nsDisplayListInvalidation.h" namespace mozilla { @@ -100,8 +105,8 @@ WebRenderImageData::CreateAsyncImageWebRenderCommands(mozilla::wr::DisplayListBu const StackingContextHelper& aSc, const LayerRect& aBounds, const LayerRect& aSCBounds, - const Matrix4x4& aSCTransform, - const MaybeIntSize& aScaleToSize, + const gfx::Matrix4x4& aSCTransform, + const gfx::MaybeIntSize& aScaleToSize, const wr::ImageRendering& aFilter, const wr::MixBlendMode& aMixBlendMode) {