Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3410)

Unified Diff: cc/proto/skia_conversions.cc

Issue 2575583002: Remove ClipPathDisplayItem::clip_op_ (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/proto/skia_conversions.h ('k') | cc/proto/skia_conversions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/skia_conversions.cc
diff --git a/cc/proto/skia_conversions.cc b/cc/proto/skia_conversions.cc
index 72397de08bde6019f38974e3f89c3305ce8321d7..74a7af2971ae3ea2a195a721917e2bd66d3459f9 100644
--- a/cc/proto/skia_conversions.cc
+++ b/cc/proto/skia_conversions.cc
@@ -26,30 +26,6 @@ SkPoint ProtoToSkPoint(const proto::PointF& proto) {
} // namespace
-SkClipOp SkClipOpFromProto(proto::SkClipOp::Op op) {
- switch (op) {
- case proto::SkClipOp::DIFFERENCE_:
- return SkClipOp::kDifference;
- case proto::SkClipOp::INTERSECT:
- return SkClipOp::kIntersect;
- default:
- break;
- }
- return SkClipOp::kDifference;
-}
-
-proto::SkClipOp::Op SkClipOpToProto(SkClipOp op) {
- switch (op) {
- case SkClipOp::kDifference:
- return proto::SkClipOp::DIFFERENCE_;
- case SkClipOp::kIntersect:
- return proto::SkClipOp::INTERSECT;
- default:
- break;
- }
- return proto::SkClipOp::DIFFERENCE_;
-}
-
SkBlendMode SkXfermodeModeFromProto(proto::SkXfermode::Mode mode) {
switch (mode) {
case proto::SkXfermode::CLEAR_:
« no previous file with comments | « cc/proto/skia_conversions.h ('k') | cc/proto/skia_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698