Remove unneeded reference count churn.

An object was ref'ed only to be automatically unref'ed.

Review-Url: https://codereview.chromium.org/1979193009
This commit is contained in:
bungeman 2016-05-16 12:39:23 -07:00 committed by Commit bot
parent d2c7ef9495
commit 94b25b0a80

View File

@ -210,8 +210,6 @@ bool GrBatchTextStrike::addGlyphToAtlas(GrDrawBatch::Target* target,
SkASSERT(scaler);
SkASSERT(fCache.find(glyph->fPackedID));
SkAutoUnref ar(SkSafeRef(scaler));
int bytesPerPixel = GrMaskFormatBytesPerPixel(expectedMaskFormat);
size_t size = glyph->fBounds.area() * bytesPerPixel;