Bug 1622360 - Remove leftover WebRenderScrollDataCollection decl. r=jrmuizel

The implementation and uses of this were removed previously.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2020-04-14 00:05:43 +00:00
parent f4695206da
commit bd414399ff

View File

@ -31,48 +31,6 @@ class WebRenderFallbackData;
class WebRenderParentCommand;
class WebRenderUserData;
class WebRenderScrollDataCollection {
public:
WebRenderScrollDataCollection() = default;
std::vector<WebRenderLayerScrollData>& operator[](
wr::RenderRoot aRenderRoot) {
return mInternalScrollDatas[aRenderRoot];
}
bool IsEmpty() const {
for (auto renderRoot : wr::kRenderRoots) {
if (!mInternalScrollDatas[renderRoot].empty()) {
return false;
}
}
return true;
}
void AppendRoot(Maybe<ScrollMetadata>& aRootMetadata,
wr::RenderRootArray<WebRenderScrollData>& aScrollDatas);
void AppendScrollData(const wr::DisplayListBuilder& aBuilder,
WebRenderLayerManager* aManager, nsDisplayItem* aItem,
size_t aLayerCountBeforeRecursing,
const ActiveScrolledRoot* aStopAtAsr,
const Maybe<gfx::Matrix4x4>& aAncestorTransform);
size_t GetLayerCount(wr::RenderRoot aRenderRoot) const;
void Clear() {
for (auto renderRoot : wr::kRenderRoots) {
mInternalScrollDatas[renderRoot].clear();
mSeenRenderRoot[renderRoot] = false;
}
}
private:
wr::RenderRootArray<std::vector<WebRenderLayerScrollData>>
mInternalScrollDatas;
wr::RenderRootArray<bool> mSeenRenderRoot;
};
class WebRenderCommandBuilder final {
typedef nsTHashtable<nsRefPtrHashKey<WebRenderUserData>>
WebRenderUserDataRefTable;