aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar qiankun.miao <qiankun.miao@intel.com>2015-01-29 18:36:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-29 18:36:52 -0800
commit06fb35fe073f4bf213eb6a48498a1319bcff6cf2 (patch)
treecb4594a92bfd2c834769741dd455ff58e3fa242f
parent16a3f1758b3e4d5a38d60ec7e78f8b8609d8ea87 (diff)
Remove always true if statement and commented out code in GrBitmapTextContext
-rwxr-xr-xsrc/gpu/GrBitmapTextContext.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp
index f39e7a1bb0..4af5c0ad04 100755
--- a/src/gpu/GrBitmapTextContext.cpp
+++ b/src/gpu/GrBitmapTextContext.cpp
@@ -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