Bug 1711061 - Part 2. Add imgIContainer::GetImageProvider skeleton. r=tnikkel
In later parts in this series, GetImageProvider will replace GetImageContainerAtSize. This will be a more specialized and lower overhead means to get a wr::ImageKey for a particular surface. Differential Revision: https://phabricator.services.mozilla.com/D126596
This commit is contained in:
@@ -179,6 +179,16 @@ DynamicImage::GetImageContainerAtSize(WindowRenderer* aRenderer,
|
||||
return ImgDrawResult::NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(ImgDrawResult)
|
||||
DynamicImage::GetImageProvider(WindowRenderer* aRenderer,
|
||||
const gfx::IntSize& aSize,
|
||||
const Maybe<SVGImageContext>& aSVGContext,
|
||||
const Maybe<ImageIntRegion>& aRegion,
|
||||
uint32_t aFlags,
|
||||
WebRenderImageProvider** aProvider) {
|
||||
return ImgDrawResult::NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(ImgDrawResult)
|
||||
DynamicImage::Draw(gfxContext* aContext, const nsIntSize& aSize,
|
||||
const ImageRegion& aRegion, uint32_t aWhichFrame,
|
||||
|
||||
Reference in New Issue
Block a user