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

Unified Diff: src/core/SkPath.cpp

Issue 832083002: Cleanup isRect variants (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove old entry points completely Created 5 years, 12 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
Index: src/core/SkPath.cpp
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 27b7283263a059bf4d018bd8f2abb6b0358d6510..9231d8bf8a3216011a43f3da47230cd0b3b9b870 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -531,7 +531,7 @@ SkPath::PathAsRect SkPath::asRect(Direction* direction) const {
SK_COMPILE_ASSERT(1 == kFill_PathAsRect, path_as_rect_mismatch);
SK_COMPILE_ASSERT(2 == kStroke_PathAsRect, path_as_rect_mismatch);
bool isClosed = false;
- return (PathAsRect) (isRect(&isClosed, direction) + isClosed);
+ return (PathAsRect) (this->isRect(NULL, &isClosed, direction) + isClosed);
reed1 2015/01/05 14:25:50 now that is a compact line of code. Can we somehow
}
bool SkPath::isRect(SkRect* rect, bool* isClosed, Direction* direction) const {
« include/core/SkPath.h ('K') | « include/core/SkPath.h ('k') | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698