| 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/skclipop.pb.h" | |
| 10 #include "cc/proto/skxfermode.pb.h" | |
| 11 #include "third_party/skia/include/core/SkBlendMode.h" | |
| 12 #include "third_party/skia/include/core/SkClipOp.h" | |
| 13 | |
| 14 class SkRRect; | |
| 15 | |
| 16 namespace cc { | |
| 17 | |
| 18 namespace proto { | |
| 19 class SkRRect; | |
| 20 } | |
| 21 | |
| 22 // TODO(dtrainor): Move these to a class and make them static | |
| 23 // (crbug.com/548432). | |
| 24 CC_EXPORT SkBlendMode SkXfermodeModeFromProto(proto::SkXfermode::Mode mode); | |
| 25 CC_EXPORT proto::SkXfermode::Mode SkXfermodeModeToProto(SkBlendMode mode); | |
| 26 | |
| 27 CC_EXPORT void SkRRectToProto(const SkRRect& rect, proto::SkRRect* proto); | |
| 28 CC_EXPORT SkRRect ProtoToSkRRect(const proto::SkRRect& proto); | |
| 29 | |
| 30 } // namespace cc | |
| 31 | |
| 32 #endif // CC_PROTO_SKIA_CONVERSIONS_H_ | |
| OLD | NEW |