Unreviewed. Adding a define to enable the old bahevior for SkPath::isEmpty.

Should be undone at some point, when WebKit no longer needs it.

git-svn-id: http://skia.googlecode.com/svn/trunk@2918 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
schenney@chromium.org 2011-12-21 19:13:51 +00:00
parent cf4b8181c9
commit e42b1d54bf

View File

@ -199,8 +199,12 @@ void SkPath::rewind() {
bool SkPath::isEmpty() const {
SkDEBUGCODE(this->validate();)
#if SK_OLD_EMPTY_PATH_BEHAVIOR
int count = fVerbs.count();
return count == 0 || (count == 1 && fVerbs[0] == kMove_Verb);
#else
return 0 == fVerbs.count();
#endif
}
/*