Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas

Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
This commit is contained in:
Benoit Jacob
2014-01-10 14:06:16 -05:00
parent bd448574d8
commit f634d4797a
84 changed files with 427 additions and 428 deletions

View File

@@ -730,7 +730,7 @@ PixmanTransform(const gfxImageSurface* aDest,
aDest->Stride());
IntSize srcSize = aSrc->GetSize();
pixman_image_t* src = pixman_image_create_bits(aSrc->GetFormat() == FORMAT_B8G8R8A8 ? PIXMAN_a8r8g8b8 : PIXMAN_x8r8g8b8,
pixman_image_t* src = pixman_image_create_bits(aSrc->GetFormat() == SurfaceFormat::B8G8R8A8 ? PIXMAN_a8r8g8b8 : PIXMAN_x8r8g8b8,
srcSize.width,
srcSize.height,
(uint32_t*)aSrc->GetData(),
@@ -955,7 +955,7 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
const nsIntRect& bounds = visibleRegion.GetBounds();
RefPtr<DrawTarget> untransformedDT =
gfxPlatform::GetPlatform()->CreateOffscreenContentDrawTarget(IntSize(bounds.width, bounds.height),
FORMAT_B8G8R8A8);
SurfaceFormat::B8G8R8A8);
if (!untransformedDT) {
return;
}