зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1622360 - Drop some other render root parameters in WebRenderBridgeParent. r=jrmuizel
Depends on D74947 Differential Revision: https://phabricator.services.mozilla.com/D74948
This commit is contained in:
Родитель
19ea62d2a1
Коммит
bc2d080f61
|
@ -1106,8 +1106,7 @@ void WebRenderBridgeParent::UpdateAPZFocusState(const FocusTarget& aFocus) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebRenderBridgeParent::UpdateAPZScrollData(const wr::Epoch& aEpoch,
|
void WebRenderBridgeParent::UpdateAPZScrollData(const wr::Epoch& aEpoch,
|
||||||
WebRenderScrollData&& aData,
|
WebRenderScrollData&& aData) {
|
||||||
wr::RenderRoot aRenderRoot) {
|
|
||||||
CompositorBridgeParent* cbp = GetRootCompositorBridgeParent();
|
CompositorBridgeParent* cbp = GetRootCompositorBridgeParent();
|
||||||
if (!cbp) {
|
if (!cbp) {
|
||||||
return;
|
return;
|
||||||
|
@ -1120,8 +1119,7 @@ void WebRenderBridgeParent::UpdateAPZScrollData(const wr::Epoch& aEpoch,
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebRenderBridgeParent::UpdateAPZScrollOffsets(
|
void WebRenderBridgeParent::UpdateAPZScrollOffsets(
|
||||||
ScrollUpdatesMap&& aUpdates, uint32_t aPaintSequenceNumber,
|
ScrollUpdatesMap&& aUpdates, uint32_t aPaintSequenceNumber) {
|
||||||
wr::RenderRoot aRenderRoot) {
|
|
||||||
CompositorBridgeParent* cbp = GetRootCompositorBridgeParent();
|
CompositorBridgeParent* cbp = GetRootCompositorBridgeParent();
|
||||||
if (!cbp) {
|
if (!cbp) {
|
||||||
return;
|
return;
|
||||||
|
@ -1152,9 +1150,8 @@ void WebRenderBridgeParent::SetAPZSampleTime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebRenderBridgeParent::SetDisplayList(
|
bool WebRenderBridgeParent::SetDisplayList(
|
||||||
wr::RenderRoot aRenderRoot, const LayoutDeviceRect& aRect,
|
const LayoutDeviceRect& aRect, const wr::LayoutSize& aContentSize,
|
||||||
const wr::LayoutSize& aContentSize, ipc::ByteBuf&& aDL,
|
ipc::ByteBuf&& aDL, const wr::BuiltDisplayListDescriptor& aDLDesc,
|
||||||
const wr::BuiltDisplayListDescriptor& aDLDesc,
|
|
||||||
const nsTArray<OpUpdateResource>& aResourceUpdates,
|
const nsTArray<OpUpdateResource>& aResourceUpdates,
|
||||||
const nsTArray<RefCountedShmem>& aSmallShmems,
|
const nsTArray<RefCountedShmem>& aSmallShmems,
|
||||||
const nsTArray<ipc::Shmem>& aLargeShmems, const TimeStamp& aTxnStartTime,
|
const nsTArray<ipc::Shmem>& aLargeShmems, const TimeStamp& aTxnStartTime,
|
||||||
|
@ -1212,13 +1209,11 @@ bool WebRenderBridgeParent::ProcessRenderRootDisplayListData(
|
||||||
// sent to WebRender, so that the UpdateHitTestingTree call is guaranteed to
|
// sent to WebRender, so that the UpdateHitTestingTree call is guaranteed to
|
||||||
// be in the updater queue at the time that the scene swap completes.
|
// be in the updater queue at the time that the scene swap completes.
|
||||||
if (aDisplayList.mScrollData) {
|
if (aDisplayList.mScrollData) {
|
||||||
UpdateAPZScrollData(aWrEpoch, std::move(aDisplayList.mScrollData.ref()),
|
UpdateAPZScrollData(aWrEpoch, std::move(aDisplayList.mScrollData.ref()));
|
||||||
aDisplayList.mRenderRoot);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_ASSERT(aDisplayList.mRenderRoot == wr::RenderRoot::Default ||
|
MOZ_ASSERT(aDisplayList.mRenderRoot == wr::RenderRoot::Default ||
|
||||||
IsRootWebRenderBridgeParent());
|
IsRootWebRenderBridgeParent());
|
||||||
auto renderRoot = aDisplayList.mRenderRoot;
|
|
||||||
|
|
||||||
txn.SetLowPriority(!IsRootWebRenderBridgeParent());
|
txn.SetLowPriority(!IsRootWebRenderBridgeParent());
|
||||||
if (aValidTransaction) {
|
if (aValidTransaction) {
|
||||||
|
@ -1232,7 +1227,7 @@ bool WebRenderBridgeParent::ProcessRenderRootDisplayListData(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aDisplayList.mDL &&
|
if (aDisplayList.mDL &&
|
||||||
!SetDisplayList(renderRoot, aDisplayList.mRect, aDisplayList.mContentSize,
|
!SetDisplayList(aDisplayList.mRect, aDisplayList.mContentSize,
|
||||||
std::move(aDisplayList.mDL.ref()), aDisplayList.mDLDesc,
|
std::move(aDisplayList.mDL.ref()), aDisplayList.mDLDesc,
|
||||||
aDisplayList.mResourceUpdates, aDisplayList.mSmallShmems,
|
aDisplayList.mResourceUpdates, aDisplayList.mSmallShmems,
|
||||||
aDisplayList.mLargeShmems, aTxnStartTime, txn, aWrEpoch,
|
aDisplayList.mLargeShmems, aTxnStartTime, txn, aWrEpoch,
|
||||||
|
@ -1392,7 +1387,7 @@ bool WebRenderBridgeParent::ProcessEmptyTransactionUpdates(
|
||||||
|
|
||||||
if (!aUpdates.mScrollUpdates.IsEmpty()) {
|
if (!aUpdates.mScrollUpdates.IsEmpty()) {
|
||||||
UpdateAPZScrollOffsets(std::move(aUpdates.mScrollUpdates),
|
UpdateAPZScrollOffsets(std::move(aUpdates.mScrollUpdates),
|
||||||
aUpdates.mPaintSequenceNumber, aUpdates.mRenderRoot);
|
aUpdates.mPaintSequenceNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update WrEpoch for UpdateResources() and ProcessWebRenderParentCommands().
|
// Update WrEpoch for UpdateResources() and ProcessWebRenderParentCommands().
|
||||||
|
|
|
@ -367,7 +367,7 @@ class WebRenderBridgeParent final
|
||||||
bool aValidTransaction,
|
bool aValidTransaction,
|
||||||
bool aObserveLayersUpdate);
|
bool aObserveLayersUpdate);
|
||||||
|
|
||||||
bool SetDisplayList(wr::RenderRoot aRenderRoot, const LayoutDeviceRect& aRect,
|
bool SetDisplayList(const LayoutDeviceRect& aRect,
|
||||||
const wr::LayoutSize& aContentSize, ipc::ByteBuf&& aDL,
|
const wr::LayoutSize& aContentSize, ipc::ByteBuf&& aDL,
|
||||||
const wr::BuiltDisplayListDescriptor& aDLDesc,
|
const wr::BuiltDisplayListDescriptor& aDLDesc,
|
||||||
const nsTArray<OpUpdateResource>& aResourceUpdates,
|
const nsTArray<OpUpdateResource>& aResourceUpdates,
|
||||||
|
@ -378,11 +378,10 @@ class WebRenderBridgeParent final
|
||||||
bool aValidTransaction, bool aObserveLayersUpdate);
|
bool aValidTransaction, bool aObserveLayersUpdate);
|
||||||
|
|
||||||
void UpdateAPZFocusState(const FocusTarget& aFocus);
|
void UpdateAPZFocusState(const FocusTarget& aFocus);
|
||||||
void UpdateAPZScrollData(const wr::Epoch& aEpoch, WebRenderScrollData&& aData,
|
void UpdateAPZScrollData(const wr::Epoch& aEpoch,
|
||||||
wr::RenderRoot aRenderRoot);
|
WebRenderScrollData&& aData);
|
||||||
void UpdateAPZScrollOffsets(ScrollUpdatesMap&& aUpdates,
|
void UpdateAPZScrollOffsets(ScrollUpdatesMap&& aUpdates,
|
||||||
uint32_t aPaintSequenceNumber,
|
uint32_t aPaintSequenceNumber);
|
||||||
wr::RenderRoot aRenderRoot);
|
|
||||||
|
|
||||||
bool UpdateResources(const nsTArray<OpUpdateResource>& aResourceUpdates,
|
bool UpdateResources(const nsTArray<OpUpdateResource>& aResourceUpdates,
|
||||||
const nsTArray<RefCountedShmem>& aSmallShmems,
|
const nsTArray<RefCountedShmem>& aSmallShmems,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче