Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 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 GrSimpleMeshDrawOpHelper_DEFINED |
| 9 | #define GrSimpleMeshDrawOpHelper_DEFINED |
| 10 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "include/private/GrRecordingContext.h" |
| 12 | #include "src/gpu/GrMemoryPool.h" |
| 13 | #include "src/gpu/GrOpFlushState.h" |
| 14 | #include "src/gpu/GrPipeline.h" |
| 15 | #include "src/gpu/GrRecordingContextPriv.h" |
| 16 | #include "src/gpu/ops/GrMeshDrawOp.h" |
Mike Klein | 79aea6a | 2018-06-11 10:45:26 -0400 | [diff] [blame] | 17 | #include <new> |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 18 | |
| 19 | struct SkRect; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 20 | |
| 21 | /** |
| 22 | * This class can be used to help implement simple mesh draw ops. It reduces the amount of |
| 23 | * boilerplate code to type and also provides a mechanism for optionally allocating space for a |
| 24 | * GrProcessorSet based on a GrPaint. It is intended to be used by ops that construct a single |
| 25 | * GrPipeline for a uniform primitive color and a GrPaint. |
| 26 | */ |
| 27 | class GrSimpleMeshDrawOpHelper { |
| 28 | public: |
| 29 | struct MakeArgs; |
| 30 | |
| 31 | /** |
| 32 | * This can be used by a Op class to perform allocation and initialization such that a |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 33 | * GrProcessorSet (if required) is allocated as part of the the same allocation that as |
| 34 | * the Op instance. It requires that Op implements a constructor of the form: |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 35 | * Op(MakeArgs, GrColor, OpArgs...) |
| 36 | * which is public or made accessible via 'friend'. |
| 37 | */ |
| 38 | template <typename Op, typename... OpArgs> |
Robert Phillips | b97da53 | 2019-02-12 15:24:12 -0500 | [diff] [blame] | 39 | static std::unique_ptr<GrDrawOp> FactoryHelper(GrRecordingContext*, GrPaint&&, OpArgs...); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 40 | |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 41 | // Here we allow callers to specify a subset of the GrPipeline::InputFlags upon creation. |
| 42 | enum class InputFlags : uint8_t { |
| 43 | kNone = 0, |
| 44 | kSnapVerticesToPixelCenters = (uint8_t)GrPipeline::InputFlags::kSnapVerticesToPixelCenters, |
Brian Salomon | baaf439 | 2017-06-15 09:59:23 -0400 | [diff] [blame] | 45 | }; |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 46 | GR_DECL_BITFIELD_CLASS_OPS_FRIENDS(InputFlags); |
Brian Salomon | baaf439 | 2017-06-15 09:59:23 -0400 | [diff] [blame] | 47 | |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 48 | GrSimpleMeshDrawOpHelper(const MakeArgs&, GrAAType, InputFlags = InputFlags::kNone); |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 49 | ~GrSimpleMeshDrawOpHelper(); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 50 | |
| 51 | GrSimpleMeshDrawOpHelper() = delete; |
| 52 | GrSimpleMeshDrawOpHelper(const GrSimpleMeshDrawOpHelper&) = delete; |
| 53 | GrSimpleMeshDrawOpHelper& operator=(const GrSimpleMeshDrawOpHelper&) = delete; |
| 54 | |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 55 | GrDrawOp::FixedFunctionFlags fixedFunctionFlags() const; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 56 | |
Michael Ludwig | 6985853 | 2018-11-28 15:34:34 -0500 | [diff] [blame] | 57 | // noneAACompatibleWithCoverage should be set to true if the op can properly render a non-AA |
| 58 | // primitive merged into a coverage-based op. |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 59 | bool isCompatible(const GrSimpleMeshDrawOpHelper& that, const GrCaps&, const SkRect& thisBounds, |
Michael Ludwig | 6985853 | 2018-11-28 15:34:34 -0500 | [diff] [blame] | 60 | const SkRect& thatBounds, bool noneAACompatibleWithCoverage = false) const; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 61 | |
Brian Salomon | 0088f94 | 2017-07-12 11:51:27 -0400 | [diff] [blame] | 62 | /** |
| 63 | * Finalizes the processor set and determines whether the destination must be provided |
| 64 | * to the fragment shader as a texture for blending. |
| 65 | * |
| 66 | * @param geometryCoverage Describes the coverage output of the op's geometry processor |
| 67 | * @param geometryColor An in/out param. As input this informs processor analysis about the |
| 68 | * color the op expects to output from its geometry processor. As output |
| 69 | * this may be set to a known color in which case the op must output this |
| 70 | * color from its geometry processor instead. |
| 71 | */ |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 72 | GrProcessorSet::Analysis finalizeProcessors( |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 73 | const GrCaps& caps, const GrAppliedClip* clip, bool hasMixedSampledCoverage, |
Brian Osman | 5ced0bf | 2019-03-15 10:15:29 -0400 | [diff] [blame] | 74 | GrClampType clampType, GrProcessorAnalysisCoverage geometryCoverage, |
| 75 | GrProcessorAnalysisColor* geometryColor) { |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 76 | return this->finalizeProcessors( |
| 77 | caps, clip, &GrUserStencilSettings::kUnused, hasMixedSampledCoverage, clampType, |
| 78 | geometryCoverage, geometryColor); |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 79 | } |
Brian Salomon | 0088f94 | 2017-07-12 11:51:27 -0400 | [diff] [blame] | 80 | |
| 81 | /** |
| 82 | * Version of above that can be used by ops that have a constant color geometry processor |
| 83 | * output. The op passes this color as 'geometryColor' and after return if 'geometryColor' has |
| 84 | * changed the op must override its geometry processor color output with the new color. |
| 85 | */ |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 86 | GrProcessorSet::Analysis finalizeProcessors( |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 87 | const GrCaps&, const GrAppliedClip*, bool hasMixedSampledCoverage, GrClampType, |
Brian Osman | 8fa7ab4 | 2019-03-18 10:22:42 -0400 | [diff] [blame] | 88 | GrProcessorAnalysisCoverage geometryCoverage, SkPMColor4f* geometryColor, |
| 89 | bool* wideColor); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 90 | |
Michael Ludwig | dcd4821 | 2019-01-08 15:28:57 -0500 | [diff] [blame] | 91 | bool isTrivial() const { |
| 92 | return fProcessors == nullptr; |
| 93 | } |
| 94 | |
Brian Salomon | 05441c4 | 2017-05-15 16:45:49 -0400 | [diff] [blame] | 95 | bool usesLocalCoords() const { |
| 96 | SkASSERT(fDidAnalysis); |
| 97 | return fUsesLocalCoords; |
| 98 | } |
| 99 | |
Brian Osman | 605c6d5 | 2019-03-15 12:10:35 -0400 | [diff] [blame] | 100 | bool compatibleWithCoverageAsAlpha() const { return fCompatibleWithCoverageAsAlpha; } |
Brian Salomon | 28207df | 2017-06-05 12:25:13 -0400 | [diff] [blame] | 101 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 102 | struct MakeArgs { |
| 103 | private: |
| 104 | MakeArgs() = default; |
| 105 | |
| 106 | GrProcessorSet* fProcessorSet; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 107 | |
| 108 | friend class GrSimpleMeshDrawOpHelper; |
| 109 | }; |
| 110 | |
Chris Dalton | 7eb5c0f | 2019-05-23 15:15:47 -0600 | [diff] [blame] | 111 | void visitProxies(const GrOp::VisitProxyFunc& func) const { |
Robert Phillips | b493eeb | 2017-09-13 13:10:52 -0400 | [diff] [blame] | 112 | if (fProcessors) { |
| 113 | fProcessors->visitProxies(func); |
| 114 | } |
| 115 | } |
| 116 | |
Brian Osman | 9a390ac | 2018-11-12 09:47:48 -0500 | [diff] [blame] | 117 | #ifdef SK_DEBUG |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 118 | SkString dumpInfo() const; |
Brian Osman | 9a390ac | 2018-11-12 09:47:48 -0500 | [diff] [blame] | 119 | #endif |
Michael Ludwig | c647324 | 2018-11-01 11:08:35 -0400 | [diff] [blame] | 120 | GrAAType aaType() const { return static_cast<GrAAType>(fAAType); } |
Brian Salomon | 82dfd3d | 2017-06-14 12:30:35 -0400 | [diff] [blame] | 121 | |
Michael Ludwig | 6985853 | 2018-11-28 15:34:34 -0500 | [diff] [blame] | 122 | void setAAType(GrAAType aaType) { |
| 123 | fAAType = static_cast<unsigned>(aaType); |
| 124 | } |
| 125 | |
Chris Dalton | 07cdcfc9 | 2019-02-26 11:13:22 -0700 | [diff] [blame] | 126 | void executeDrawsAndUploads(const GrOp*, GrOpFlushState*, const SkRect& chainBounds); |
| 127 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 128 | protected: |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 129 | GrPipeline::InputFlags pipelineFlags() const { return fPipelineFlags; } |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 130 | |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 131 | GrProcessorSet::Analysis finalizeProcessors( |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 132 | const GrCaps& caps, const GrAppliedClip*, const GrUserStencilSettings*, |
| 133 | bool hasMixedSampledCoverage, GrClampType, GrProcessorAnalysisCoverage geometryCoverage, |
Brian Osman | 5ced0bf | 2019-03-15 10:15:29 -0400 | [diff] [blame] | 134 | GrProcessorAnalysisColor* geometryColor); |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 135 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 136 | GrProcessorSet* fProcessors; |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 137 | GrPipeline::InputFlags fPipelineFlags; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 138 | unsigned fAAType : 2; |
Brian Salomon | 05441c4 | 2017-05-15 16:45:49 -0400 | [diff] [blame] | 139 | unsigned fUsesLocalCoords : 1; |
Brian Osman | 605c6d5 | 2019-03-15 12:10:35 -0400 | [diff] [blame] | 140 | unsigned fCompatibleWithCoverageAsAlpha : 1; |
Brian Salomon | bfd18cd | 2017-08-09 16:27:09 -0400 | [diff] [blame] | 141 | SkDEBUGCODE(unsigned fMadePipeline : 1;) |
Brian Salomon | 05441c4 | 2017-05-15 16:45:49 -0400 | [diff] [blame] | 142 | SkDEBUGCODE(unsigned fDidAnalysis : 1;) |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 143 | }; |
| 144 | |
| 145 | /** |
| 146 | * This class extends GrSimpleMeshDrawOpHelper to support an optional GrUserStencilSettings. This |
| 147 | * uses private inheritance because it non-virtually overrides methods in the base class and should |
| 148 | * never be used with a GrSimpleMeshDrawOpHelper pointer or reference. |
| 149 | */ |
| 150 | class GrSimpleMeshDrawOpHelperWithStencil : private GrSimpleMeshDrawOpHelper { |
| 151 | public: |
| 152 | using MakeArgs = GrSimpleMeshDrawOpHelper::MakeArgs; |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 153 | using InputFlags = GrSimpleMeshDrawOpHelper::InputFlags; |
Brian Salomon | 4934890 | 2018-06-26 09:12:38 -0400 | [diff] [blame] | 154 | |
Robert Phillips | b493eeb | 2017-09-13 13:10:52 -0400 | [diff] [blame] | 155 | using GrSimpleMeshDrawOpHelper::visitProxies; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 156 | |
| 157 | // using declarations can't be templated, so this is a pass through function instead. |
| 158 | template <typename Op, typename... OpArgs> |
Robert Phillips | b97da53 | 2019-02-12 15:24:12 -0500 | [diff] [blame] | 159 | static std::unique_ptr<GrDrawOp> FactoryHelper(GrRecordingContext* context, GrPaint&& paint, |
Robert Phillips | 7c525e6 | 2018-06-12 10:11:12 -0400 | [diff] [blame] | 160 | OpArgs... opArgs) { |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 161 | return GrSimpleMeshDrawOpHelper::FactoryHelper<Op, OpArgs...>( |
Robert Phillips | 7c525e6 | 2018-06-12 10:11:12 -0400 | [diff] [blame] | 162 | context, std::move(paint), std::forward<OpArgs>(opArgs)...); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 163 | } |
| 164 | |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 165 | GrSimpleMeshDrawOpHelperWithStencil(const MakeArgs&, GrAAType, const GrUserStencilSettings*, |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 166 | InputFlags = InputFlags::kNone); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 167 | |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 168 | GrDrawOp::FixedFunctionFlags fixedFunctionFlags() const; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 169 | |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 170 | GrProcessorSet::Analysis finalizeProcessors( |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 171 | const GrCaps& caps, const GrAppliedClip* clip, bool hasMixedSampledCoverage, |
Brian Osman | 5ced0bf | 2019-03-15 10:15:29 -0400 | [diff] [blame] | 172 | GrClampType clampType, GrProcessorAnalysisCoverage geometryCoverage, |
| 173 | GrProcessorAnalysisColor* geometryColor) { |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 174 | return this->INHERITED::finalizeProcessors( |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 175 | caps, clip, fStencilSettings, hasMixedSampledCoverage, clampType, geometryCoverage, |
| 176 | geometryColor); |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 177 | } |
| 178 | |
| 179 | GrProcessorSet::Analysis finalizeProcessors( |
Chris Dalton | 6ce447a | 2019-06-23 18:07:38 -0600 | [diff] [blame] | 180 | const GrCaps&, const GrAppliedClip*, bool hasMixedSampledCoverage, GrClampType, |
| 181 | GrProcessorAnalysisCoverage geometryCoverage, SkPMColor4f* geometryColor, bool* |
| 182 | wideColor); |
Chris Dalton | b8fff0d | 2019-03-05 10:11:58 -0700 | [diff] [blame] | 183 | |
Michael Ludwig | dcd4821 | 2019-01-08 15:28:57 -0500 | [diff] [blame] | 184 | using GrSimpleMeshDrawOpHelper::aaType; |
| 185 | using GrSimpleMeshDrawOpHelper::setAAType; |
| 186 | using GrSimpleMeshDrawOpHelper::isTrivial; |
Brian Salomon | 05441c4 | 2017-05-15 16:45:49 -0400 | [diff] [blame] | 187 | using GrSimpleMeshDrawOpHelper::usesLocalCoords; |
Brian Osman | 605c6d5 | 2019-03-15 12:10:35 -0400 | [diff] [blame] | 188 | using GrSimpleMeshDrawOpHelper::compatibleWithCoverageAsAlpha; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 189 | |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 190 | bool isCompatible(const GrSimpleMeshDrawOpHelperWithStencil& that, const GrCaps&, |
Michael Ludwig | 6985853 | 2018-11-28 15:34:34 -0500 | [diff] [blame] | 191 | const SkRect& thisBounds, const SkRect& thatBounds, |
| 192 | bool noneAACompatibleWithCoverage = false) const; |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 193 | |
Chris Dalton | 07cdcfc9 | 2019-02-26 11:13:22 -0700 | [diff] [blame] | 194 | void executeDrawsAndUploads(const GrOp*, GrOpFlushState*, const SkRect& chainBounds); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 195 | |
Brian Osman | 9a390ac | 2018-11-12 09:47:48 -0500 | [diff] [blame] | 196 | #ifdef SK_DEBUG |
Brian Salomon | b4d6106 | 2017-07-12 11:24:41 -0400 | [diff] [blame] | 197 | SkString dumpInfo() const; |
Brian Osman | 9a390ac | 2018-11-12 09:47:48 -0500 | [diff] [blame] | 198 | #endif |
Brian Salomon | 82dfd3d | 2017-06-14 12:30:35 -0400 | [diff] [blame] | 199 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 200 | private: |
| 201 | const GrUserStencilSettings* fStencilSettings; |
| 202 | typedef GrSimpleMeshDrawOpHelper INHERITED; |
| 203 | }; |
| 204 | |
| 205 | template <typename Op, typename... OpArgs> |
Robert Phillips | b97da53 | 2019-02-12 15:24:12 -0500 | [diff] [blame] | 206 | std::unique_ptr<GrDrawOp> GrSimpleMeshDrawOpHelper::FactoryHelper(GrRecordingContext* context, |
Robert Phillips | 7c525e6 | 2018-06-12 10:11:12 -0400 | [diff] [blame] | 207 | GrPaint&& paint, |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 208 | OpArgs... opArgs) { |
Robert Phillips | 9da87e0 | 2019-02-04 13:26:26 -0500 | [diff] [blame] | 209 | GrOpMemoryPool* pool = context->priv().opMemoryPool(); |
Robert Phillips | c994a93 | 2018-06-19 13:09:54 -0400 | [diff] [blame] | 210 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 211 | MakeArgs makeArgs; |
Robert Phillips | 7c525e6 | 2018-06-12 10:11:12 -0400 | [diff] [blame] | 212 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 213 | if (paint.isTrivial()) { |
| 214 | makeArgs.fProcessorSet = nullptr; |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 215 | return pool->allocate<Op>(makeArgs, paint.getColor4f(), std::forward<OpArgs>(opArgs)...); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 216 | } else { |
Robert Phillips | c994a93 | 2018-06-19 13:09:54 -0400 | [diff] [blame] | 217 | char* mem = (char*) pool->allocate(sizeof(Op) + sizeof(GrProcessorSet)); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 218 | char* setMem = mem + sizeof(Op); |
Mike Klein | ad648737 | 2018-12-12 09:40:40 -0500 | [diff] [blame] | 219 | auto color = paint.getColor4f(); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 220 | makeArgs.fProcessorSet = new (setMem) GrProcessorSet(std::move(paint)); |
Mike Klein | ad648737 | 2018-12-12 09:40:40 -0500 | [diff] [blame] | 221 | return std::unique_ptr<GrDrawOp>(new (mem) Op(makeArgs, color, |
Robert Phillips | c994a93 | 2018-06-19 13:09:54 -0400 | [diff] [blame] | 222 | std::forward<OpArgs>(opArgs)...)); |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 223 | } |
| 224 | } |
| 225 | |
Chris Dalton | baa1b35 | 2019-04-03 12:03:00 -0600 | [diff] [blame] | 226 | GR_MAKE_BITFIELD_CLASS_OPS(GrSimpleMeshDrawOpHelper::InputFlags) |
Brian Salomon | baaf439 | 2017-06-15 09:59:23 -0400 | [diff] [blame] | 227 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 228 | #endif |