Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: src/core/SkRect.cpp

Issue 646863002: faster SkRect::sort (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkRect.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRect.cpp
diff --git a/src/core/SkRect.cpp b/src/core/SkRect.cpp
index 7340098d2fb479df095a32c83354a20f02909648..fbf03efe89b39f768fd18c2b25591744f45a0ec0 100644
--- a/src/core/SkRect.cpp
+++ b/src/core/SkRect.cpp
@@ -37,15 +37,6 @@ void SkIRect::sort() {
/////////////////////////////////////////////////////////////////////////////
-void SkRect::sort() {
- if (fLeft > fRight) {
- SkTSwap<SkScalar>(fLeft, fRight);
- }
- if (fTop > fBottom) {
- SkTSwap<SkScalar>(fTop, fBottom);
- }
-}
-
void SkRect::toQuad(SkPoint quad[4]) const {
SkASSERT(quad);
« no previous file with comments | « include/core/SkRect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698