зеркало из https://github.com/mozilla/gecko-dev.git
Bug 903071: Drop unused variable 'gfxSize' from ImageDataSerializer::ComputeMinBufferSize. r=nical
This commit is contained in:
Родитель
09de524f1a
Коммит
0fdeed96a8
|
@ -63,7 +63,6 @@ ImageDataSerializer::ComputeMinBufferSize(gfx::IntSize aSize,
|
|||
{
|
||||
// Note that at the moment we pack the image data with the minimum possible
|
||||
// stride, we may decide to change that if we want aligned stride.
|
||||
gfxIntSize gfxSize = gfxIntSize(aSize.width, aSize.height);
|
||||
uint32_t bufsize = aSize.height * gfx::BytesPerPixel(aFormat) * aSize.width;
|
||||
return SurfaceBufferInfo::GetOffset()
|
||||
+ gfx::GetAlignedStride<16>(bufsize);
|
||||
|
|
Загрузка…
Ссылка в новой задаче