diff options
Diffstat (limited to 'experimental/sksg/paint/SkSGColor.h')
-rw-r--r-- | experimental/sksg/paint/SkSGColor.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/experimental/sksg/paint/SkSGColor.h b/experimental/sksg/paint/SkSGColor.h deleted file mode 100644 index a19921cfd3..0000000000 --- a/experimental/sksg/paint/SkSGColor.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2017 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkSGColor_DEFINED -#define SkSGColor_DEFINED - -#include "SkSGPaintNode.h" - -#include "SkColor.h" - -namespace sksg { - -/** - * Concrete Paint node, wrapping an SkColor. - */ -class Color : public PaintNode { -public: - static sk_sp<Color> Make(SkColor c) { return sk_sp<Color>(new Color(c)); } - - SG_ATTRIBUTE(Color, SkColor, fColor) - -protected: - void onApplyToPaint(SkPaint*) const override; - -private: - explicit Color(SkColor); - - SkColor fColor; -}; - -} // namespace sksg - -#endif // SkSGColor_DEFINED |