Chromium Code Reviews| Index: include/core/SkStrokeRec.h |
| diff --git a/include/core/SkStrokeRec.h b/include/core/SkStrokeRec.h |
| index 50810f7324c67904cb47309470ebb0b561633e4d..fa9d90b07eb282fb44a1caa6ff5ca05735ed011b 100644 |
| --- a/include/core/SkStrokeRec.h |
| +++ b/include/core/SkStrokeRec.h |
| @@ -35,8 +35,8 @@ public: |
| Style getStyle() const; |
| SkScalar getWidth() const { return fWidth; } |
| SkScalar getMiter() const { return fMiterLimit; } |
| - SkPaint::Cap getCap() const { return fCap; } |
| - SkPaint::Join getJoin() const { return fJoin; } |
| + SkPaint::Cap getCap() const { return (SkPaint::Cap)fCap; } |
| + SkPaint::Join getJoin() const { return (SkPaint::Join)fJoin; } |
| bool isHairlineStyle() const { |
| return kHairline_Style == this->getStyle(); |
| @@ -115,9 +115,11 @@ private: |
| SkScalar fResScale; |
| SkScalar fWidth; |
| SkScalar fMiterLimit; |
| - SkPaint::Cap fCap; |
| - SkPaint::Join fJoin; |
| - bool fStrokeAndFill; |
| + struct { |
|
mtklein
2015/11/20 14:57:25
So, anonymous structs are not technically part of
|
| + uint32_t fCap : 16; |
| + uint32_t fJoin : 15; |
| + uint32_t fStrokeAndFill : 1; |
| + }; |
| }; |
| #endif |