Fix bustage from bug 933549 because I am an idiot who forgot to qref, on a CLOSED TREE

This commit is contained in:
Nicholas Cameron 2014-01-08 14:21:56 +13:00
parent 100d053c89
commit ee3fdfe0f9
2 changed files with 3 additions and 2 deletions

View File

@ -1500,6 +1500,7 @@ PrintInfo(nsACString& aTo, LayerComposite* aLayerComposite)
void
SetAntialiasingFlags(Layer* aLayer, DrawTarget* aTarget)
{
bool permitSubpixelAA = !(aLayer->GetContentFlags() & Layer::CONTENT_DISABLE_SUBPIXEL_AA);
if (aTarget->GetFormat() != FORMAT_B8G8R8A8) {
aTarget->SetPermitSubpixelAA(permitSubpixelAA);
return;
@ -1519,12 +1520,12 @@ SetAntialiasingFlags(Layer* aLayer, DrawTarget* aTarget)
void
SetAntialiasingFlags(Layer* aLayer, gfxContext* aTarget)
{
bool permitSubpixelAA = !(aLayer->GetContentFlags() & Layer::CONTENT_DISABLE_SUBPIXEL_AA);
if (!aTarget->IsCairo()) {
SetAntialiasingFlags(aLayer, aTarget->GetDrawTarget());
return;
}
bool permitSubpixelAA = !(aLayer->GetContentFlags() & Layer::CONTENT_DISABLE_SUBPIXEL_AA);
nsRefPtr<gfxASurface> surface = aTarget->CurrentSurface();
if (surface->GetContentType() != GFX_CONTENT_COLOR_ALPHA) {
// Destination doesn't have alpha channel; no need to set any special flags

View File

@ -1170,7 +1170,7 @@ ContentClientIncremental::BeginPaintBuffer(ThebesLayer* aLayer,
} else {
nsRefPtr<gfxASurface> surf = GetUpdateSurface(BUFFER_BLACK, result.mRegionToDraw);
MOZ_ASSERT(gfxPlatform::GetPlatform()->SupportsAzureContent());
mLoanedDrawTarget = gfxPlatform::GetPlatform()->CreateDrawTargetForUpdateSurface(surf, surf->GetSize());
mLoanedDrawTarget = gfxPlatform::GetPlatform()->CreateDrawTargetForUpdateSurface(surf, surf->GetSize().ToIntSize());
}
if (!mLoanedDrawTarget) {
NS_WARNING("unable to get context for update");