| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SKY_ENGINE_CORE_PAINTING_PATH_H_ | 5 #ifndef SKY_ENGINE_CORE_PAINTING_PATH_H_ |
| 6 #define SKY_ENGINE_CORE_PAINTING_PATH_H_ | 6 #define SKY_ENGINE_CORE_PAINTING_PATH_H_ |
| 7 | 7 |
| 8 #include "sky/engine/core/painting/Rect.h" | 8 #include "sky/engine/core/painting/Rect.h" |
| 9 #include "sky/engine/tonic/dart_wrappable.h" | 9 #include "sky/engine/tonic/dart_wrappable.h" |
| 10 #include "sky/engine/wtf/PassRefPtr.h" | 10 #include "sky/engine/wtf/PassRefPtr.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 m_path.moveTo(x, y); | 31 m_path.moveTo(x, y); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void lineTo(float x, float y) | 34 void lineTo(float x, float y) |
| 35 { | 35 { |
| 36 m_path.lineTo(x, y); | 36 m_path.lineTo(x, y); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void arcTo(const Rect& rect, float startAngle, float sweepAngle, bool forceM
oveTo) | 39 void arcTo(const Rect& rect, float startAngle, float sweepAngle, bool forceM
oveTo) |
| 40 { | 40 { |
| 41 m_path.arcTo(rect.sk_rect, startAngle, sweepAngle, forceMoveTo); | 41 m_path.arcTo(rect.skRect, startAngle, sweepAngle, forceMoveTo); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void close() | 44 void close() |
| 45 { | 45 { |
| 46 m_path.close(); | 46 m_path.close(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 const SkPath& path() const { return m_path; } | 49 const SkPath& path() const { return m_path; } |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 CanvasPath(); | 52 CanvasPath(); |
| 53 | 53 |
| 54 SkPath m_path; | 54 SkPath m_path; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // SKY_ENGINE_CORE_PAINTING_PATH_H_ | 59 #endif // SKY_ENGINE_CORE_PAINTING_PATH_H_ |
| OLD | NEW |