diff options
author | 2014-02-12 17:44:30 +0000 | |
---|---|---|
committer | 2014-02-12 17:44:30 +0000 | |
commit | 5e1a7f2cc621d357da5c62a7bc4ef750d94b96f3 (patch) | |
tree | 497e415b1a8eb09a3e3bb9f55c006699b0e25805 /include/core/SkPath.h | |
parent | c5dada85e88298399a15d7347954f445ee798e19 (diff) |
Revert of r13379 (Move fLastMoveToIndex from SkPath to SkPathRef - https://codereview.chromium.org/146913002/) due to image quality regression in Chromium. See crbug.com/343123 (Regression - UI issue observed for any "Notification infobars" in Chrome browser)
R=bsalomon@google.com
TBR=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/137863006
git-svn-id: http://skia.googlecode.com/svn/trunk@13421 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r-- | include/core/SkPath.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 0f43fe8e3d..d78cd88296 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -978,6 +978,7 @@ private: SkAutoTUnref<SkPathRef> fPathRef; + int fLastMoveToIndex; uint8_t fFillType; mutable uint8_t fConvexity; mutable uint8_t fDirection; @@ -1013,10 +1014,7 @@ private: // SkPath path; path.lineTo(...); <--- need a leading moveTo(0, 0) // SkPath path; ... path.close(); path.lineTo(...) <-- need a moveTo(previous moveTo) // - void injectMoveToIfNeeded() { - SkPathRef::Editor ed(&fPathRef); - ed.injectMoveToIfNeeded(); - } + inline void injectMoveToIfNeeded(); inline bool hasOnlyMoveTos() const; |