egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 1 | /* |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 2 | * Copyright 2015 Google Inc. |
egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 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 | |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 8 | #ifndef GrPipeline_DEFINED |
| 9 | #define GrPipeline_DEFINED |
egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 10 | |
egdaniel | b109ac2 | 2014-10-07 06:45:44 -0700 | [diff] [blame] | 11 | #include "GrColor.h" |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 12 | #include "GrFragmentProcessor.h" |
joshualitt | dbe1e6f | 2015-07-16 08:12:45 -0700 | [diff] [blame] | 13 | #include "GrNonAtomicRef.h" |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 14 | #include "GrPendingProgramElement.h" |
Brian Salomon | 5298dc8 | 2017-02-22 11:52:03 -0500 | [diff] [blame] | 15 | #include "GrProcessorSet.h" |
joshualitt | 79f8fae | 2014-10-28 17:59:26 -0700 | [diff] [blame] | 16 | #include "GrProgramDesc.h" |
Brian Salomon | a4677b5 | 2017-05-04 12:39:56 -0400 | [diff] [blame] | 17 | #include "GrRect.h" |
csmartdalton | bf4a8f9 | 2016-09-06 10:01:06 -0700 | [diff] [blame] | 18 | #include "GrScissorState.h" |
csmartdalton | c633abb | 2016-11-01 08:55:55 -0700 | [diff] [blame] | 19 | #include "GrUserStencilSettings.h" |
csmartdalton | bf4a8f9 | 2016-09-06 10:01:06 -0700 | [diff] [blame] | 20 | #include "GrWindowRectsState.h" |
egdaniel | b109ac2 | 2014-10-07 06:45:44 -0700 | [diff] [blame] | 21 | #include "SkMatrix.h" |
| 22 | #include "SkRefCnt.h" |
robertphillips | 5fa7f30 | 2016-07-21 09:21:04 -0700 | [diff] [blame] | 23 | #include "effects/GrCoverageSetOpXP.h" |
| 24 | #include "effects/GrDisableColorXP.h" |
| 25 | #include "effects/GrPorterDuffXferProcessor.h" |
| 26 | #include "effects/GrSimpleTextureEffect.h" |
| 27 | |
Brian Salomon | 652ecb5 | 2017-01-17 12:39:53 -0500 | [diff] [blame] | 28 | class GrAppliedClip; |
joshualitt | 79f8fae | 2014-10-28 17:59:26 -0700 | [diff] [blame] | 29 | class GrDeviceCoordTexture; |
Brian Salomon | 25a8809 | 2016-12-01 09:36:50 -0500 | [diff] [blame] | 30 | class GrOp; |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 31 | class GrPipelineBuilder; |
Brian Salomon | 25a8809 | 2016-12-01 09:36:50 -0500 | [diff] [blame] | 32 | class GrRenderTargetContext; |
egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 33 | |
Brian Salomon | 92aee3d | 2016-12-21 09:20:25 -0500 | [diff] [blame] | 34 | /** |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 35 | * Class that holds an optimized version of a GrPipelineBuilder. It is meant to be an immutable |
| 36 | * class, and contains all data needed to set the state for a gpu draw. |
egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 37 | */ |
cdalton | 4833f39 | 2016-02-02 22:46:16 -0800 | [diff] [blame] | 38 | class GrPipeline : public GrNonAtomicRef<GrPipeline> { |
egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 39 | public: |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 40 | /////////////////////////////////////////////////////////////////////////// |
| 41 | /// @name Creation |
| 42 | |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 43 | enum Flags { |
| 44 | /** |
| 45 | * Perform HW anti-aliasing. This means either HW FSAA, if supported by the render target, |
| 46 | * or smooth-line rendering if a line primitive is drawn and line smoothing is supported by |
| 47 | * the 3D API. |
| 48 | */ |
| 49 | kHWAntialias_Flag = 0x1, |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 50 | /** |
| 51 | * Modifies the vertex shader so that vertices will be positioned at pixel centers. |
| 52 | */ |
| 53 | kSnapVerticesToPixelCenters_Flag = 0x2, |
Brian Salomon | 611572c | 2017-04-28 08:57:12 -0400 | [diff] [blame] | 54 | /** Disables conversion to sRGB from linear when writing to a sRGB destination. */ |
| 55 | kDisableOutputConversionToSRGB_Flag = 0x4, |
| 56 | /** Allows conversion from sRGB to linear when reading from processor's sRGB texture. */ |
| 57 | kAllowSRGBInputs_Flag = 0x8, |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 58 | }; |
| 59 | |
Brian Salomon | 611572c | 2017-04-28 08:57:12 -0400 | [diff] [blame] | 60 | static uint32_t SRGBFlagsFromPaint(const GrPaint& paint) { |
| 61 | uint32_t flags = 0; |
| 62 | if (paint.getAllowSRGBInputs()) { |
| 63 | flags |= kAllowSRGBInputs_Flag; |
| 64 | } |
| 65 | if (paint.getDisableOutputConversionToSRGB()) { |
| 66 | flags |= kDisableOutputConversionToSRGB_Flag; |
| 67 | } |
| 68 | return flags; |
| 69 | } |
| 70 | |
Brian Salomon | b5cb683 | 2017-02-24 11:01:15 -0500 | [diff] [blame] | 71 | struct InitArgs { |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 72 | uint32_t fFlags = 0; |
Brian Salomon | 48d1b4c | 2017-04-08 07:38:53 -0400 | [diff] [blame] | 73 | const GrProcessorSet* fProcessors = nullptr; // Must be finalized |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 74 | const GrUserStencilSettings* fUserStencil = &GrUserStencilSettings::kUnused; |
Brian Salomon | b5cb683 | 2017-02-24 11:01:15 -0500 | [diff] [blame] | 75 | const GrAppliedClip* fAppliedClip = nullptr; |
Brian Salomon | b16e8ac | 2017-02-22 11:52:36 -0500 | [diff] [blame] | 76 | GrRenderTarget* fRenderTarget = nullptr; |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 77 | const GrCaps* fCaps = nullptr; |
Robert Phillips | c375704 | 2017-05-17 13:00:14 +0000 | [diff] [blame] | 78 | GrXferProcessor::DstTexture fDstTexture; |
bsalomon | a387a11 | 2015-08-11 14:47:42 -0700 | [diff] [blame] | 79 | }; |
| 80 | |
Brian Salomon | b5cb683 | 2017-02-24 11:01:15 -0500 | [diff] [blame] | 81 | /** |
| 82 | * A Default constructed pipeline is unusable until init() is called. |
| 83 | **/ |
| 84 | GrPipeline() = default; |
egdaniel | b109ac2 | 2014-10-07 06:45:44 -0700 | [diff] [blame] | 85 | |
csmartdalton | 119fb2b | 2017-02-08 14:41:05 -0500 | [diff] [blame] | 86 | /** |
| 87 | * Creates a simple pipeline with default settings and no processors. The provided blend mode |
Brian Salomon | b5cb683 | 2017-02-24 11:01:15 -0500 | [diff] [blame] | 88 | * must be "Porter Duff" (<= kLastCoeffMode). This pipeline is initialized without requiring |
| 89 | * a call to init(). |
csmartdalton | 119fb2b | 2017-02-08 14:41:05 -0500 | [diff] [blame] | 90 | **/ |
| 91 | GrPipeline(GrRenderTarget*, SkBlendMode); |
| 92 | |
Brian Salomon | 6d4b65e | 2017-05-03 17:06:09 -0400 | [diff] [blame] | 93 | GrPipeline(const InitArgs& args) { this->init(args); } |
| 94 | |
Brian Salomon | b5cb683 | 2017-02-24 11:01:15 -0500 | [diff] [blame] | 95 | /** (Re)initializes a pipeline. After initialization the pipeline can be used. */ |
Brian Salomon | e7d3048 | 2017-03-29 12:09:15 -0400 | [diff] [blame] | 96 | void init(const InitArgs&); |
Brian Salomon | b5cb683 | 2017-02-24 11:01:15 -0500 | [diff] [blame] | 97 | |
| 98 | /** True if the pipeline has been initialized. */ |
| 99 | bool isInitialized() const { return SkToBool(fRenderTarget.get()); } |
| 100 | |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 101 | /// @} |
| 102 | |
| 103 | /////////////////////////////////////////////////////////////////////////// |
| 104 | /// @name Comparisons |
| 105 | |
| 106 | /** |
joshualitt | 2fe7923 | 2015-08-05 12:02:27 -0700 | [diff] [blame] | 107 | * Returns true if these pipelines are equivalent. Coord transforms may be applied either on |
| 108 | * the GPU or the CPU. When we apply them on the CPU then the matrices need not agree in order |
| 109 | * to combine draws. Therefore we take a param that indicates whether coord transforms should be |
| 110 | * compared." |
joshualitt | 9b98932 | 2014-12-15 14:16:27 -0800 | [diff] [blame] | 111 | */ |
bsalomon | 7312ff8 | 2016-09-12 08:55:38 -0700 | [diff] [blame] | 112 | static bool AreEqual(const GrPipeline& a, const GrPipeline& b); |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 113 | |
| 114 | /** |
Brian Salomon | 09d994e | 2016-12-21 11:14:46 -0500 | [diff] [blame] | 115 | * Allows a GrOp subclass to determine whether two GrOp instances can combine. This is a |
| 116 | * stricter test than isEqual because it also considers blend barriers when the two ops' |
| 117 | * bounds overlap |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 118 | */ |
| 119 | static bool CanCombine(const GrPipeline& a, const SkRect& aBounds, |
| 120 | const GrPipeline& b, const SkRect& bBounds, |
bsalomon | 7312ff8 | 2016-09-12 08:55:38 -0700 | [diff] [blame] | 121 | const GrCaps& caps) { |
| 122 | if (!AreEqual(a, b)) { |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 123 | return false; |
| 124 | } |
| 125 | if (a.xferBarrierType(caps)) { |
Brian Salomon | a4677b5 | 2017-05-04 12:39:56 -0400 | [diff] [blame] | 126 | return !GrRectsTouchOrOverlap(aBounds, bBounds); |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 127 | } |
| 128 | return true; |
| 129 | } |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 130 | |
| 131 | /// @} |
| 132 | |
| 133 | /////////////////////////////////////////////////////////////////////////// |
bsalomon | 6be6f7c | 2015-02-26 13:05:21 -0800 | [diff] [blame] | 134 | /// @name GrFragmentProcessors |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 135 | |
Robert Phillips | f2361d2 | 2016-10-25 14:20:06 -0400 | [diff] [blame] | 136 | // Make the renderTarget's GrOpList (if it exists) be dependent on any |
| 137 | // GrOpLists in this pipeline |
Robert Phillips | c589b0b | 2017-04-17 07:53:07 -0400 | [diff] [blame] | 138 | void addDependenciesTo(GrRenderTargetProxy*) const; |
bsalomon | 6be6f7c | 2015-02-26 13:05:21 -0800 | [diff] [blame] | 139 | |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 140 | int numColorFragmentProcessors() const { return fNumColorProcessors; } |
| 141 | int numCoverageFragmentProcessors() const { |
| 142 | return fFragmentProcessors.count() - fNumColorProcessors; |
| 143 | } |
| 144 | int numFragmentProcessors() const { return fFragmentProcessors.count(); } |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 145 | |
bsalomon | 2047b78 | 2015-12-21 13:12:54 -0800 | [diff] [blame] | 146 | const GrXferProcessor& getXferProcessor() const { |
Brian Salomon | d61c9d9 | 2017-04-10 10:54:25 -0400 | [diff] [blame] | 147 | if (fXferProcessor) { |
bsalomon | 2047b78 | 2015-12-21 13:12:54 -0800 | [diff] [blame] | 148 | return *fXferProcessor.get(); |
| 149 | } else { |
| 150 | // A null xp member means the common src-over case. GrXferProcessor's ref'ing |
| 151 | // mechanism is not thread safe so we do not hold a ref on this global. |
| 152 | return GrPorterDuffXPFactory::SimpleSrcOverXP(); |
| 153 | } |
| 154 | } |
egdaniel | 378092f | 2014-12-03 10:40:13 -0800 | [diff] [blame] | 155 | |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 156 | /** |
| 157 | * If the GrXferProcessor uses a texture to access the dst color, then this returns that |
| 158 | * texture and the offset to the dst contents within that texture. |
| 159 | */ |
Robert Phillips | c375704 | 2017-05-17 13:00:14 +0000 | [diff] [blame] | 160 | GrTexture* dstTexture(SkIPoint* offset = nullptr) const { |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 161 | if (offset) { |
| 162 | *offset = fDstTextureOffset; |
| 163 | } |
Robert Phillips | c375704 | 2017-05-17 13:00:14 +0000 | [diff] [blame] | 164 | return fDstTexture.get(); |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 165 | } |
| 166 | |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 167 | const GrFragmentProcessor& getColorFragmentProcessor(int idx) const { |
| 168 | SkASSERT(idx < this->numColorFragmentProcessors()); |
| 169 | return *fFragmentProcessors[idx].get(); |
egdaniel | d9aa218 | 2014-10-09 13:47:05 -0700 | [diff] [blame] | 170 | } |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 171 | |
| 172 | const GrFragmentProcessor& getCoverageFragmentProcessor(int idx) const { |
| 173 | SkASSERT(idx < this->numCoverageFragmentProcessors()); |
| 174 | return *fFragmentProcessors[fNumColorProcessors + idx].get(); |
egdaniel | d9aa218 | 2014-10-09 13:47:05 -0700 | [diff] [blame] | 175 | } |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 176 | |
| 177 | const GrFragmentProcessor& getFragmentProcessor(int idx) const { |
| 178 | return *fFragmentProcessors[idx].get(); |
bsalomon | ae59b77 | 2014-11-19 08:23:49 -0800 | [diff] [blame] | 179 | } |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 180 | |
| 181 | /// @} |
| 182 | |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 183 | /** |
| 184 | * Retrieves the currently set render-target. |
| 185 | * |
| 186 | * @return The currently set render target. |
| 187 | */ |
bsalomon | 37dd331 | 2014-11-03 08:47:23 -0800 | [diff] [blame] | 188 | GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); } |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 189 | |
csmartdalton | c633abb | 2016-11-01 08:55:55 -0700 | [diff] [blame] | 190 | const GrUserStencilSettings* getUserStencil() const { return fUserStencilSettings; } |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 191 | |
bsalomon | 3e79124 | 2014-12-17 13:43:13 -0800 | [diff] [blame] | 192 | const GrScissorState& getScissorState() const { return fScissorState; } |
joshualitt | 54e0c12 | 2014-11-19 09:38:51 -0800 | [diff] [blame] | 193 | |
csmartdalton | bf4a8f9 | 2016-09-06 10:01:06 -0700 | [diff] [blame] | 194 | const GrWindowRectsState& getWindowRectsState() const { return fWindowRectsState; } |
csmartdalton | 28341fa | 2016-08-17 10:00:21 -0700 | [diff] [blame] | 195 | |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 196 | bool isHWAntialiasState() const { return SkToBool(fFlags & kHWAntialias_Flag); } |
| 197 | bool snapVerticesToPixelCenters() const { |
| 198 | return SkToBool(fFlags & kSnapVerticesToPixelCenters_Flag); |
| 199 | } |
brianosman | 64d094d | 2016-03-25 06:01:59 -0700 | [diff] [blame] | 200 | bool getDisableOutputConversionToSRGB() const { |
| 201 | return SkToBool(fFlags & kDisableOutputConversionToSRGB_Flag); |
| 202 | } |
brianosman | 898235c | 2016-04-06 07:38:23 -0700 | [diff] [blame] | 203 | bool getAllowSRGBInputs() const { |
| 204 | return SkToBool(fFlags & kAllowSRGBInputs_Flag); |
| 205 | } |
dvonbeck | 9b03e7b | 2016-08-01 11:01:56 -0700 | [diff] [blame] | 206 | bool usesDistanceVectorField() const { |
| 207 | return SkToBool(fFlags & kUsesDistanceVectorField_Flag); |
| 208 | } |
cdalton | 193d9cf | 2016-05-12 11:52:02 -0700 | [diff] [blame] | 209 | bool hasStencilClip() const { |
| 210 | return SkToBool(fFlags & kHasStencilClip_Flag); |
| 211 | } |
csmartdalton | c633abb | 2016-11-01 08:55:55 -0700 | [diff] [blame] | 212 | bool isStencilEnabled() const { |
| 213 | return SkToBool(fFlags & kStencilEnabled_Flag); |
| 214 | } |
Robert Phillips | a91e0b7 | 2017-05-01 13:12:20 -0400 | [diff] [blame] | 215 | bool isBad() const { return SkToBool(fFlags & kIsBad_Flag); } |
bsalomon | ae59b77 | 2014-11-19 08:23:49 -0800 | [diff] [blame] | 216 | |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 217 | GrXferBarrierType xferBarrierType(const GrCaps& caps) const { |
Robert Phillips | c375704 | 2017-05-17 13:00:14 +0000 | [diff] [blame] | 218 | if (fDstTexture.get() && fDstTexture.get() == fRenderTarget.get()->asTexture()) { |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 219 | return kTexture_GrXferBarrierType; |
| 220 | } |
| 221 | return this->getXferProcessor().xferBarrierType(caps); |
bsalomon | cb02b38 | 2015-08-12 11:14:50 -0700 | [diff] [blame] | 222 | } |
| 223 | |
bsalomon | ae59b77 | 2014-11-19 08:23:49 -0800 | [diff] [blame] | 224 | private: |
Robert Phillips | a91e0b7 | 2017-05-01 13:12:20 -0400 | [diff] [blame] | 225 | void markAsBad() { fFlags |= kIsBad_Flag; } |
| 226 | |
Brian Salomon | f87e2b9 | 2017-01-19 11:31:50 -0500 | [diff] [blame] | 227 | /** This is a continuation of the public "Flags" enum. */ |
Brian Salomon | 189098e7 | 2017-01-19 09:55:19 -0500 | [diff] [blame] | 228 | enum PrivateFlags { |
| 229 | kUsesDistanceVectorField_Flag = 0x10, |
| 230 | kHasStencilClip_Flag = 0x20, |
| 231 | kStencilEnabled_Flag = 0x40, |
Robert Phillips | a91e0b7 | 2017-05-01 13:12:20 -0400 | [diff] [blame] | 232 | kIsBad_Flag = 0x80, |
bsalomon | 04ddf89 | 2014-11-19 12:36:22 -0800 | [diff] [blame] | 233 | }; |
| 234 | |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 235 | using RenderTarget = GrPendingIOResource<GrRenderTarget, kWrite_GrIOType>; |
Robert Phillips | c375704 | 2017-05-17 13:00:14 +0000 | [diff] [blame] | 236 | using DstTexture = GrPendingIOResource<GrTexture, kRead_GrIOType>; |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 237 | using PendingFragmentProcessor = GrPendingProgramElement<const GrFragmentProcessor>; |
| 238 | using FragmentProcessorArray = SkAutoSTArray<8, PendingFragmentProcessor>; |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 239 | |
Robert Phillips | c375704 | 2017-05-17 13:00:14 +0000 | [diff] [blame] | 240 | DstTexture fDstTexture; |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 241 | SkIPoint fDstTextureOffset; |
| 242 | RenderTarget fRenderTarget; |
| 243 | GrScissorState fScissorState; |
| 244 | GrWindowRectsState fWindowRectsState; |
| 245 | const GrUserStencilSettings* fUserStencilSettings; |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 246 | uint16_t fFlags; |
Brian Salomon | d61c9d9 | 2017-04-10 10:54:25 -0400 | [diff] [blame] | 247 | sk_sp<const GrXferProcessor> fXferProcessor; |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 248 | FragmentProcessorArray fFragmentProcessors; |
egdaniel | d9aa218 | 2014-10-09 13:47:05 -0700 | [diff] [blame] | 249 | |
bsalomon | ac856c9 | 2015-08-27 06:30:17 -0700 | [diff] [blame] | 250 | // This value is also the index in fFragmentProcessors where coverage processors begin. |
Brian Salomon | 18dfa98 | 2017-04-03 16:57:43 -0400 | [diff] [blame] | 251 | int fNumColorProcessors; |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 252 | |
egdaniel | 89af44a | 2014-09-26 06:15:04 -0700 | [diff] [blame] | 253 | typedef SkRefCnt INHERITED; |
egdaniel | 3658f38 | 2014-09-15 07:01:59 -0700 | [diff] [blame] | 254 | }; |
| 255 | |
| 256 | #endif |