mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00
Merge mozilla-central to autoland on a CLOSED TREE
This commit is contained in:
commit
51135ce4d4
@ -518,8 +518,6 @@ bool WebRenderBridgeParent::UpdateResources(
|
||||
}
|
||||
case OpUpdateResource::TOpAddBlobImage: {
|
||||
const auto& op = cmd.get_OpAddBlobImage();
|
||||
MOZ_DIAGNOSTIC_ASSERT(MatchesNamespace(op.key()),
|
||||
"stale blob key for add!");
|
||||
wr::Vec<uint8_t> bytes;
|
||||
if (!reader.Read(op.bytes(), bytes)) {
|
||||
gfxCriticalNote << "TOpAddBlobImage failed";
|
||||
@ -531,8 +529,6 @@ bool WebRenderBridgeParent::UpdateResources(
|
||||
}
|
||||
case OpUpdateResource::TOpUpdateBlobImage: {
|
||||
const auto& op = cmd.get_OpUpdateBlobImage();
|
||||
MOZ_DIAGNOSTIC_ASSERT(MatchesNamespace(op.key()),
|
||||
"stale blob key for update!");
|
||||
wr::Vec<uint8_t> bytes;
|
||||
if (!reader.Read(op.bytes(), bytes)) {
|
||||
gfxCriticalNote << "TOpUpdateBlobImage failed";
|
||||
@ -545,8 +541,6 @@ bool WebRenderBridgeParent::UpdateResources(
|
||||
}
|
||||
case OpUpdateResource::TOpSetBlobImageVisibleArea: {
|
||||
const auto& op = cmd.get_OpSetBlobImageVisibleArea();
|
||||
MOZ_DIAGNOSTIC_ASSERT(MatchesNamespace(op.key()),
|
||||
"stale blob key for visible area!");
|
||||
aUpdates.SetBlobImageVisibleArea(op.key(),
|
||||
wr::ToDeviceIntRect(op.area()));
|
||||
break;
|
||||
|
@ -220,14 +220,6 @@ class WebRenderBridgeParent final : public PWebRenderBridgeParent,
|
||||
wr::Epoch GetCurrentEpoch() const { return mWrEpoch; }
|
||||
wr::IdNamespace GetIdNamespace() { return mIdNamespace; }
|
||||
|
||||
bool MatchesNamespace(const wr::ImageKey& aImageKey) const {
|
||||
return aImageKey.mNamespace == mIdNamespace;
|
||||
}
|
||||
|
||||
bool MatchesNamespace(const wr::BlobImageKey& aBlobKey) const {
|
||||
return MatchesNamespace(aBlobKey._0);
|
||||
}
|
||||
|
||||
void FlushRendering(bool aWaitForPresent = true);
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user