mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1324422 - initialize mPermitSubpixelAA for all tiles in DrawTargetTiled. r=sotaro
MozReview-Commit-ID: AM0OxyhLrzJ
This commit is contained in:
parent
b427632e5a
commit
731702eb1c
@ -30,8 +30,7 @@ DrawTargetTiled::Init(const TileSet& aTiles)
|
||||
return false;
|
||||
}
|
||||
if (mTiles[0].mDrawTarget->GetFormat() != mTiles.back().mDrawTarget->GetFormat() ||
|
||||
mTiles[0].mDrawTarget->GetBackendType() != mTiles.back().mDrawTarget->GetBackendType() ||
|
||||
mTiles[0].mDrawTarget->GetPermitSubpixelAA() != mTiles.back().mDrawTarget->GetPermitSubpixelAA()) {
|
||||
mTiles[0].mDrawTarget->GetBackendType() != mTiles.back().mDrawTarget->GetBackendType()) {
|
||||
return false;
|
||||
}
|
||||
uint32_t newXMost = max(mRect.XMost(),
|
||||
@ -46,7 +45,7 @@ DrawTargetTiled::Init(const TileSet& aTiles)
|
||||
mTiles[i].mTileOrigin.y));
|
||||
}
|
||||
mFormat = mTiles[0].mDrawTarget->GetFormat();
|
||||
mPermitSubpixelAA = mTiles[0].mDrawTarget->GetPermitSubpixelAA();
|
||||
SetPermitSubpixelAA(IsOpaque(mFormat));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user