diff options
author | 2012-08-16 20:53:31 +0000 | |
---|---|---|
committer | 2012-08-16 20:53:31 +0000 | |
commit | 3b3e895df6f8ee0f33010367c215944cd16a8334 (patch) | |
tree | 49a2ae19700aa2d441bd688802369d33153b2070 /src/core/SkPicturePlayback.cpp | |
parent | b6204b1ec4e4940db94bc40d4283ee77729170d6 (diff) |
remove EdgeType enum. Unimportant distinction, and removing speeds up quickReject
Review URL: https://codereview.appspot.com/6448161
git-svn-id: http://skia.googlecode.com/svn/trunk@5140 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPicturePlayback.cpp')
-rw-r--r-- | src/core/SkPicturePlayback.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp index 8ed5fe0e78..01e52c4888 100644 --- a/src/core/SkPicturePlayback.cpp +++ b/src/core/SkPicturePlayback.cpp @@ -627,7 +627,7 @@ void SkPicturePlayback::draw(SkCanvas& canvas) { const SkPoint* pos = (const SkPoint*)reader.skip(points * sizeof(SkPoint)); const SkScalar top = reader.readScalar(); const SkScalar bottom = reader.readScalar(); - if (!canvas.quickRejectY(top, bottom, SkCanvas::kAA_EdgeType)) { + if (!canvas.quickRejectY(top, bottom)) { canvas.drawPosText(text.text(), text.length(), pos, paint); } } break; @@ -648,7 +648,7 @@ void SkPicturePlayback::draw(SkCanvas& canvas) { const SkScalar top = *xpos++; const SkScalar bottom = *xpos++; const SkScalar constY = *xpos++; - if (!canvas.quickRejectY(top, bottom, SkCanvas::kAA_EdgeType)) { + if (!canvas.quickRejectY(top, bottom)) { canvas.drawPosTextH(text.text(), text.length(), xpos, constY, paint); } @@ -679,8 +679,7 @@ void SkPicturePlayback::draw(SkCanvas& canvas) { // ptr[1] == y // ptr[2] == top // ptr[3] == bottom - if (!canvas.quickRejectY(ptr[2], ptr[3], - SkCanvas::kAA_EdgeType)) { + if (!canvas.quickRejectY(ptr[2], ptr[3])) { canvas.drawText(text.text(), text.length(), ptr[0], ptr[1], paint); } |