This allows calling code to specify whether a primitive would prefer
to be promoted to a compositor surface and/or picture cache slice.
This is a performance hint that can be used for large external
primitives, such as videos and canvas elements.
Differential D60637
Bug 1610738 - Add primitive flag to specify a compositor surface is preferred Authored by gw on Jan 22 2020, 7:02 AM. Tags None Subscribers None
Details
This allows calling code to specify whether a primitive would prefer This is a performance hint that can be used for large external
Diff Detail
Event TimelineComment Actions Previously, this flag was specified as part of the ImageDescriptor when adding an (external) image. However, this is not ideal as the scene building thread doesn't have access to the resource cache With this patch, the caller would supply the performance hint as part of api.add_image() or Is it easy enough in Gecko to route this information via the add primitive APIs, instead of in the resource update? Comment Actions (If this API does work OK for Gecko, in a follow up patch we can remove the prefer_compositor_surface bool in the image descriptor, and associated Gecko code, as we switch Gecko to use the modified API). |