mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 23:12:21 +00:00
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:
parent
f4695206da
commit
bd414399ff
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user