Remove unused variables
These presented as warnings while compiling on Applie silicone. Change-Id: Icfcd2b0ad163a8bb429d81354b628ca00b0c1a8d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/429137 Auto-Submit: Chris Dalton <csmartdalton@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Herb Derby <herb@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
67b1b2a105
commit
3b7ec0fa0f
@ -305,14 +305,12 @@ private:
|
||||
// Only the first block is allowed to have all its nodes in the free list.
|
||||
SkASSERT(block->fNodesInUse > 0 || block == &fFirstBlock);
|
||||
SkASSERT((unsigned)block->fNodesInUse < N);
|
||||
int activeCnt = 0;
|
||||
int freeCnt = 0;
|
||||
SkDEBUGCODE(int activeCnt = 0;)
|
||||
for (unsigned int i = 0; i < N; ++i) {
|
||||
bool free = fFreeList.isInList(block->fNodes + i);
|
||||
bool active = fList.isInList(block->fNodes + i);
|
||||
SkASSERT(free != active);
|
||||
activeCnt += active;
|
||||
freeCnt += free;
|
||||
SkDEBUGCODE(activeCnt += active;)
|
||||
}
|
||||
SkASSERT(activeCnt == block->fNodesInUse);
|
||||
freeNode = iter.next();
|
||||
@ -326,14 +324,12 @@ private:
|
||||
Block* block = activeNode->fBlock;
|
||||
SkASSERT(block->fNodesInUse > 0 && (unsigned)block->fNodesInUse <= N);
|
||||
|
||||
int activeCnt = 0;
|
||||
int freeCnt = 0;
|
||||
SkDEBUGCODE(int activeCnt = 0;)
|
||||
for (unsigned int i = 0; i < N; ++i) {
|
||||
bool free = fFreeList.isInList(block->fNodes + i);
|
||||
bool active = fList.isInList(block->fNodes + i);
|
||||
SkASSERT(free != active);
|
||||
activeCnt += active;
|
||||
freeCnt += free;
|
||||
SkDEBUGCODE(activeCnt += active;)
|
||||
}
|
||||
SkASSERT(activeCnt == block->fNodesInUse);
|
||||
activeNode = iter.next();
|
||||
|
@ -895,16 +895,10 @@ int get_glyph_run_intercepts(const SkGlyphRun& glyphRun,
|
||||
SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(interceptFont, &interceptPaint);
|
||||
SkBulkGlyphMetricsAndPaths metricsAndPaths{strikeSpec};
|
||||
|
||||
SkScalar xOffset = 0;
|
||||
SkScalar xPos = xOffset;
|
||||
SkScalar prevAdvance = 0;
|
||||
|
||||
const SkPoint* posCursor = glyphRun.positions().begin();
|
||||
for (const SkGlyph* glyph : metricsAndPaths.glyphs(glyphRun.glyphsIDs())) {
|
||||
SkPoint pos = *posCursor++;
|
||||
|
||||
xPos += prevAdvance * scale;
|
||||
prevAdvance = glyph->advanceX();
|
||||
if (glyph->path() != nullptr) {
|
||||
// The typeface is scaled, so un-scale the bounds to be in the space of the typeface.
|
||||
// Also ensure the bounds are properly offset by the vertical positioning of the glyph.
|
||||
|
@ -2045,9 +2045,8 @@ void SkTSect::BinarySearch(SkTSect* sect1,
|
||||
break;
|
||||
}
|
||||
SkTSpan* result2 = sect2->fHead;
|
||||
bool found = false;
|
||||
while (result2) {
|
||||
found |= closest.find(result1, result2 SkDEBUGPARAMS(intersections));
|
||||
closest.find(result1, result2 SkDEBUGPARAMS(intersections));
|
||||
result2 = result2->fNext;
|
||||
}
|
||||
} while ((result1 = result1->fNext));
|
||||
|
@ -228,13 +228,8 @@ private:
|
||||
const RunDef out[], unsigned outCount) {
|
||||
SkFont font;
|
||||
|
||||
unsigned glyphCount = 0;
|
||||
unsigned posCount = 0;
|
||||
|
||||
for (unsigned i = 0; i < inCount; ++i) {
|
||||
AddRun(font, in[i].count, in[i].pos, SkPoint::Make(in[i].x, in[i].y), builder);
|
||||
glyphCount += in[i].count;
|
||||
posCount += in[i].count * in[i].pos;
|
||||
}
|
||||
|
||||
sk_sp<SkTextBlob> blob(builder.make());
|
||||
|
Loading…
Reference in New Issue
Block a user