Backed out changeset 39a3044823b0 because of bad interaction with maple.
This commit is contained in:
@@ -915,11 +915,9 @@ BasicImageLayer::GetAndPaintCurrentImage(gfxContext* aContext,
|
||||
|
||||
mContainer->SetImageFactory(mManager->IsCompositingCheap() ? nsnull : BasicManager()->GetImageFactory());
|
||||
|
||||
nsRefPtr<gfxASurface> surface;
|
||||
AutoLockImage autoLock(mContainer, getter_AddRefs(surface));
|
||||
Image *image = autoLock.GetImage();
|
||||
mSize = autoLock.GetSize();
|
||||
nsRefPtr<Image> image = mContainer->GetCurrentImage();
|
||||
|
||||
nsRefPtr<gfxASurface> surface = mContainer->GetCurrentAsSurface(&mSize);
|
||||
if (!surface || surface->CairoStatus()) {
|
||||
return nsnull;
|
||||
}
|
||||
@@ -2542,16 +2540,13 @@ BasicShadowableImageLayer::Paint(gfxContext* aContext)
|
||||
return;
|
||||
}
|
||||
|
||||
AutoLockImage autoLock(mContainer);
|
||||
|
||||
Image *image = autoLock.GetImage();
|
||||
|
||||
nsRefPtr<Image> image = mContainer->GetCurrentImage();
|
||||
if (!image) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (image->GetFormat() == Image::PLANAR_YCBCR && BasicManager()->IsCompositingCheap()) {
|
||||
PlanarYCbCrImage *YCbCrImage = static_cast<PlanarYCbCrImage*>(image);
|
||||
PlanarYCbCrImage *YCbCrImage = static_cast<PlanarYCbCrImage*>(image.get());
|
||||
const PlanarYCbCrImage::Data *data = YCbCrImage->GetData();
|
||||
NS_ASSERTION(data, "Must be able to retrieve yuv data from image!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user