aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-12 17:44:30 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-12 17:44:30 +0000
commit5e1a7f2cc621d357da5c62a7bc4ef750d94b96f3 (patch)
tree497e415b1a8eb09a3e3bb9f55c006699b0e25805 /include/core/SkPath.h
parentc5dada85e88298399a15d7347954f445ee798e19 (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.h6
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;