Bug 1379680. Move the displaylist ByteBuf into a Vec instead of copying. r=kats

This eliminates a copy of the displaylist on the compositor thread.
This commit is contained in:
Jeff Muizelaar
2017-11-30 15:12:14 -05:00
parent 0faec56bdb
commit 32a2e8870b
9 changed files with 44 additions and 16 deletions

View File

@@ -353,7 +353,7 @@ AsyncImagePipelineManager::ApplyAsyncImages()
builder.Finalize(builderContentSize, dl);
mApi->SetDisplayList(gfx::Color(0.f, 0.f, 0.f, 0.f), epoch, LayerSize(pipeline->mScBounds.Width(), pipeline->mScBounds.Height()),
pipelineId, builderContentSize,
dl.dl_desc, dl.dl.inner.data, dl.dl.inner.length,
dl.dl_desc, dl.dl,
resourceUpdates);
}
}