diff options
author | 2018-01-12 14:27:39 -0500 | |
---|---|---|
committer | 2018-01-12 19:48:03 +0000 | |
commit | 1586d85198d17496efa93a6af812e3913882347f (patch) | |
tree | 524c24c5019888a5fd9d5e1ce6d3d216e37e5954 /experimental/sksg/SkSGPaintNode.h | |
parent | 966db9e4ee1e5485fce21a5953b426ad8bf95a9d (diff) |
[skotty] Refactor paint opacity
Promote to a PaintNode attribute, drop color composite.
TBR=
Change-Id: Ia79d5f7e193a472d53ac4ff8beb7234d4dc26cef
Reviewed-on: https://skia-review.googlesource.com/94280
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/sksg/SkSGPaintNode.h')
-rw-r--r-- | experimental/sksg/SkSGPaintNode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/experimental/sksg/SkSGPaintNode.h b/experimental/sksg/SkSGPaintNode.h index a2fbada065..1085e27c0f 100644 --- a/experimental/sksg/SkSGPaintNode.h +++ b/experimental/sksg/SkSGPaintNode.h @@ -25,6 +25,7 @@ public: const SkPaint& makePaint(); SG_ATTRIBUTE(AntiAlias , bool , fAntiAlias ) + SG_ATTRIBUTE(Opacity , SkScalar , fOpacity ) SG_ATTRIBUTE(StrokeWidth, SkScalar , fStrokeWidth) SG_ATTRIBUTE(StrokeMiter, SkScalar , fStrokeMiter) SG_ATTRIBUTE(Style , SkPaint::Style, fStyle ) @@ -41,7 +42,8 @@ protected: private: SkPaint fPaint; - SkScalar fStrokeWidth = 1, + SkScalar fOpacity = 1, + fStrokeWidth = 1, fStrokeMiter = 4; bool fAntiAlias = false; SkPaint::Style fStyle = SkPaint::kFill_Style; |