#include <GrProcessorAnalysis.h>
Definition at line 19 of file GrProcessorAnalysis.h.
◆ Opaque
Definition at line 21 of file GrProcessorAnalysis.h.
21 {
24 };
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.
◆ GrProcessorAnalysisColor() [1/2]
constexpr GrProcessorAnalysisColor::GrProcessorAnalysisColor |
( |
Opaque |
opaque = Opaque::kNo | ) |
|
|
inlineconstexpr |
◆ GrProcessorAnalysisColor() [2/2]
GrProcessorAnalysisColor::GrProcessorAnalysisColor |
( |
const SkPMColor4f & |
color | ) |
|
|
inline |
◆ Combine()
The returned value reflects the common properties of the two inputs.
Definition at line 67 of file GrProcessorAnalysis.h.
68 {
70 uint32_t commonFlags =
a.fFlags &
b.fFlags;
71 if ((kColorIsKnown_Flag & commonFlags) &&
a.fColor ==
b.fColor) {
74 } else if (kIsOpaque_Flag & commonFlags) {
75 result.fFlags = kIsOpaque_Flag;
76 }
78 }
◆ isConstant()
bool GrProcessorAnalysisColor::isConstant |
( |
SkPMColor4f * |
color = nullptr | ) |
const |
|
inline |
Definition at line 49 of file GrProcessorAnalysis.h.
49 {
50 if (kColorIsKnown_Flag & fFlags) {
53 }
54 return true;
55 }
56 return false;
57 }
◆ isOpaque()
bool GrProcessorAnalysisColor::isOpaque |
( |
| ) |
const |
|
inline |
◆ isUnknown()
bool GrProcessorAnalysisColor::isUnknown |
( |
| ) |
const |
|
inline |
◆ operator==()
Definition at line 59 of file GrProcessorAnalysis.h.
59 {
60 if (fFlags != that.fFlags) {
61 return false;
62 }
63 return (kColorIsKnown_Flag & fFlags) ? fColor == that.fColor : true;
64 }
◆ setToConstant()
void GrProcessorAnalysisColor::setToConstant |
( |
const SkPMColor4f & |
color | ) |
|
|
inline |
Definition at line 32 of file GrProcessorAnalysis.h.
32 {
34 if (
color.isOpaque()) {
35 fFlags = kColorIsKnown_Flag | kIsOpaque_Flag;
36 } else {
37 fFlags = kColorIsKnown_Flag;
38 }
39 }
◆ setToUnknown()
void GrProcessorAnalysisColor::setToUnknown |
( |
| ) |
|
|
inline |
◆ setToUnknownOpaque()
void GrProcessorAnalysisColor::setToUnknownOpaque |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: