4c5943781e
All layout(key) fields include the field name meta-data, and use as few bits as possible. Bug: skia:11372 Change-Id: Ie12b3e0d01148457e5ea078cbf7d0a4bff35302e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/378596 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
/*
|
|
* 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
|
|
* GrProcessorEdgeType will succeed with all values and it is up to the caller to verify success.
|
|
*/
|
|
enum class GrClipEdgeType {
|
|
kFillBW,
|
|
kFillAA,
|
|
kInverseFillBW,
|
|
kInverseFillAA,
|
|
|
|
kLast = kInverseFillAA
|
|
};
|
|
|
|
enum class PMConversion {
|
|
kToPremul = 0,
|
|
kToUnpremul = 1,
|
|
|
|
kLast = kToUnpremul
|
|
};
|
|
|
|
#endif
|