Remove always true if statement and commented out code in GrBitmapTextContext

BUG=skia:

Review URL: https://codereview.chromium.org/873473008
This commit is contained in:
qiankun.miao 2015-01-29 18:36:52 -08:00 committed by Commit bot
parent 16a3f1758b
commit 06fb35fe07

View File

@ -425,13 +425,10 @@ void GrBitmapTextContext::appendGlyph(GrGlyph::PackedID packed,
SkFixed height = glyph->fBounds.height();
// check if we clipped out
if (true || NULL == glyph->fPlot) {
int x = vx >> 16;
int y = vy >> 16;
if (fClipRect.quickReject(x, y, x + width, y + height)) {
// SkCLZ(3); // so we can set a break-point in the debugger
return;
}
int x = vx >> 16;
int y = vy >> 16;
if (fClipRect.quickReject(x, y, x + width, y + height)) {
return;
}
// If the glyph is too large we fall back to paths