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:
@@ -265,8 +265,7 @@ WebRenderAPI::SetDisplayList(gfx::Color aBgColor,
|
||||
wr::WrPipelineId pipeline_id,
|
||||
const LayoutSize& content_size,
|
||||
wr::BuiltDisplayListDescriptor dl_descriptor,
|
||||
uint8_t *dl_data,
|
||||
size_t dl_size,
|
||||
wr::Vec_u8& dl_data,
|
||||
ResourceUpdateQueue& aResources)
|
||||
{
|
||||
wr_api_set_display_list(mDocHandle,
|
||||
@@ -276,8 +275,7 @@ WebRenderAPI::SetDisplayList(gfx::Color aBgColor,
|
||||
pipeline_id,
|
||||
content_size,
|
||||
dl_descriptor,
|
||||
dl_data,
|
||||
dl_size,
|
||||
&dl_data.inner,
|
||||
aResources.Raw());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user