Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Fix bustage from bug 933549 because I am an idiot who forgot to qref,…
Browse files Browse the repository at this point in the history
… on a CLOSED TREE
  • Loading branch information
nrc committed Jan 8, 2014
1 parent f716ad9 commit 0dfd68f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gfx/layers/Layers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/client/ContentClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0dfd68f

Please sign in to comment.