Remove bilerp from GrTextBlob except for fSupportBilerpAtlas field.
Change-Id: If586b3797bb458bf8806d3d030b2ed94e07b990f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/531257 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
parent
07f53c1bb6
commit
c68df46606
@ -2082,8 +2082,7 @@ sk_sp<GrTextBlob> GrTextBlob::Make(const SkGlyphRunList& glyphRunList,
|
||||
|
||||
SkColor initialLuminance = SkPaintPriv::ComputeLuminanceColor(paint);
|
||||
sk_sp<GrTextBlob> blob{
|
||||
new (allocation) GrTextBlob(
|
||||
bytesNeededForSubRun, positionMatrix, initialLuminance)};
|
||||
new (allocation) GrTextBlob(bytesNeededForSubRun, positionMatrix, initialLuminance)};
|
||||
|
||||
const uint64_t uniqueID = glyphRunList.uniqueID();
|
||||
for (auto& glyphRun : glyphRunList) {
|
||||
@ -2159,7 +2158,6 @@ GrTextBlob::GrTextBlob(int allocSize,
|
||||
SkColor initialLuminance)
|
||||
: fAlloc{SkTAddOffset<char>(this, sizeof(GrTextBlob)), allocSize, allocSize/2}
|
||||
, fSize{allocSize}
|
||||
, fSupportBilerpAtlas{false}
|
||||
, fInitialPositionMatrix{positionMatrix}
|
||||
, fInitialLuminance{initialLuminance} { }
|
||||
|
||||
|
@ -235,7 +235,6 @@ public:
|
||||
void addKey(const Key& key);
|
||||
bool hasPerspective() const;
|
||||
const SkMatrix& initialPositionMatrix() const override { return fInitialPositionMatrix; }
|
||||
bool supportBilerpAtlas() const { return fSupportBilerpAtlas; }
|
||||
|
||||
bool canReuse(const SkPaint& paint, const SkMatrix& positionMatrix) const;
|
||||
|
||||
@ -286,7 +285,7 @@ private:
|
||||
const int fSize;
|
||||
|
||||
// Support using bilerp for directly mapped sub runs.
|
||||
const bool fSupportBilerpAtlas;
|
||||
[[maybe_unused]] const bool fSupportBilerpAtlas{false};
|
||||
|
||||
// The initial view matrix combined with the initial origin. Used to determine if a cached
|
||||
// subRun can be used in this draw situation.
|
||||
|
Loading…
Reference in New Issue
Block a user