2016-09-20 15:42:38 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2016 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkClipOp_DEFINED
|
|
|
|
#define SkClipOp_DEFINED
|
|
|
|
|
|
|
|
#include "SkTypes.h"
|
|
|
|
|
2016-12-12 15:02:12 +00:00
|
|
|
// SkClipOp enum values always match the corresponding values in SkRegion::Op
|
|
|
|
|
|
|
|
#ifdef SK_SUPPORT_LEGACY_CLIPOPS_PLAIN_ENUM
|
|
|
|
|
2016-09-20 15:42:38 +00:00
|
|
|
enum SkClipOp {
|
|
|
|
kDifference_SkClipOp = 0,
|
|
|
|
kIntersect_SkClipOp = 1,
|
|
|
|
|
|
|
|
// Goal: remove these, since they can grow the current clip
|
|
|
|
|
|
|
|
kUnion_SkClipOp = 2,
|
|
|
|
kXOR_SkClipOp = 3,
|
|
|
|
kReverseDifference_SkClipOp = 4,
|
|
|
|
kReplace_SkClipOp = 5,
|
|
|
|
};
|
|
|
|
|
2016-12-12 15:02:12 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
enum class SkClipOp {
|
|
|
|
kDifference = 0,
|
|
|
|
kIntersect = 1,
|
|
|
|
|
|
|
|
// Goal: remove these, since they can grow the current clip
|
|
|
|
|
|
|
|
kUnion = 2,
|
|
|
|
kXOR = 3,
|
|
|
|
kReverseDifference = 4,
|
|
|
|
kReplace = 5,
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2016-09-20 15:42:38 +00:00
|
|
|
#endif
|