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

Unified Diff: src/core/SkStrokeRec.cpp

Issue 1465773003: Pack and align SkStrokeRec to 4-byte boundary. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: One more comment Created 5 years, 1 month 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/SkStrokeRec.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStrokeRec.cpp
diff --git a/src/core/SkStrokeRec.cpp b/src/core/SkStrokeRec.cpp
index 764794eb4a17e6c7cb885d5f218ba11adfacfa93..6c975b445f0df51694b5681bfc4c93a7379560f7 100644
--- a/src/core/SkStrokeRec.cpp
+++ b/src/core/SkStrokeRec.cpp
@@ -108,8 +108,8 @@ bool SkStrokeRec::applyToPath(SkPath* dst, const SkPath& src) const {
}
SkStroke stroker;
- stroker.setCap(fCap);
- stroker.setJoin(fJoin);
+ stroker.setCap((SkPaint::Cap)fCap);
+ stroker.setJoin((SkPaint::Join)fJoin);
stroker.setMiterLimit(fMiterLimit);
stroker.setWidth(fWidth);
stroker.setDoFill(fStrokeAndFill);
@@ -131,6 +131,6 @@ void SkStrokeRec::applyToPaint(SkPaint* paint) const {
paint->setStyle(fStrokeAndFill ? SkPaint::kStrokeAndFill_Style : SkPaint::kStroke_Style);
paint->setStrokeWidth(fWidth);
paint->setStrokeMiter(fMiterLimit);
- paint->setStrokeCap(fCap);
- paint->setStrokeJoin(fJoin);
+ paint->setStrokeCap((SkPaint::Cap)fCap);
+ paint->setStrokeJoin((SkPaint::Join)fJoin);
}
« no previous file with comments | « include/core/SkStrokeRec.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698