mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix bustage from bug 933549 because I am an idiot who forgot to qref, on a CLOSED TREE
This commit is contained in:
parent
100d053c89
commit
ee3fdfe0f9
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user