OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_PROTO_SKIA_CONVERSIONS_H_ | |
6 #define CC_PROTO_SKIA_CONVERSIONS_H_ | |
7 | |
8 #include "cc/base/cc_export.h" | |
9 #include "cc/proto/skregion.pb.h" | |
10 #include "cc/proto/skxfermode.pb.h" | |
11 #include "third_party/skia/include/core/SkRegion.h" | |
12 #include "third_party/skia/include/core/SkXfermode.h" | |
13 | |
14 class SkRegion; | |
15 class SkRRect; | |
16 class SkXferMode; | |
17 | |
18 namespace cc { | |
19 | |
20 namespace proto { | |
21 class SkRRect; | |
22 } | |
23 | |
24 CC_EXPORT SkRegion::Op SkRegionOpFromProto(proto::SkRegion::Op op); | |
25 CC_EXPORT proto::SkRegion::Op SkRegionOpToProto(SkRegion::Op op); | |
26 | |
27 CC_EXPORT SkXfermode::Mode SkXfermodeModeFromProto( | |
28 proto::SkXfermode::Mode mode); | |
29 CC_EXPORT proto::SkXfermode::Mode SkXfermodeModeToProto(SkXfermode::Mode mode); | |
30 | |
31 CC_EXPORT void SkRRectToProto(const SkRRect& rect, proto::SkRRect* proto); | |
vmpstr
2015/10/21 21:58:53
Why the inconsistency with the rest? The rest retu
David Trainor- moved to gerrit
2015/10/23 15:40:51
Ah because the general use case for building proto
| |
32 CC_EXPORT SkRRect ProtoToSkRRect(const proto::SkRRect& proto); | |
33 | |
34 } // namespace cc | |
35 | |
36 #endif // CC_PROTO_SKIA_CONVERSIONS_H_ | |
OLD | NEW |