2017-11-10 20:34:03 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GrSharedEnums_DEFINED
|
|
|
|
#define GrSharedEnums_DEFINED
|
|
|
|
|
|
|
|
/*************************************************************************************************/
|
|
|
|
/* This file is used from both C++ and SkSL, so we need to stick to syntax compatible with both. */
|
|
|
|
/*************************************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* We have coverage effects that clip rendering to the edge of some geometric primitive.
|
|
|
|
* This enum specifies how that clipping is performed. Not all factories that take a
|
2020-06-17 16:45:57 +00:00
|
|
|
* GrProcessorEdgeType will succeed with all values and it is up to the caller to verify success.
|
2017-11-10 20:34:03 +00:00
|
|
|
*/
|
|
|
|
enum class GrClipEdgeType {
|
|
|
|
kFillBW,
|
|
|
|
kFillAA,
|
|
|
|
kInverseFillBW,
|
|
|
|
kInverseFillAA,
|
|
|
|
|
2020-06-17 16:45:57 +00:00
|
|
|
kLast = kInverseFillAA
|
2017-11-10 20:34:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum class PMConversion {
|
|
|
|
kToPremul = 0,
|
|
|
|
kToUnpremul = 1,
|
|
|
|
kPMConversionCnt = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|