1/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrSharedEnums_DEFINED
9#define GrSharedEnums_DEFINED
10
11/*************************************************************************************************/
12/* This file is used from both C++ and SkSL, so we need to stick to syntax compatible with both. */
13/*************************************************************************************************/
14
15/**
16 * We have coverage effects that clip rendering to the edge of some geometric primitive.
17 * This enum specifies how that clipping is performed. Not all factories that take a
18 * GrProcessorEdgeType will succeed with all values and it is up to the caller to verify success.
19 */
20enum class GrClipEdgeType {
21 kFillBW,
22 kFillAA,
23 kInverseFillBW,
24 kInverseFillAA,
25
26 kLast = kInverseFillAA
27};
28
29enum class PMConversion {
30 kToPremul = 0,
31 kToUnpremul = 1,
32 kPMConversionCnt = 2
33};
34
35#endif
36