Remove SK_SUPPORT_LEGACY_SAMPLER_BIAS
The guard has been removed from Chromium, this is now dead code. TBR=reed@google.com,caryclark@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1658563002 Review URL: https://codereview.chromium.org/1658563002
This commit is contained in:
parent
eb54307172
commit
000b83bcdd
@ -583,12 +583,7 @@ static void DoNothing_shaderproc(const void*, int x, int y,
|
|||||||
|
|
||||||
bool SkBitmapProcState::setupForTranslate() {
|
bool SkBitmapProcState::setupForTranslate() {
|
||||||
SkPoint pt;
|
SkPoint pt;
|
||||||
|
|
||||||
#ifdef SK_SUPPORT_LEGACY_SAMPLER_BIAS
|
|
||||||
fInvProc(fInvMatrix, SK_ScalarHalf, SK_ScalarHalf, &pt);
|
|
||||||
#else
|
|
||||||
const SkBitmapProcStateAutoMapper mapper(*this, 0, 0, &pt);
|
const SkBitmapProcStateAutoMapper mapper(*this, 0, 0, &pt);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* if the translate is larger than our ints, we can get random results, or
|
* if the translate is larger than our ints, we can get random results, or
|
||||||
@ -600,16 +595,11 @@ bool SkBitmapProcState::setupForTranslate() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SK_SUPPORT_LEGACY_SAMPLER_BIAS
|
|
||||||
fFilterOneX = SkScalarFloorToInt(pt.fX);
|
|
||||||
fFilterOneY = SkScalarFloorToInt(pt.fY);
|
|
||||||
#else
|
|
||||||
// Since we know we're not filtered, we re-purpose these fields allow
|
// Since we know we're not filtered, we re-purpose these fields allow
|
||||||
// us to go from device -> src coordinates w/ just an integer add,
|
// us to go from device -> src coordinates w/ just an integer add,
|
||||||
// rather than running through the inverse-matrix
|
// rather than running through the inverse-matrix
|
||||||
fFilterOneX = SkFractionalIntToInt(mapper.x());
|
fFilterOneX = SkFractionalIntToInt(mapper.x());
|
||||||
fFilterOneY = SkFractionalIntToInt(mapper.y());
|
fFilterOneY = SkFractionalIntToInt(mapper.y());
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user