diff --git a/gfx/layers/wr/RenderRootBoundary.h b/gfx/layers/wr/RenderRootBoundary.h index f35a66ca1ad3..a7a2de85e0ce 100644 --- a/gfx/layers/wr/RenderRootBoundary.h +++ b/gfx/layers/wr/RenderRootBoundary.h @@ -7,6 +7,9 @@ #include "mozilla/webrender/WebRenderTypes.h" +#include +#include + namespace mozilla { namespace layers { @@ -74,6 +77,12 @@ class RenderRootBoundary { // constructor for IPC RenderRootBoundary() = default; + std::string ToString() const { + std::stringstream str; + str << "childType=" << (int)mChildType << "; id=" << mId; + return str.str(); + } + private: wr::RenderRoot mChildType; // The id is what distinguishes different transition points within a display diff --git a/gfx/layers/wr/WebRenderScrollData.cpp b/gfx/layers/wr/WebRenderScrollData.cpp index c49ba5fc4acd..45f49467ae34 100644 --- a/gfx/layers/wr/WebRenderScrollData.cpp +++ b/gfx/layers/wr/WebRenderScrollData.cpp @@ -131,6 +131,14 @@ void WebRenderLayerScrollData::Dump(const WebRenderScrollData& aOwner) const { if (mReferentId) { printf_stderr(" ref layers id: 0x%" PRIx64 "\n", uint64_t(*mReferentId)); } + if (mBoundaryRoot) { + printf_stderr(" boundary root for: %s\n", + mBoundaryRoot->ToString().c_str()); + } + if (mReferentRenderRoot) { + printf_stderr(" ref renderroot: %s\n", + mReferentRenderRoot->ToString().c_str()); + } printf_stderr(" scrollbar type: %d animation: %" PRIx64 "\n", (int)mScrollbarData.mScrollbarLayerType, mScrollbarAnimationId.valueOr(0));