blob: f8b336d9fb6d1c5607f4c724c8f2474ff9c3c467 [file] [log] [blame]
tomhudson@google.com168e6342012-04-18 17:49:20 +00001/*
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
joshualittb0a8a372014-09-23 09:50:21 -07008#ifndef GrProcessor_DEFINED
9#define GrProcessor_DEFINED
tomhudson@google.com168e6342012-04-18 17:49:20 +000010
Brian Salomon0c26a9d2017-07-06 10:09:38 -040011#include "../private/SkAtomics.h"
Brian Salomonb014cca2016-11-18 11:39:15 -050012#include "GrBuffer.h"
Brian Salomon0c26a9d2017-07-06 10:09:38 -040013#include "GrColor.h"
Brian Salomonb014cca2016-11-18 11:39:15 -050014#include "GrGpuResourceRef.h"
joshualittb0a8a372014-09-23 09:50:21 -070015#include "GrProcessorUnitTest.h"
bsalomon95740982014-09-04 13:12:37 -070016#include "GrProgramElement.h"
Brian Salomon2bbdcc42017-09-07 12:36:34 -040017#include "GrSamplerState.h"
Brian Salomonf9f45122016-11-29 11:59:17 -050018#include "GrShaderVar.h"
Robert Phillips8a02f652017-05-12 14:49:16 -040019#include "GrSurfaceProxyPriv.h"
Robert Phillips62000362018-02-01 09:10:04 -050020#include "GrSurfaceProxyRef.h"
Brian Salomon0c26a9d2017-07-06 10:09:38 -040021#include "GrTextureProxy.h"
egdaniel9e4d6d12014-10-15 13:49:02 -070022#include "SkMath.h"
robertphillipse004bfc2015-11-16 09:06:59 -080023#include "SkString.h"
tomhudson@google.com07eecdc2012-04-20 18:35:38 +000024
tomhudson@google.com168e6342012-04-18 17:49:20 +000025class GrContext;
bsalomon@google.com77af6802013-10-02 13:04:56 +000026class GrCoordTransform;
egdaniel605dd0f2014-11-12 08:35:25 -080027class GrInvariantOutput;
Brian Osman32342f02017-03-04 08:12:46 -050028class GrResourceProvider;
bsalomon95740982014-09-04 13:12:37 -070029
joshualitteb2a6762014-12-04 11:35:33 -080030/**
31 * Used by processors to build their keys. It incorporates each per-processor key into a larger
32 * shader key.
33 */
34class GrProcessorKeyBuilder {
35public:
36 GrProcessorKeyBuilder(SkTArray<unsigned char, true>* data) : fData(data), fCount(0) {
37 SkASSERT(0 == fData->count() % sizeof(uint32_t));
38 }
39
40 void add32(uint32_t v) {
41 ++fCount;
42 fData->push_back_n(4, reinterpret_cast<uint8_t*>(&v));
43 }
44
45 /** Inserts count uint32_ts into the key. The returned pointer is only valid until the next
46 add*() call. */
47 uint32_t* SK_WARN_UNUSED_RESULT add32n(int count) {
48 SkASSERT(count > 0);
49 fCount += count;
50 return reinterpret_cast<uint32_t*>(fData->push_back_n(4 * count));
51 }
52
53 size_t size() const { return sizeof(uint32_t) * fCount; }
54
55private:
56 SkTArray<uint8_t, true>* fData; // unowned ptr to the larger key.
57 int fCount; // number of uint32_ts added to fData by the processor.
58};
59
bsalomon98b33eb2014-10-15 11:05:26 -070060/** Provides custom shader code to the Ganesh shading pipeline. GrProcessor objects *must* be
61 immutable: after being constructed, their fields may not change.
bsalomon@google.com0ac6af42013-01-16 15:16:18 +000062
joshualittb0a8a372014-09-23 09:50:21 -070063 Dynamically allocated GrProcessors are managed by a per-thread memory pool. The ref count of an
mdempsky38f1f6f2015-08-27 12:57:01 -070064 processor must reach 0 before the thread terminates and the pool is destroyed.
bsalomon98b33eb2014-10-15 11:05:26 -070065 */
Brian Salomond61c9d92017-04-10 10:54:25 -040066class GrProcessor {
tomhudson@google.com168e6342012-04-18 17:49:20 +000067public:
Ethan Nicholasabff9562017-10-09 10:54:08 -040068 enum ClassID {
Ethan Nicholasabff9562017-10-09 10:54:08 -040069 kBigKeyProcessor_ClassID,
70 kBlockInputFragmentProcessor_ClassID,
Brian Salomon62e4f3d2018-04-20 13:54:11 -040071 kButtCapStrokedCircleGeometryProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040072 kCircleGeometryProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040073 kCircularRRectEffect_ClassID,
74 kColorMatrixEffect_ClassID,
75 kColorTableEffect_ClassID,
76 kComposeOneFragmentProcessor_ClassID,
77 kComposeTwoFragmentProcessor_ClassID,
78 kCoverageSetOpXP_ClassID,
79 kCustomXP_ClassID,
80 kDashingCircleEffect_ClassID,
81 kDashingLineEffect_ClassID,
82 kDefaultGeoProc_ClassID,
83 kDIEllipseGeometryProcessor_ClassID,
84 kDisableColorXP_ClassID,
Yuqian Li915817b2017-12-14 13:45:08 -050085 kTwoPointConicalEffect_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040086 kEllipseGeometryProcessor_ClassID,
87 kEllipticalRRectEffect_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040088 kGP_ClassID,
Ethan Nicholas8dca18a2017-11-15 15:33:33 -050089 kGrAARectEffect_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040090 kGrAlphaThresholdFragmentProcessor_ClassID,
Ethan Nicholasc9472af2017-10-10 16:30:21 -040091 kGrArithmeticFP_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040092 kGrBicubicEffect_ClassID,
93 kGrBitmapTextGeoProc_ClassID,
94 kGrBlurredEdgeFragmentProcessor_ClassID,
Chris Dalton383a2ef2018-01-08 17:21:41 -050095 kGrCCClipProcessor_ClassID,
96 kGrCCCoverageProcessor_ClassID,
97 kGrCCPathProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -040098 kGrCircleBlurFragmentProcessor_ClassID,
99 kGrCircleEffect_ClassID,
Brian Osmanc4f93ca2017-10-17 17:15:52 -0400100 kGrColorSpaceXformEffect_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400101 kGrConfigConversionEffect_ClassID,
102 kGrConicEffect_ClassID,
103 kGrConstColorProcessor_ClassID,
104 kGrConvexPolyEffect_ClassID,
105 kGrCubicEffect_ClassID,
106 kGrDeviceSpaceTextureDecalFragmentProcessor_ClassID,
107 kGrDiffuseLightingEffect_ClassID,
108 kGrDisplacementMapEffect_ClassID,
109 kGrDistanceFieldA8TextGeoProc_ClassID,
110 kGrDistanceFieldLCDTextGeoProc_ClassID,
111 kGrDistanceFieldPathGeoProc_ClassID,
112 kGrDitherEffect_ClassID,
113 kGrEllipseEffect_ClassID,
114 kGrGaussianConvolutionFragmentProcessor_ClassID,
115 kGrImprovedPerlinNoiseEffect_ClassID,
116 kGrLightingEffect_ClassID,
117 kGrLinearGradient_ClassID,
Ethan Nicholas14efcbf2017-11-07 09:23:38 -0500118 kGrLumaColorFilterEffect_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400119 kGrMagnifierEffect_ClassID,
120 kGrMatrixConvolutionEffect_ClassID,
121 kGrMeshTestProcessor_ClassID,
122 kGrMorphologyEffect_ClassID,
Ethan Nicholasd608c092017-10-26 09:30:08 -0400123 kGrOverdrawFragmentProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400124 kGrPathProcessor_ClassID,
125 kGrPerlinNoise2Effect_ClassID,
126 kGrPipelineDynamicStateTestProcessor_ClassID,
Ethan Nicholasbe0a0422017-11-17 13:44:05 -0500127 kGrPremulInputFragmentProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400128 kGrQuadEffect_ClassID,
129 kGrRadialGradient_ClassID,
130 kGrRectBlurEffect_ClassID,
131 kGrRRectBlurEffect_ClassID,
132 kGrRRectShadowGeoProc_ClassID,
133 kGrSimpleTextureEffect_ClassID,
134 kGrSpecularLightingEffect_ClassID,
135 kGrSRGBEffect_ClassID,
136 kGrSweepGradient_ClassID,
137 kGrTextureDomainEffect_ClassID,
Ethan Nicholasbe0a0422017-11-17 13:44:05 -0500138 kGrUnpremulInputFragmentProcessor_ClassID,
Ethan Nicholas7461a4a2017-12-21 14:18:01 -0500139 kGrYUVtoRGBEffect_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400140 kHighContrastFilterEffect_ClassID,
141 kInstanceProcessor_ClassID,
Brian Salomon2a943df2018-05-04 13:43:19 -0400142 kLatticeGP_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400143 kLumaColorFilterEffect_ClassID,
144 kMSAAQuadProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400145 kPDLCDXferProcessor_ClassID,
146 kPorterDuffXferProcessor_ClassID,
147 kPremulFragmentProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400148 kQuadEdgeEffect_ClassID,
149 kReplaceInputFragmentProcessor_ClassID,
150 kRRectsGaussianEdgeFP_ClassID,
151 kSeriesFragmentProcessor_ClassID,
152 kShaderPDXferProcessor_ClassID,
153 kSwizzleFragmentProcessor_ClassID,
154 kTestFP_ClassID,
155 kTextureGeometryProcessor_ClassID,
Ethan Nicholasabff9562017-10-09 10:54:08 -0400156 };
157
Brian Salomonab015ef2017-04-04 10:15:51 -0400158 virtual ~GrProcessor() = default;
tomhudson@google.com168e6342012-04-18 17:49:20 +0000159
Brian Salomonb014cca2016-11-18 11:39:15 -0500160 /** Human-meaningful string to identify this prcoessor; may be embedded in generated shader
161 code. */
joshualitteb2a6762014-12-04 11:35:33 -0800162 virtual const char* name() const = 0;
bsalomon@google.com289efe02012-05-21 20:57:59 +0000163
Brian Salomonb014cca2016-11-18 11:39:15 -0500164 /** Human-readable dump of all information */
robertphillipse004bfc2015-11-16 09:06:59 -0800165 virtual SkString dumpInfo() const {
166 SkString str;
167 str.appendf("Missing data");
168 return str;
169 }
170
tomhudson@google.comdcba4c22012-07-24 21:36:16 +0000171 void* operator new(size_t size);
172 void operator delete(void* target);
173
bsalomon@google.comd42aca32013-04-23 15:37:27 +0000174 void* operator new(size_t size, void* placement) {
175 return ::operator new(size, placement);
176 }
177 void operator delete(void* target, void* placement) {
178 ::operator delete(target, placement);
179 }
180
Brian Salomonb014cca2016-11-18 11:39:15 -0500181 /** Helper for down-casting to a GrProcessor subclass */
joshualitt49586be2014-09-16 08:21:41 -0700182 template <typename T> const T& cast() const { return *static_cast<const T*>(this); }
183
Ethan Nicholasabff9562017-10-09 10:54:08 -0400184 ClassID classID() const { return fClassID; }
joshualitteb2a6762014-12-04 11:35:33 -0800185
bsalomon@google.com50db75c2013-01-11 13:54:30 +0000186protected:
Chris Dalton535ba8d2018-02-20 09:51:59 -0700187 GrProcessor(ClassID classID) : fClassID(classID) {}
bsalomon@google.com26e18b52013-03-29 19:22:36 +0000188
bsalomon0e08fc12014-10-15 08:19:04 -0700189private:
Brian Salomond61c9d92017-04-10 10:54:25 -0400190 GrProcessor(const GrProcessor&) = delete;
191 GrProcessor& operator=(const GrProcessor&) = delete;
192
Chris Dalton535ba8d2018-02-20 09:51:59 -0700193 ClassID fClassID;
tomhudson@google.com168e6342012-04-18 17:49:20 +0000194};
195
Brian Salomonab015ef2017-04-04 10:15:51 -0400196/** A GrProcessor with the ability to access textures, buffers, and image storages. */
197class GrResourceIOProcessor : public GrProcessor {
198public:
199 class TextureSampler;
200 class BufferAccess;
Brian Salomonab015ef2017-04-04 10:15:51 -0400201
202 int numTextureSamplers() const { return fTextureSamplers.count(); }
203
204 /** Returns the access pattern for the texture at index. index must be valid according to
205 numTextureSamplers(). */
206 const TextureSampler& textureSampler(int index) const { return *fTextureSamplers[index]; }
207
208 int numBuffers() const { return fBufferAccesses.count(); }
209
210 /** Returns the access pattern for the buffer at index. index must be valid according to
211 numBuffers(). */
212 const BufferAccess& bufferAccess(int index) const { return *fBufferAccesses[index]; }
213
Robert Phillips9bee2e52017-05-29 12:37:20 -0400214 bool instantiate(GrResourceProvider* resourceProvider) const;
Robert Phillipsa91e0b72017-05-01 13:12:20 -0400215
Brian Salomonab015ef2017-04-04 10:15:51 -0400216protected:
Robert Phillipsf18c7562018-06-13 09:01:36 -0400217 GrResourceIOProcessor(ClassID classID) : INHERITED(classID) {}
Brian Salomonab015ef2017-04-04 10:15:51 -0400218
219 /**
Brian Salomon559f5562017-11-15 14:28:33 -0500220 * Subclasses call these from their constructor to register sampler sources. The processor
Brian Salomonab015ef2017-04-04 10:15:51 -0400221 * subclass manages the lifetime of the objects (these functions only store pointers). The
222 * TextureSampler and/or BufferAccess instances are typically member fields of the GrProcessor
223 * subclass. These must only be called from the constructor because GrProcessors are immutable.
224 */
225 void addTextureSampler(const TextureSampler*);
226 void addBufferAccess(const BufferAccess*);
Brian Salomonab015ef2017-04-04 10:15:51 -0400227
228 bool hasSameSamplersAndAccesses(const GrResourceIOProcessor&) const;
229
Brian Salomond61c9d92017-04-10 10:54:25 -0400230 // These methods can be used by derived classes that also derive from GrProgramElement.
231 void addPendingIOs() const;
232 void removeRefs() const;
233 void pendingIOComplete() const;
Brian Salomonab015ef2017-04-04 10:15:51 -0400234
Brian Salomond61c9d92017-04-10 10:54:25 -0400235private:
Brian Salomonab015ef2017-04-04 10:15:51 -0400236 SkSTArray<4, const TextureSampler*, true> fTextureSamplers;
237 SkSTArray<1, const BufferAccess*, true> fBufferAccesses;
Brian Salomonab015ef2017-04-04 10:15:51 -0400238
239 typedef GrProcessor INHERITED;
240};
241
Brian Salomon0bbecb22016-11-17 11:38:22 -0500242/**
Brian Salomonab015ef2017-04-04 10:15:51 -0400243 * Used to represent a texture that is required by a GrResourceIOProcessor. It holds a GrTexture
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400244 * along with an associated GrSamplerState. TextureSamplers don't perform any coord manipulation to
Brian Salomonab015ef2017-04-04 10:15:51 -0400245 * account for texture origin.
Brian Salomon0bbecb22016-11-17 11:38:22 -0500246 */
Brian Salomonffc2ec42017-07-25 14:59:03 -0400247class GrResourceIOProcessor::TextureSampler {
Brian Salomon0bbecb22016-11-17 11:38:22 -0500248public:
249 /**
250 * Must be initialized before adding to a GrProcessor's texture access list.
251 */
252 TextureSampler();
Brian Salomonffc2ec42017-07-25 14:59:03 -0400253 /**
254 * This copy constructor is used by GrFragmentProcessor::clone() implementations. The copy
255 * always takes a new ref on the texture proxy as the new fragment processor will not yet be
256 * in pending execution state.
257 */
258 explicit TextureSampler(const TextureSampler& that)
259 : fProxyRef(sk_ref_sp(that.fProxyRef.get()), that.fProxyRef.ioType())
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400260 , fSamplerState(that.fSamplerState)
Brian Salomonffc2ec42017-07-25 14:59:03 -0400261 , fVisibility(that.fVisibility) {}
Brian Salomon0bbecb22016-11-17 11:38:22 -0500262
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400263 TextureSampler(sk_sp<GrTextureProxy>, const GrSamplerState&);
Brian Salomonb17e6392017-07-28 13:41:51 -0400264
Robert Phillipsfbcef6e2017-06-15 12:07:18 -0400265 explicit TextureSampler(sk_sp<GrTextureProxy>,
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400266 GrSamplerState::Filter = GrSamplerState::Filter::kNearest,
267 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp,
Robert Phillipsbc7a4fb2017-01-23 15:30:35 -0500268 GrShaderFlags visibility = kFragment_GrShaderFlag);
Brian Salomonb17e6392017-07-28 13:41:51 -0400269
270 TextureSampler& operator=(const TextureSampler&) = delete;
271
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400272 void reset(sk_sp<GrTextureProxy>, const GrSamplerState&,
Brian Salomon0bbecb22016-11-17 11:38:22 -0500273 GrShaderFlags visibility = kFragment_GrShaderFlag);
Robert Phillipsfbcef6e2017-06-15 12:07:18 -0400274 void reset(sk_sp<GrTextureProxy>,
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400275 GrSamplerState::Filter = GrSamplerState::Filter::kNearest,
276 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp,
Brian Salomon0bbecb22016-11-17 11:38:22 -0500277 GrShaderFlags visibility = kFragment_GrShaderFlag);
278
279 bool operator==(const TextureSampler& that) const {
Robert Phillips159e3c62017-06-19 12:02:00 -0400280 return this->proxy()->underlyingUniqueID() == that.proxy()->underlyingUniqueID() &&
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400281 fSamplerState == that.fSamplerState && fVisibility == that.fVisibility;
Brian Salomon0bbecb22016-11-17 11:38:22 -0500282 }
283
284 bool operator!=(const TextureSampler& other) const { return !(*this == other); }
285
Robert Phillips9bee2e52017-05-29 12:37:20 -0400286 // 'instantiate' should only ever be called at flush time.
287 bool instantiate(GrResourceProvider* resourceProvider) const {
Robert Phillips18166ee2017-06-01 12:55:44 -0400288 return SkToBool(fProxyRef.get()->instantiate(resourceProvider));
Robert Phillips9bee2e52017-05-29 12:37:20 -0400289 }
290
291 // 'peekTexture' should only ever be called after a successful 'instantiate' call
292 GrTexture* peekTexture() const {
Robert Phillips18166ee2017-06-01 12:55:44 -0400293 SkASSERT(fProxyRef.get()->priv().peekTexture());
294 return fProxyRef.get()->priv().peekTexture();
Robert Phillips9bee2e52017-05-29 12:37:20 -0400295 }
296
Robert Phillips18166ee2017-06-01 12:55:44 -0400297 GrTextureProxy* proxy() const { return fProxyRef.get()->asTextureProxy(); }
Brian Salomondb4183d2016-11-17 12:48:40 -0500298 GrShaderFlags visibility() const { return fVisibility; }
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400299 const GrSamplerState& samplerState() const { return fSamplerState; }
Brian Salomon0bbecb22016-11-17 11:38:22 -0500300
Brian Salomon06e547c2017-06-09 16:11:32 -0400301 bool isInitialized() const { return SkToBool(fProxyRef.get()); }
Brian Salomon0bbecb22016-11-17 11:38:22 -0500302 /**
303 * For internal use by GrProcessor.
304 */
Robert Phillips18166ee2017-06-01 12:55:44 -0400305 const GrSurfaceProxyRef* programProxy() const { return &fProxyRef; }
Brian Salomon0bbecb22016-11-17 11:38:22 -0500306
307private:
Brian Salomon2bbdcc42017-09-07 12:36:34 -0400308 GrSurfaceProxyRef fProxyRef;
309 GrSamplerState fSamplerState;
310 GrShaderFlags fVisibility;
Brian Salomon0bbecb22016-11-17 11:38:22 -0500311};
312
Brian Salomonb014cca2016-11-18 11:39:15 -0500313/**
Brian Salomonab015ef2017-04-04 10:15:51 -0400314 * Used to represent a texel buffer that will be read in a GrResourceIOProcessor. It holds a
315 * GrBuffer along with an associated offset and texel config.
Brian Salomonb014cca2016-11-18 11:39:15 -0500316 */
Brian Salomonb17e6392017-07-28 13:41:51 -0400317class GrResourceIOProcessor::BufferAccess {
Brian Salomonb014cca2016-11-18 11:39:15 -0500318public:
Brian Salomonbc6b99d2017-01-11 10:32:34 -0500319 BufferAccess() = default;
320 BufferAccess(GrPixelConfig texelConfig, GrBuffer* buffer,
321 GrShaderFlags visibility = kFragment_GrShaderFlag) {
322 this->reset(texelConfig, buffer, visibility);
323 }
Brian Salomonb014cca2016-11-18 11:39:15 -0500324 /**
Brian Salomonb17e6392017-07-28 13:41:51 -0400325 * This copy constructor is used by GrFragmentProcessor::clone() implementations. The copy
326 * always takes a new ref on the buffer proxy as the new fragment processor will not yet be
327 * in pending execution state.
328 */
329 explicit BufferAccess(const BufferAccess& that) {
330 this->reset(that.fTexelConfig, that.fBuffer.get(), that.fVisibility);
331 }
332
333 BufferAccess& operator=(const BufferAccess&) = delete;
334
335 /**
Brian Salomonb014cca2016-11-18 11:39:15 -0500336 * Must be initialized before adding to a GrProcessor's buffer access list.
337 */
338 void reset(GrPixelConfig texelConfig, GrBuffer* buffer,
339 GrShaderFlags visibility = kFragment_GrShaderFlag) {
340 fTexelConfig = texelConfig;
341 fBuffer.set(SkRef(buffer), kRead_GrIOType);
342 fVisibility = visibility;
343 }
344
345 bool operator==(const BufferAccess& that) const {
346 return fTexelConfig == that.fTexelConfig &&
347 this->buffer() == that.buffer() &&
348 fVisibility == that.fVisibility;
349 }
350
351 bool operator!=(const BufferAccess& that) const { return !(*this == that); }
352
353 GrPixelConfig texelConfig() const { return fTexelConfig; }
354 GrBuffer* buffer() const { return fBuffer.get(); }
355 GrShaderFlags visibility() const { return fVisibility; }
356
357 /**
358 * For internal use by GrProcessor.
359 */
Brian Salomonf9f45122016-11-29 11:59:17 -0500360 const GrGpuResourceRef* programBuffer() const { return &fBuffer;}
Brian Salomonb014cca2016-11-18 11:39:15 -0500361
362private:
Brian Salomonab015ef2017-04-04 10:15:51 -0400363 GrPixelConfig fTexelConfig;
364 GrTGpuResourceRef<GrBuffer> fBuffer;
365 GrShaderFlags fVisibility;
Brian Salomonb014cca2016-11-18 11:39:15 -0500366
367 typedef SkNoncopyable INHERITED;
368};
369
tomhudson@google.com168e6342012-04-18 17:49:20 +0000370#endif