1 | // Copyright 2013 The Flutter Authors. All rights reserved. |
---|---|
2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. |
4 | |
5 | #ifndef FLUTTER_LIB_UI_PAINTING_RRECT_H_ |
6 | #define FLUTTER_LIB_UI_PAINTING_RRECT_H_ |
7 | |
8 | #include "third_party/dart/runtime/include/dart_api.h" |
9 | #include "third_party/skia/include/core/SkRRect.h" |
10 | #include "third_party/tonic/converter/dart_converter.h" |
11 | |
12 | namespace flutter { |
13 | |
14 | class RRect { |
15 | public: |
16 | SkRRect sk_rrect; |
17 | bool is_null; |
18 | }; |
19 | |
20 | } // namespace flutter |
21 | |
22 | namespace tonic { |
23 | |
24 | template <> |
25 | struct DartConverter<flutter::RRect> { |
26 | static flutter::RRect FromDart(Dart_Handle handle); |
27 | static flutter::RRect FromArguments(Dart_NativeArguments args, |
28 | int index, |
29 | Dart_Handle& exception); |
30 | }; |
31 | |
32 | } // namespace tonic |
33 | |
34 | #endif // FLUTTER_LIB_UI_PAINTING_RRECT_H_ |
35 |