1c467774e5
This reverts commit 4a77813008
.
Reason for revert: Memory regression in Chrome.
Original change's description:
> Convert GrConfigConversionEffect to a runtime FP
>
> Change-Id: I7f22447cf3356b1558d73665ff3e9b61639ebe83
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423576
> Auto-Submit: Brian Osman <brianosman@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
TBR=bsalomon@google.com,brianosman@google.com,ethannicholas@google.com
Change-Id: I05497295b88b378f0aa236f18118fe676bbf05c9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424256
Reviewed-by: Brian Osman <brianosman@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
|