зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1405947 - Remove argument of BeginTransaction() r=kats
This commit is contained in:
Родитель
8f17bf2309
Коммит
aa03799491
|
@ -72,7 +72,7 @@ WebRenderBridgeChild::AddWebRenderParentCommands(const nsTArray<WebRenderParentC
|
|||
}
|
||||
|
||||
bool
|
||||
WebRenderBridgeChild::BeginTransaction(const gfx::IntSize& aSize)
|
||||
WebRenderBridgeChild::BeginTransaction()
|
||||
{
|
||||
MOZ_ASSERT(!mDestroyed);
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ public:
|
|||
void AddWebRenderParentCommands(const nsTArray<WebRenderParentCommand>& aCommands);
|
||||
|
||||
void UpdateResources(wr::IpcResourceUpdateQueue& aResources);
|
||||
bool BeginTransaction(const gfx::IntSize& aSize);
|
||||
bool BeginTransaction();
|
||||
void EndTransaction(const wr::LayoutSize& aContentSize,
|
||||
wr::BuiltDisplayList& dl,
|
||||
wr::IpcResourceUpdateQueue& aResources,
|
||||
|
|
|
@ -238,12 +238,12 @@ WebRenderLayerManager::EndTransactionWithoutLayer(nsDisplayList* aDisplayList,
|
|||
// Since we don't do repeat transactions right now, just set the time
|
||||
mAnimationReadyTime = TimeStamp::Now();
|
||||
|
||||
LayoutDeviceIntSize size = mWidget->GetClientSize();
|
||||
if (!WrBridge()->BeginTransaction(size.ToUnknownSize())) {
|
||||
if (!WrBridge()->BeginTransaction()) {
|
||||
return;
|
||||
}
|
||||
DiscardCompositorAnimations();
|
||||
|
||||
LayoutDeviceIntSize size = mWidget->GetClientSize();
|
||||
wr::LayoutSize contentSize { (float)size.width, (float)size.height };
|
||||
wr::DisplayListBuilder builder(WrBridge()->GetPipeline(), contentSize, mLastDisplayListSize);
|
||||
wr::IpcResourceUpdateQueue resourceUpdates(WrBridge()->GetShmemAllocator());
|
||||
|
|
Загрузка…
Ссылка в новой задаче