tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 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 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 8 | #ifndef GrProcessor_DEFINED |
| 9 | #define GrProcessor_DEFINED |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 10 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 11 | #include "GrBackendProcessorFactory.h" |
bsalomon@google.com | 371e105 | 2013-01-11 21:08:55 +0000 | [diff] [blame] | 12 | #include "GrColor.h" |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 13 | #include "GrProcessorUnitTest.h" |
bsalomon | 9574098 | 2014-09-04 13:12:37 -0700 | [diff] [blame] | 14 | #include "GrProgramElement.h" |
bsalomon@google.com | 047696c | 2012-09-11 13:29:29 +0000 | [diff] [blame] | 15 | #include "GrTextureAccess.h" |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 16 | #include "SkMath.h" |
tomhudson@google.com | 07eecdc | 2012-04-20 18:35:38 +0000 | [diff] [blame] | 17 | |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 18 | class GrContext; |
bsalomon@google.com | 77af680 | 2013-10-02 13:04:56 +0000 | [diff] [blame] | 19 | class GrCoordTransform; |
bsalomon | 9574098 | 2014-09-04 13:12:37 -0700 | [diff] [blame] | 20 | |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 21 | /** Provides custom shader code to the Ganesh shading pipeline. GrProcessor objects *must* be |
| 22 | immutable: after being constructed, their fields may not change. |
bsalomon@google.com | 0ac6af4 | 2013-01-16 15:16:18 +0000 | [diff] [blame] | 23 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 24 | Dynamically allocated GrProcessors are managed by a per-thread memory pool. The ref count of an |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 25 | processor must reach 0 before the thread terminates and the pool is destroyed. To create a |
| 26 | static processor use the helper macro GR_CREATE_STATIC_PROCESSOR declared below. |
| 27 | */ |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 28 | class GrProcessor : public GrProgramElement { |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 29 | public: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 30 | SK_DECLARE_INST_COUNT(GrProcessor) |
robertphillips@google.com | 15e9d3e | 2012-06-21 20:25:03 +0000 | [diff] [blame] | 31 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 32 | virtual ~GrProcessor(); |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 33 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 34 | struct InvariantOutput{ |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 35 | InvariantOutput() : fColor(0), fValidFlags(0), fIsSingleComponent(false), |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 36 | fNonMulStageFound(false), fWillUseInputColor(true) {} |
| 37 | |
| 38 | enum ReadInput { |
| 39 | kWill_ReadInput, |
| 40 | kWillNot_ReadInput, |
| 41 | }; |
joshualitt | 6517134 | 2014-10-09 07:25:36 -0700 | [diff] [blame] | 42 | |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 43 | void mulByUnknownOpaqueColor() { |
| 44 | if (this->isOpaque()) { |
| 45 | fValidFlags = kA_GrColorComponentFlag; |
| 46 | fIsSingleComponent = false; |
| 47 | } else { |
| 48 | // Since the current state is not opaque we no longer care if the color being |
| 49 | // multiplied is opaque. |
| 50 | this->mulByUnknownColor(); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | void mulByUnknownColor() { |
| 55 | if (this->hasZeroAlpha()) { |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 56 | this->internalSetToTransparentBlack(); |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 57 | } else { |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 58 | this->internalSetToUnknown(); |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 59 | } |
| 60 | } |
| 61 | |
| 62 | void mulByUnknownAlpha() { |
| 63 | if (this->hasZeroAlpha()) { |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 64 | this->internalSetToTransparentBlack(); |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 65 | } else { |
| 66 | // We don't need to change fIsSingleComponent in this case |
| 67 | fValidFlags = 0; |
| 68 | } |
| 69 | } |
| 70 | |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 71 | void mulByKnownAlpha(uint8_t alpha) { |
| 72 | if (this->hasZeroAlpha() || 0 == alpha) { |
| 73 | this->internalSetToTransparentBlack(); |
| 74 | } else { |
| 75 | if (alpha != 255) { |
| 76 | // Multiply color by alpha |
| 77 | fColor = GrColorPackRGBA(SkMulDiv255Round(GrColorUnpackR(fColor), alpha), |
| 78 | SkMulDiv255Round(GrColorUnpackG(fColor), alpha), |
| 79 | SkMulDiv255Round(GrColorUnpackB(fColor), alpha), |
| 80 | SkMulDiv255Round(GrColorUnpackA(fColor), alpha)); |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | void invalidateComponents(uint8_t invalidateFlags, ReadInput readsInput) { |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 86 | fValidFlags &= ~invalidateFlags; |
| 87 | fIsSingleComponent = false; |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 88 | if (kWillNot_ReadInput == readsInput) { |
| 89 | fWillUseInputColor = false; |
| 90 | } |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 91 | } |
| 92 | |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 93 | void setToOther(uint8_t validFlags, GrColor color, ReadInput readsInput) { |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 94 | fValidFlags = validFlags; |
| 95 | fColor = color; |
| 96 | fIsSingleComponent = false; |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 97 | fNonMulStageFound = true; |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 98 | if (kWillNot_ReadInput == readsInput) { |
| 99 | fWillUseInputColor = false; |
| 100 | } |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 101 | } |
| 102 | |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 103 | void setToUnknown(ReadInput readsInput) { |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 104 | this->internalSetToUnknown(); |
| 105 | fNonMulStageFound= true; |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 106 | if (kWillNot_ReadInput == readsInput) { |
| 107 | fWillUseInputColor = false; |
| 108 | } |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 109 | } |
| 110 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 111 | bool isOpaque() const { |
| 112 | return ((fValidFlags & kA_GrColorComponentFlag) && 0xFF == GrColorUnpackA(fColor)); |
| 113 | } |
| 114 | |
| 115 | bool isSolidWhite() const { |
| 116 | return (fValidFlags == kRGBA_GrColorComponentFlags && 0xFFFFFFFF == fColor); |
| 117 | } |
| 118 | |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 119 | GrColor color() const { return fColor; } |
| 120 | uint8_t validFlags() const { return fValidFlags; } |
| 121 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 122 | /** |
| 123 | * If isSingleComponent is true, then the flag values for r, g, b, and a must all be the |
| 124 | * same. If the flags are all set then all color components must be equal. |
| 125 | */ |
| 126 | SkDEBUGCODE(void validate() const;) |
| 127 | |
| 128 | private: |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 129 | void internalSetToTransparentBlack() { |
| 130 | fValidFlags = kRGBA_GrColorComponentFlags; |
| 131 | fColor = 0; |
| 132 | fIsSingleComponent = true; |
| 133 | } |
| 134 | |
| 135 | void internalSetToUnknown() { |
| 136 | fValidFlags = 0; |
| 137 | fIsSingleComponent = false; |
| 138 | } |
| 139 | |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 140 | bool hasZeroAlpha() const { |
| 141 | return ((fValidFlags & kA_GrColorComponentFlag) && 0 == GrColorUnpackA(fColor)); |
| 142 | } |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 143 | |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 144 | SkDEBUGCODE(bool colorComponentsAllEqual() const;) |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 145 | /** |
| 146 | * If alpha is valid, check that any valid R,G,B values are <= A |
| 147 | */ |
| 148 | SkDEBUGCODE(bool validPreMulColor() const;) |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 149 | |
| 150 | // Friended class that have "controller" code which loop over stages calling |
| 151 | // computeInvarianteOutput(). These controllers may need to manually adjust the internal |
| 152 | // members of InvariantOutput |
| 153 | friend class GrDrawState; |
| 154 | friend class GrOptDrawState; |
| 155 | friend class GrPaint; |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 156 | friend class GrProcessor; |
egdaniel | ccb2e38 | 2014-10-13 12:53:46 -0700 | [diff] [blame] | 157 | |
| 158 | GrColor fColor; |
| 159 | uint32_t fValidFlags; |
| 160 | bool fIsSingleComponent; |
egdaniel | ab84fae | 2014-10-14 06:48:46 -0700 | [diff] [blame] | 161 | bool fNonMulStageFound; |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 162 | bool fWillUseInputColor; |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 163 | }; |
| 164 | |
bsalomon@google.com | 371e105 | 2013-01-11 21:08:55 +0000 | [diff] [blame] | 165 | /** |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 166 | * This function is used to perform optimizations. When called the invarientOuput param |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 167 | * indicate whether the input components to this processor in the FS will have known values. |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 168 | * In inout the validFlags member is a bitfield of GrColorComponentFlags. The isSingleComponent |
| 169 | * member indicates whether the input will be 1 or 4 bytes. The function updates the members of |
| 170 | * inout to indicate known values of its output. A component of the color member only has |
| 171 | * meaning if the corresponding bit in validFlags is set. |
bsalomon@google.com | 371e105 | 2013-01-11 21:08:55 +0000 | [diff] [blame] | 172 | */ |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 173 | void computeInvariantOutput(InvariantOutput* inout) const { |
egdaniel | 9e4d6d1 | 2014-10-15 13:49:02 -0700 | [diff] [blame] | 174 | inout->fWillUseInputColor = true; |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 175 | this->onComputeInvariantOutput(inout); |
| 176 | #ifdef SK_DEBUG |
| 177 | inout->validate(); |
| 178 | #endif |
| 179 | } |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 180 | |
bsalomon@google.com | 422e81a | 2012-10-25 14:11:03 +0000 | [diff] [blame] | 181 | /** This object, besides creating back-end-specific helper objects, is used for run-time-type- |
| 182 | identification. The factory should be an instance of templated class, |
bsalomon | b762cb5 | 2014-10-15 11:25:21 -0700 | [diff] [blame] | 183 | GrTBackendProcessorFactory. It is templated on the subclass of GrProcessor. The subclass |
| 184 | must have a nested type (or typedef) named GLProcessor which will be the subclass of |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 185 | GrGLProcessor created by the factory. |
bsalomon@google.com | ae4f96a | 2012-05-18 19:54:48 +0000 | [diff] [blame] | 186 | |
| 187 | Example: |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 188 | class MyCustomProcessor : public GrProcessor { |
bsalomon@google.com | ae4f96a | 2012-05-18 19:54:48 +0000 | [diff] [blame] | 189 | ... |
bsalomon | b762cb5 | 2014-10-15 11:25:21 -0700 | [diff] [blame] | 190 | virtual const GrBackendProcessorFactory& getFactory() const SK_OVERRIDE { |
| 191 | return GrTBackendProcessorFactory<MyCustomProcessor>::getInstance(); |
bsalomon@google.com | ae4f96a | 2012-05-18 19:54:48 +0000 | [diff] [blame] | 192 | } |
| 193 | ... |
| 194 | }; |
| 195 | */ |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 196 | virtual const GrBackendProcessorFactory& getFactory() const = 0; |
tomhudson@google.com | b88bbd2 | 2012-05-01 12:48:07 +0000 | [diff] [blame] | 197 | |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 198 | /** Human-meaningful string to identify this prcoessor; may be embedded |
twiz@google.com | a5e65ec | 2012-08-02 15:15:16 +0000 | [diff] [blame] | 199 | in generated shader code. */ |
bsalomon@google.com | 2eaaefd | 2012-10-29 19:51:22 +0000 | [diff] [blame] | 200 | const char* name() const; |
bsalomon@google.com | 289efe0 | 2012-05-21 20:57:59 +0000 | [diff] [blame] | 201 | |
bsalomon@google.com | 50db75c | 2013-01-11 13:54:30 +0000 | [diff] [blame] | 202 | int numTextures() const { return fTextureAccesses.count(); } |
tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 203 | |
bsalomon@google.com | 6d003d1 | 2012-09-11 15:45:20 +0000 | [diff] [blame] | 204 | /** Returns the access pattern for the texture at index. index must be valid according to |
| 205 | numTextures(). */ |
bsalomon@google.com | 50db75c | 2013-01-11 13:54:30 +0000 | [diff] [blame] | 206 | const GrTextureAccess& textureAccess(int index) const { return *fTextureAccesses[index]; } |
bsalomon@google.com | 6d003d1 | 2012-09-11 15:45:20 +0000 | [diff] [blame] | 207 | |
| 208 | /** Shortcut for textureAccess(index).texture(); */ |
| 209 | GrTexture* texture(int index) const { return this->textureAccess(index).getTexture(); } |
twiz@google.com | a5e65ec | 2012-08-02 15:15:16 +0000 | [diff] [blame] | 210 | |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 211 | /** Will this processor read the fragment position? */ |
commit-bot@chromium.org | 8d47ddc | 2013-05-09 14:55:46 +0000 | [diff] [blame] | 212 | bool willReadFragmentPosition() const { return fWillReadFragmentPosition; } |
commit-bot@chromium.org | ff6ea26 | 2013-03-12 12:26:08 +0000 | [diff] [blame] | 213 | |
tomhudson@google.com | dcba4c2 | 2012-07-24 21:36:16 +0000 | [diff] [blame] | 214 | void* operator new(size_t size); |
| 215 | void operator delete(void* target); |
| 216 | |
bsalomon@google.com | d42aca3 | 2013-04-23 15:37:27 +0000 | [diff] [blame] | 217 | void* operator new(size_t size, void* placement) { |
| 218 | return ::operator new(size, placement); |
| 219 | } |
| 220 | void operator delete(void* target, void* placement) { |
| 221 | ::operator delete(target, placement); |
| 222 | } |
| 223 | |
joshualitt | 49586be | 2014-09-16 08:21:41 -0700 | [diff] [blame] | 224 | /** |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 225 | * Helper for down-casting to a GrProcessor subclass |
joshualitt | 49586be | 2014-09-16 08:21:41 -0700 | [diff] [blame] | 226 | */ |
| 227 | template <typename T> const T& cast() const { return *static_cast<const T*>(this); } |
| 228 | |
bsalomon@google.com | 50db75c | 2013-01-11 13:54:30 +0000 | [diff] [blame] | 229 | protected: |
bsalomon | 420d7e9 | 2014-10-16 09:18:09 -0700 | [diff] [blame] | 230 | GrProcessor() : fWillReadFragmentPosition(false) {} |
| 231 | |
bsalomon@google.com | 50db75c | 2013-01-11 13:54:30 +0000 | [diff] [blame] | 232 | /** |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 233 | * Subclasses call this from their constructor to register GrTextureAccesses. The processor |
commit-bot@chromium.org | 91a798f | 2013-09-06 15:31:06 +0000 | [diff] [blame] | 234 | * subclass manages the lifetime of the accesses (this function only stores a pointer). The |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 235 | * GrTextureAccess is typically a member field of the GrProcessor subclass. This must only be |
| 236 | * called from the constructor because GrProcessors are immutable. |
bsalomon@google.com | 50db75c | 2013-01-11 13:54:30 +0000 | [diff] [blame] | 237 | */ |
| 238 | void addTextureAccess(const GrTextureAccess* textureAccess); |
| 239 | |
bsalomon | 420d7e9 | 2014-10-16 09:18:09 -0700 | [diff] [blame] | 240 | bool hasSameTextureAccesses(const GrProcessor&) const; |
commit-bot@chromium.org | 8d47ddc | 2013-05-09 14:55:46 +0000 | [diff] [blame] | 241 | |
| 242 | /** |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 243 | * If the prcoessor will generate a backend-specific processor that will read the fragment |
| 244 | * position in the FS then it must call this method from its constructor. Otherwise, the |
| 245 | * request to access the fragment position will be denied. |
commit-bot@chromium.org | 8d47ddc | 2013-05-09 14:55:46 +0000 | [diff] [blame] | 246 | */ |
| 247 | void setWillReadFragmentPosition() { fWillReadFragmentPosition = true; } |
bsalomon@google.com | 26e18b5 | 2013-03-29 19:22:36 +0000 | [diff] [blame] | 248 | |
bsalomon | 0e08fc1 | 2014-10-15 08:19:04 -0700 | [diff] [blame] | 249 | private: |
bsalomon@google.com | 68b58c9 | 2013-01-17 16:50:08 +0000 | [diff] [blame] | 250 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 251 | /** |
| 252 | * Subclass implements this to support getConstantColorComponents(...). |
| 253 | */ |
| 254 | virtual void onComputeInvariantOutput(InvariantOutput* inout) const = 0; |
bsalomon@google.com | 0ac6af4 | 2013-01-16 15:16:18 +0000 | [diff] [blame] | 255 | |
commit-bot@chromium.org | ff6ea26 | 2013-03-12 12:26:08 +0000 | [diff] [blame] | 256 | SkSTArray<4, const GrTextureAccess*, true> fTextureAccesses; |
commit-bot@chromium.org | 8d47ddc | 2013-05-09 14:55:46 +0000 | [diff] [blame] | 257 | bool fWillReadFragmentPosition; |
bsalomon@google.com | 0ac6af4 | 2013-01-16 15:16:18 +0000 | [diff] [blame] | 258 | |
bsalomon | 9574098 | 2014-09-04 13:12:37 -0700 | [diff] [blame] | 259 | typedef GrProgramElement INHERITED; |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 260 | }; |
| 261 | |
bsalomon | 98b33eb | 2014-10-15 11:05:26 -0700 | [diff] [blame] | 262 | |
| 263 | /** |
| 264 | * This creates a processor outside of the memory pool. The processor's destructor will be called |
| 265 | * at global destruction time. NAME will be the name of the created instance. |
| 266 | */ |
| 267 | #define GR_CREATE_STATIC_PROCESSOR(NAME, PROC_CLASS, ARGS) \ |
| 268 | static SkAlignedSStorage<sizeof(PROC_CLASS)> g_##NAME##_Storage; \ |
| 269 | static PROC_CLASS* NAME SkNEW_PLACEMENT_ARGS(g_##NAME##_Storage.get(), PROC_CLASS, ARGS); \ |
| 270 | static SkAutoTDestroy<GrProcessor> NAME##_ad(NAME); |
| 271 | |
tomhudson@google.com | 168e634 | 2012-04-18 17:49:20 +0000 | [diff] [blame] | 272 | #endif |