Index: sky/engine/core/painting/Paint.h |
diff --git a/sky/engine/core/painting/Paint.h b/sky/engine/core/painting/Paint.h |
index 6d3451ae3fb2815e10ee4de5fb83ba63e59dfdd1..7888905d4250dd01d6d26e05822249056eca236d 100644 |
--- a/sky/engine/core/painting/Paint.h |
+++ b/sky/engine/core/painting/Paint.h |
@@ -11,6 +11,7 @@ |
#include "sky/engine/tonic/dart_wrappable.h" |
#include "sky/engine/wtf/PassRefPtr.h" |
#include "sky/engine/wtf/RefCounted.h" |
+#include "sky/engine/wtf/text/WTFString.h" |
#include "third_party/skia/include/core/SkPaint.h" |
namespace blink { |
@@ -21,39 +22,40 @@ class MaskFilter; |
class Shader; |
class Paint : public RefCounted<Paint>, public DartWrappable { |
- DEFINE_WRAPPERTYPEINFO(); |
-public: |
- ~Paint() override; |
- static PassRefPtr<Paint> create() |
- { |
- return adoptRef(new Paint); |
- } |
+ DEFINE_WRAPPERTYPEINFO(); |
+ public: |
+ ~Paint() override; |
+ static PassRefPtr<Paint> create() { return adoptRef(new Paint); } |
- bool isAntiAlias() const { return m_paint.isAntiAlias(); } |
- void setIsAntiAlias(bool value) { m_paint.setAntiAlias(value); } |
+ bool isAntiAlias() const { return paint_.isAntiAlias(); } |
+ void setIsAntiAlias(bool value) { paint_.setAntiAlias(value); } |
- SkColor color() const { return m_paint.getColor(); } |
- void setColor(SkColor color) { m_paint.setColor(color); } |
+ SkColor color() const { return paint_.getColor(); } |
+ void setColor(SkColor color) { paint_.setColor(color); } |
- SkScalar strokeWidth() const { return m_paint.getStrokeWidth(); } |
- void setStrokeWidth(SkScalar strokeWidth) { m_paint.setStrokeWidth(strokeWidth); } |
+ SkScalar strokeWidth() const { return paint_.getStrokeWidth(); } |
+ void setStrokeWidth(SkScalar strokeWidth) { |
+ paint_.setStrokeWidth(strokeWidth); |
+ } |
- void setDrawLooper(DrawLooper* looper); |
- void setColorFilter(ColorFilter* filter); |
- void setMaskFilter(MaskFilter* filter); |
- void setShader(Shader* shader); |
- void setStyle(SkPaint::Style style); |
- void setTransferMode(SkXfermode::Mode transfer_mode); |
+ void setDrawLooper(DrawLooper* looper); |
+ void setColorFilter(ColorFilter* filter); |
+ void setMaskFilter(MaskFilter* filter); |
+ void setShader(Shader* shader); |
+ void setStyle(SkPaint::Style style); |
+ void setTransferMode(SkXfermode::Mode transfer_mode); |
- const SkPaint& paint() const { return m_paint; } |
- void setPaint(const SkPaint& paint) { m_paint = paint; } |
+ const SkPaint& paint() const { return paint_; } |
+ void setPaint(const SkPaint& paint) { paint_ = paint; } |
-private: |
- Paint(); |
+ String toString() const; |
- SkPaint m_paint; |
+ private: |
+ Paint(); |
+ |
+ SkPaint paint_; |
}; |
-} // namespace blink |
+} // namespace blink |
#endif // SKY_ENGINE_CORE_PAINTING_PAINT_H_ |