mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 1462355 - Part 1b. Update Decoder and SurfacePipe plumbing to use updated imgFrame methods.
This commit is contained in:
parent
75cb341c44
commit
a08160ac44
15 changed files with 84 additions and 92 deletions
|
|
@ -104,10 +104,11 @@ SurfaceSink::Configure(const SurfaceConfig& aConfig)
|
|||
// XXX(seth): Once every Decoder subclass uses SurfacePipe, we probably want
|
||||
// to allocate the frame directly here and get rid of Decoder::AllocateFrame
|
||||
// altogether.
|
||||
nsresult rv = aConfig.mDecoder->AllocateFrame(aConfig.mFrameNum,
|
||||
surfaceSize,
|
||||
nsresult rv = aConfig.mDecoder->AllocateFrame(surfaceSize,
|
||||
frameRect,
|
||||
aConfig.mFormat);
|
||||
aConfig.mFormat,
|
||||
/* aPaletteDepth */ 0,
|
||||
aConfig.mAnimParams);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
|
@ -154,11 +155,11 @@ PalettedSurfaceSink::Configure(const PalettedSurfaceConfig& aConfig)
|
|||
// XXX(seth): Once every Decoder subclass uses SurfacePipe, we probably want
|
||||
// to allocate the frame directly here and get rid of Decoder::AllocateFrame
|
||||
// altogether.
|
||||
nsresult rv = aConfig.mDecoder->AllocateFrame(aConfig.mFrameNum,
|
||||
aConfig.mOutputSize,
|
||||
nsresult rv = aConfig.mDecoder->AllocateFrame(aConfig.mOutputSize,
|
||||
aConfig.mFrameRect,
|
||||
aConfig.mFormat,
|
||||
aConfig.mPaletteDepth);
|
||||
aConfig.mPaletteDepth,
|
||||
aConfig.mAnimParams);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue