| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MOJO_SKIA_TYPE_CONVERTERS_H_ | 5 #ifndef MOJO_SKIA_TYPE_CONVERTERS_H_ |
| 6 #define MOJO_SKIA_TYPE_CONVERTERS_H_ | 6 #define MOJO_SKIA_TYPE_CONVERTERS_H_ |
| 7 | 7 |
| 8 #include "mojo/services/geometry/interfaces/geometry.mojom.h" | 8 #include "mojo/services/geometry/interfaces/geometry.mojom.h" |
| 9 #include "third_party/skia/include/core/SkMatrix.h" | 9 #include "third_party/skia/include/core/SkMatrix.h" |
| 10 #include "third_party/skia/include/core/SkMatrix44.h" |
| 10 #include "third_party/skia/include/core/SkPoint.h" | 11 #include "third_party/skia/include/core/SkPoint.h" |
| 11 #include "third_party/skia/include/core/SkRRect.h" | 12 #include "third_party/skia/include/core/SkRRect.h" |
| 12 #include "third_party/skia/include/core/SkRect.h" | 13 #include "third_party/skia/include/core/SkRect.h" |
| 13 #include "third_party/skia/include/utils/SkMatrix44.h" | |
| 14 | 14 |
| 15 namespace mojo { | 15 namespace mojo { |
| 16 | 16 |
| 17 template <> | 17 template <> |
| 18 struct TypeConverter<SkIPoint, mojo::Point> { | 18 struct TypeConverter<SkIPoint, mojo::Point> { |
| 19 static SkIPoint Convert(const mojo::Point& input); | 19 static SkIPoint Convert(const mojo::Point& input); |
| 20 }; | 20 }; |
| 21 template <> | 21 template <> |
| 22 struct TypeConverter<mojo::Point, SkIPoint> { | 22 struct TypeConverter<mojo::Point, SkIPoint> { |
| 23 static mojo::Point Convert(const SkIPoint& input); | 23 static mojo::Point Convert(const SkIPoint& input); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 static SkMatrix44 Convert(const mojo::TransformPtr& input); | 76 static SkMatrix44 Convert(const mojo::TransformPtr& input); |
| 77 }; | 77 }; |
| 78 template <> | 78 template <> |
| 79 struct TypeConverter<mojo::TransformPtr, SkMatrix44> { | 79 struct TypeConverter<mojo::TransformPtr, SkMatrix44> { |
| 80 static mojo::TransformPtr Convert(const SkMatrix44& input); | 80 static mojo::TransformPtr Convert(const SkMatrix44& input); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace mojo | 83 } // namespace mojo |
| 84 | 84 |
| 85 #endif // MOJO_SKIA_TYPE_CONVERTERS_H_ | 85 #endif // MOJO_SKIA_TYPE_CONVERTERS_H_ |
| OLD | NEW |