зеркало из https://github.com/mozilla/gecko-dev.git
Bug 641748 - Change imgFrame::mPaletteDepth from signed to unsigned. r=jrmuizel
This commit is contained in:
Родитель
24b7ccd60a
Коммит
9a358e76cc
|
@ -168,7 +168,7 @@ imgFrame::~imgFrame()
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult imgFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight,
|
nsresult imgFrame::Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight,
|
||||||
gfxASurface::gfxImageFormat aFormat, PRInt8 aPaletteDepth /* = 0 */)
|
gfxASurface::gfxImageFormat aFormat, PRUint8 aPaletteDepth /* = 0 */)
|
||||||
{
|
{
|
||||||
// assert for properties that should be verified by decoders, warn for properties related to bad content
|
// assert for properties that should be verified by decoders, warn for properties related to bad content
|
||||||
if (!AllowedImageSize(aWidth, aHeight))
|
if (!AllowedImageSize(aWidth, aHeight))
|
||||||
|
|
|
@ -62,7 +62,7 @@ public:
|
||||||
imgFrame();
|
imgFrame();
|
||||||
~imgFrame();
|
~imgFrame();
|
||||||
|
|
||||||
nsresult Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfxASurface::gfxImageFormat aFormat, PRInt8 aPaletteDepth = 0);
|
nsresult Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfxASurface::gfxImageFormat aFormat, PRUint8 aPaletteDepth = 0);
|
||||||
nsresult Optimize();
|
nsresult Optimize();
|
||||||
|
|
||||||
void Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter,
|
void Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter,
|
||||||
|
@ -188,7 +188,7 @@ private: // data
|
||||||
PRInt32 mDisposalMethod;
|
PRInt32 mDisposalMethod;
|
||||||
|
|
||||||
gfxASurface::gfxImageFormat mFormat;
|
gfxASurface::gfxImageFormat mFormat;
|
||||||
PRInt8 mPaletteDepth;
|
PRUint8 mPaletteDepth;
|
||||||
PRInt8 mBlendMethod;
|
PRInt8 mBlendMethod;
|
||||||
PRPackedBool mSinglePixel;
|
PRPackedBool mSinglePixel;
|
||||||
PRPackedBool mNeverUseDeviceSurface;
|
PRPackedBool mNeverUseDeviceSurface;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче