blob: 6220efafe4cda74e8601056edf9c6553e9aeb605 [file] [log] [blame]
reed@google.comac10a2d2010-12-22 21:39:39 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * Copyright 2011 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.
reed@google.comac10a2d2010-12-22 21:39:39 +00006 */
7
8
epoger@google.comec3ed6a2011-07-28 14:26:00 +00009
reed@google.comac10a2d2010-12-22 21:39:39 +000010#ifndef GrGpuGL_DEFINED
11#define GrGpuGL_DEFINED
12
bsalomon@google.comc1d2a582012-06-01 15:08:19 +000013#include "GrBinHashKey.h"
tomhudson@google.comd8f856c2012-05-10 12:13:36 +000014#include "GrDrawState.h"
15#include "GrGpu.h"
bsalomon@google.com89ec61e2012-02-10 20:05:18 +000016#include "GrGLContextInfo.h"
bsalomon@google.com4043ae22011-08-02 14:19:11 +000017#include "GrGLIndexBuffer.h"
bsalomon@google.com81c3f8d2011-08-03 15:18:33 +000018#include "GrGLIRect.h"
bsalomon@google.com5739d2c2012-05-31 15:07:19 +000019#include "GrGLProgram.h"
bsalomon@google.com81c3f8d2011-08-03 15:18:33 +000020#include "GrGLStencilBuffer.h"
21#include "GrGLTexture.h"
22#include "GrGLVertexBuffer.h"
bsalomon@google.comc1d2a582012-06-01 15:08:19 +000023#include "../GrTHashCache.h"
reed@google.comac10a2d2010-12-22 21:39:39 +000024
25class GrGpuGL : public GrGpu {
26public:
bsalomon@google.com5739d2c2012-05-31 15:07:19 +000027 GrGpuGL(const GrGLContextInfo& ctxInfo);
reed@google.comac10a2d2010-12-22 21:39:39 +000028 virtual ~GrGpuGL();
29
bsalomon@google.com89ec61e2012-02-10 20:05:18 +000030 const GrGLInterface* glInterface() const {
31 return fGLContextInfo.interface();
32 }
tomhudson@google.comdd182cb2012-02-10 21:01:00 +000033 GrGLBinding glBinding() const { return fGLContextInfo.binding(); }
34 GrGLVersion glVersion() const { return fGLContextInfo.version(); }
35 GrGLSLGeneration glslGeneration() const {
bsalomon@google.com89ec61e2012-02-10 20:05:18 +000036 return fGLContextInfo.glslGeneration();
37 }
bsalomon@google.com0b77d682011-08-19 13:28:54 +000038
bsalomon@google.com56d11e02011-11-30 19:59:08 +000039 // GrGpu overrides
bsalomon@google.com0a97be22011-11-08 19:20:57 +000040 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig config)
bsalomon@google.com56d11e02011-11-30 19:59:08 +000041 const SK_OVERRIDE;
bsalomon@google.coma85449d2011-11-19 02:36:05 +000042 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig config)
bsalomon@google.com56d11e02011-11-30 19:59:08 +000043 const SK_OVERRIDE;
bsalomon@google.comc4364992011-11-07 15:54:49 +000044 virtual bool readPixelsWillPayForYFlip(
45 GrRenderTarget* renderTarget,
46 int left, int top,
47 int width, int height,
48 GrPixelConfig config,
bsalomon@google.com56d11e02011-11-30 19:59:08 +000049 size_t rowBytes) const SK_OVERRIDE;
50 virtual bool fullReadPixelsIsFasterThanPartial() const SK_OVERRIDE;
bsalomon@google.com75f9f252012-01-31 13:35:56 +000051
bsalomon@google.coma91e9232012-02-23 15:39:54 +000052 virtual bool canPreserveReadWriteUnpremulPixels() SK_OVERRIDE;
53
bsalomon@google.com5739d2c2012-05-31 15:07:19 +000054 virtual void abandonResources() SK_OVERRIDE;
55
56 bool programUnitTest();
57
bsalomon@google.com49209392012-06-05 15:13:46 +000058
bsalomon@google.com88939ae2011-12-14 15:58:11 +000059protected:
bsalomon@google.com1c13c962011-02-14 16:51:21 +000060 // GrGpu overrides
bsalomon@google.com1bf1c212011-11-05 12:18:58 +000061 virtual void onResetContext() SK_OVERRIDE;
bsalomon@google.coma7f84e12011-03-10 14:13:19 +000062
bsalomon@google.comfea37b52011-04-25 15:51:06 +000063 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc,
bsalomon@google.combcdbbe62011-04-12 15:40:00 +000064 const void* srcData,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000065 size_t rowBytes) SK_OVERRIDE;
bsalomon@google.combcdbbe62011-04-12 15:40:00 +000066 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000067 bool dynamic) SK_OVERRIDE;
bsalomon@google.combcdbbe62011-04-12 15:40:00 +000068 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000069 bool dynamic) SK_OVERRIDE;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000070 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE;
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000071 virtual GrTexture* onCreatePlatformTexture(
72 const GrPlatformTextureDesc& desc) SK_OVERRIDE;
73 virtual GrRenderTarget* onCreatePlatformRenderTarget(
74 const GrPlatformRenderTargetDesc& desc) SK_OVERRIDE;
bsalomon@google.com81c3f8d2011-08-03 15:18:33 +000075 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000076 int width,
77 int height) SK_OVERRIDE;
78 virtual bool attachStencilBufferToRenderTarget(
79 GrStencilBuffer* sb,
80 GrRenderTarget* rt) SK_OVERRIDE;
bsalomon@google.coma7f84e12011-03-10 14:13:19 +000081
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000082 virtual void onClear(const GrIRect* rect, GrColor color) SK_OVERRIDE;
bsalomon@google.coma7f84e12011-03-10 14:13:19 +000083
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +000084 virtual void onForceRenderTargetFlush() SK_OVERRIDE;
bsalomon@google.coma7f84e12011-03-10 14:13:19 +000085
bsalomon@google.com5877ffd2011-04-11 17:58:48 +000086 virtual bool onReadPixels(GrRenderTarget* target,
bsalomon@google.comc6980972011-11-02 19:57:21 +000087 int left, int top,
88 int width, int height,
89 GrPixelConfig,
bsalomon@google.comc4364992011-11-07 15:54:49 +000090 void* buffer,
91 size_t rowBytes,
92 bool invertY) SK_OVERRIDE;
bsalomon@google.coma7f84e12011-03-10 14:13:19 +000093
bsalomon@google.com6f379512011-11-16 20:36:03 +000094 virtual void onWriteTexturePixels(GrTexture* texture,
95 int left, int top, int width, int height,
96 GrPixelConfig config, const void* buffer,
97 size_t rowBytes) SK_OVERRIDE;
98
bsalomon@google.com75f9f252012-01-31 13:35:56 +000099 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE;
100
101
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000102 virtual void onGpuDrawIndexed(GrPrimitiveType type,
103 uint32_t startVertex,
104 uint32_t startIndex,
105 uint32_t vertexCount,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +0000106 uint32_t indexCount) SK_OVERRIDE;
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000107 virtual void onGpuDrawNonIndexed(GrPrimitiveType type,
108 uint32_t vertexCount,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +0000109 uint32_t numVertices) SK_OVERRIDE;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000110 virtual void onGpuStencilPath(const GrPath&, GrPathFill) SK_OVERRIDE;
robertphillips@google.com730ebe52012-04-16 16:33:13 +0000111
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +0000112 virtual void clearStencil() SK_OVERRIDE;
113 virtual void clearStencilClip(const GrIRect& rect,
114 bool insideClip) SK_OVERRIDE;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000115 virtual bool flushGraphicsState(DrawType) SK_OVERRIDE;
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000116 virtual void setupGeometry(int* startVertex,
117 int* startIndex,
118 int vertexCount,
119 int indexCount) SK_OVERRIDE;
120
bsalomon@google.com49209392012-06-05 15:13:46 +0000121private:
122
123 const GrGLCaps& glCaps() const { return fGLContextInfo.caps(); }
bsalomon@google.com5782d712011-01-21 21:03:59 +0000124
bsalomon@google.com1c13c962011-02-14 16:51:21 +0000125 // binds texture unit in GL
bsalomon@google.com8531c1c2011-01-13 19:52:45 +0000126 void setTextureUnit(int unitIdx);
reed@google.comac10a2d2010-12-22 21:39:39 +0000127
bsalomon@google.com1c13c962011-02-14 16:51:21 +0000128 // binds appropriate vertex and index buffers, also returns any extra
129 // extra verts or indices to offset by.
130 void setBuffers(bool indexed,
131 int* extraVertexOffset,
132 int* extraIndexOffset);
bsalomon@google.com7acdb8e2011-02-11 14:07:02 +0000133
bsalomon@google.com86c1f712011-10-12 14:54:26 +0000134 // Subclasses should call this to flush the blend state.
135 // The params should be the final coeffecients to apply
136 // (after any blending optimizations or dual source blending considerations
137 // have been accounted for).
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000138 void flushBlend(bool isLines,
bsalomon@google.com271cffc2011-05-20 14:13:56 +0000139 GrBlendCoeff srcCoeff,
140 GrBlendCoeff dstCoeff);
141
bsalomon@google.com89ec61e2012-02-10 20:05:18 +0000142 bool hasExtension(const char* ext) const {
143 return fGLContextInfo.hasExtension(ext);
bsalomon@google.com96399942012-02-13 14:39:16 +0000144 }
145
146 const GrGLContextInfo& glContextInfo() const { return fGLContextInfo; }
bsalomon@google.com2c17fcd2011-07-06 17:47:02 +0000147
bsalomon@google.com99621082011-11-15 16:47:16 +0000148 // adjusts texture matrix to account for orientation
bsalomon@google.comc6cf7232011-02-17 16:43:10 +0000149 static void AdjustTextureMatrix(const GrGLTexture* texture,
bsalomon@google.comc6cf7232011-02-17 16:43:10 +0000150 GrMatrix* matrix);
bsalomon@google.com88939ae2011-12-14 15:58:11 +0000151
152 // subclass may try to take advantage of identity tex matrices.
153 // This helper determines if matrix will be identity after all
154 // adjustments are applied.
155 static bool TextureMatrixIsIdentity(const GrGLTexture* texture,
156 const GrSamplerState& sampler);
157
bsalomon@google.com271cffc2011-05-20 14:13:56 +0000158 static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff);
bsalomon@google.com080773c2011-03-15 19:09:25 +0000159
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000160 // for readability of function impls
161 typedef GrGLProgram::ProgramDesc ProgramDesc;
162 typedef ProgramDesc::StageDesc StageDesc;
163 typedef GrGLProgram::CachedData CachedData;
164
bsalomon@google.comc1d2a582012-06-01 15:08:19 +0000165 class ProgramCache : public ::GrNoncopyable {
166 public:
167 ProgramCache(const GrGLContextInfo& gl);
168 ~ProgramCache();
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000169
bsalomon@google.comc1d2a582012-06-01 15:08:19 +0000170 void abandon();
bsalomon@google.comc1d2a582012-06-01 15:08:19 +0000171 CachedData* getProgramData(const GrGLProgram& desc,
172 GrCustomStage** stages);
173 private:
174 enum {
175 kKeySize = GrGLProgram::kProgramKeySize,
176 // We may actually have kMaxEntries+1 shaders in the GL context
177 // because we create a new shader before evicting from the cache.
178 kMaxEntries = 32
179 };
180
181 class Entry;
182 typedef GrBinHashKey<Entry, kKeySize> ProgramHashKey;
183
184 class Entry : public ::GrNoncopyable {
185 public:
186 Entry() {}
187 void copyAndTakeOwnership(Entry& entry);
188 int compare(const ProgramHashKey& key) const {
189 return fKey.compare(key);
190 }
191
192 public:
193 CachedData fProgramData;
194 ProgramHashKey fKey;
195 unsigned int fLRUStamp;
196 };
197
198 GrTHashTable<Entry, ProgramHashKey, 8> fHashCache;
199
200 Entry fEntries[kMaxEntries];
201 int fCount;
202 unsigned int fCurrLRUStamp;
203 const GrGLContextInfo& fGL;
204 };
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000205
bsalomon@google.com4c883782012-06-04 19:05:11 +0000206 // binds the texture and sets its texture params
bsalomon@google.coma3201942012-06-21 19:58:20 +0000207 // This may also perform a downsample on the src texture which may or may
208 // not modify the scissor test and rect. So in flushGraphicsState a
209 // call to flushScissor must occur after all textures have been flushed via
210 // this function.
bsalomon@google.com4c883782012-06-04 19:05:11 +0000211 void flushBoundTextureAndParams(int stage);
212
bsalomon@google.com890e3b52012-06-01 19:01:37 +0000213 // sets the texture matrix and domain for the currently bound program
214 void flushTextureMatrixAndDomain(int stage);
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000215
216 // sets the color specified by GrDrawState::setColor()
217 void flushColor(GrColor color);
218
219 // sets the color specified by GrDrawState::setCoverage()
220 void flushCoverage(GrColor color);
221
222 // sets the MVP matrix uniform for currently bound program
223 void flushViewMatrix();
224
225 // flushes the parameters to two point radial gradient
226 void flushRadial2(int stage);
227
228 // flushes the parameters for convolution
229 void flushConvolution(int stage);
230
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000231 // flushes the color matrix
232 void flushColorMatrix();
233
bsalomon@google.comc96cb3a2012-06-04 19:31:00 +0000234 // flushes dithering, color-mask, and face culling stat
235 void flushMiscFixedFunctionState();
236
bsalomon@google.coma3201942012-06-21 19:58:20 +0000237 // flushes the scissor. see the note on flushBoundTextureAndParams about
238 // flushing the scissor after that function is called.
239 void flushScissor();
240
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000241 static void DeleteProgram(const GrGLInterface* gl,
242 CachedData* programData);
243
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000244 void buildProgram(bool isPoints,
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000245 BlendOptFlags blendOpts,
246 GrBlendCoeff dstCoeff,
247 GrCustomStage** customStages);
248
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000249 // Inits GrDrawTarget::Caps, sublcass may enable additional caps.
bsalomon@google.com18c9c192011-09-22 21:01:31 +0000250 void initCaps();
251
252 void initFSAASupport();
bsalomon@google.com6aa25c32011-04-27 19:55:29 +0000253
bsalomon@google.com2c17fcd2011-07-06 17:47:02 +0000254 // determines valid stencil formats
bsalomon@google.com18c9c192011-09-22 21:01:31 +0000255 void initStencilFormats();
bsalomon@google.com2c17fcd2011-07-06 17:47:02 +0000256
reed@google.comac10a2d2010-12-22 21:39:39 +0000257 // notify callbacks to update state tracking when related
258 // objects are bound to GL or deleted outside of the class
259 void notifyVertexBufferBind(const GrGLVertexBuffer* buffer);
260 void notifyVertexBufferDelete(const GrGLVertexBuffer* buffer);
261 void notifyIndexBufferBind(const GrGLIndexBuffer* buffer);
262 void notifyIndexBufferDelete(const GrGLIndexBuffer* buffer);
reed@google.comac10a2d2010-12-22 21:39:39 +0000263 void notifyTextureDelete(GrGLTexture* texture);
264 void notifyRenderTargetDelete(GrRenderTarget* renderTarget);
bsalomon@google.com5782d712011-01-21 21:03:59 +0000265
bsalomon@google.com8531c1c2011-01-13 19:52:45 +0000266 void setSpareTextureUnit();
reed@google.comac10a2d2010-12-22 21:39:39 +0000267
bsalomon@google.com8295dc12011-05-02 12:53:34 +0000268 // bound is region that may be modified and therefore has to be resolved.
269 // NULL means whole target. Can be an empty rect.
270 void flushRenderTarget(const GrIRect* bound);
reed@google.comac10a2d2010-12-22 21:39:39 +0000271 void flushStencil();
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000272 void flushAAState(bool isLines);
bsalomon@google.com0650e812011-04-08 18:07:53 +0000273
bsalomon@google.com280e99f2012-01-05 16:17:38 +0000274 bool configToGLFormats(GrPixelConfig config,
275 bool getSizedInternal,
276 GrGLenum* internalFormat,
277 GrGLenum* externalFormat,
278 GrGLenum* externalType);
bsalomon@google.com6f379512011-11-16 20:36:03 +0000279 // helper for onCreateTexture and writeTexturePixels
bsalomon@google.com136f55b2011-11-28 18:34:44 +0000280 bool uploadTexData(const GrGLTexture::Desc& desc,
bsalomon@google.com1e0e6072011-11-28 18:49:37 +0000281 bool isNewTexture,
bsalomon@google.com6f379512011-11-16 20:36:03 +0000282 int left, int top, int width, int height,
283 GrPixelConfig dataConfig,
284 const void* data,
285 size_t rowBytes);
bsalomon@google.com0650e812011-04-08 18:07:53 +0000286
bsalomon@google.com81c3f8d2011-08-03 15:18:33 +0000287 bool createRenderTargetObjects(int width, int height,
288 GrGLuint texID,
289 GrGLRenderTarget::Desc* desc);
290
robertphillips@google.com99a5ac02012-04-10 19:26:38 +0000291 void fillInConfigRenderableTable();
292
reed@google.comac10a2d2010-12-22 21:39:39 +0000293 friend class GrGLVertexBuffer;
294 friend class GrGLIndexBuffer;
295 friend class GrGLTexture;
296 friend class GrGLRenderTarget;
297
bsalomon@google.com89ec61e2012-02-10 20:05:18 +0000298 GrGLContextInfo fGLContextInfo;
bsalomon@google.com2c17fcd2011-07-06 17:47:02 +0000299
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000300 // GL program-related state
301 ProgramCache* fProgramCache;
302 CachedData* fProgramData;
bsalomon@google.com49209392012-06-05 15:13:46 +0000303 GrGLProgram fCurrentProgram;
304
305 ///////////////////////////////////////////////////////////////////////////
306 ///@name Caching of GL State
307 ///@{
308 int fHWActiveTextureUnitIdx;
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000309 GrGLuint fHWProgramID;
310 GrColor fHWConstAttribColor;
311 GrColor fHWConstAttribCoverage;
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000312
bsalomon@google.com49209392012-06-05 15:13:46 +0000313 enum TriState {
314 kNo_TriState,
315 kYes_TriState,
316 kUnknown_TriState
317 };
318
bsalomon@google.coma3201942012-06-21 19:58:20 +0000319 // last scissor / viewport scissor state seen by the GL.
320 struct {
321 TriState fEnabled;
322 GrGLIRect fRect;
323 void invalidate() {
324 fEnabled = kUnknown_TriState;
325 fRect.invalidate();
326 }
327 } fHWScissorSettings;
328
329 GrGLIRect fHWViewport;
330
bsalomon@google.com49209392012-06-05 15:13:46 +0000331 struct {
332 size_t fVertexOffset;
333 GrVertexLayout fVertexLayout;
334 const GrVertexBuffer* fVertexBuffer;
335 const GrIndexBuffer* fIndexBuffer;
336 bool fArrayPtrsDirty;
337 } fHWGeometryState;
bsalomon@google.com5782d712011-01-21 21:03:59 +0000338
bsalomon@google.coma4d8fc22012-05-21 13:21:46 +0000339 struct {
340 GrBlendCoeff fSrcCoeff;
341 GrBlendCoeff fDstCoeff;
342 GrColor fConstColor;
343 bool fConstColorValid;
344 TriState fEnabled;
345
346 void invalidate() {
bsalomon@google.com47059542012-06-06 20:51:20 +0000347 fSrcCoeff = kInvalid_GrBlendCoeff;
348 fDstCoeff = kInvalid_GrBlendCoeff;
bsalomon@google.coma4d8fc22012-05-21 13:21:46 +0000349 fConstColorValid = false;
350 fEnabled = kUnknown_TriState;
351 }
352 } fHWBlendState;
353
bsalomon@google.com4d5f3fe2012-05-21 17:11:44 +0000354 struct {
355 TriState fMSAAEnabled;
356 TriState fSmoothLineEnabled;
357 void invalidate() {
358 fMSAAEnabled = kUnknown_TriState;
359 fSmoothLineEnabled = kUnknown_TriState;
360 }
361 } fHWAAState;
362
bsalomon@google.coma3201942012-06-21 19:58:20 +0000363 GrStencilSettings fHWStencilSettings;
364 TriState fHWStencilTestEnabled;
bsalomon@google.com457b8a32012-05-21 21:19:58 +0000365
bsalomon@google.comc811ea32012-05-21 15:33:09 +0000366 GrDrawState::DrawFace fHWDrawFace;
367 TriState fHWWriteToColor;
368 TriState fHWDitherEnabled;
369 GrRenderTarget* fHWBoundRenderTarget;
370 GrTexture* fHWBoundTextures[GrDrawState::kNumStages];
bsalomon@google.com49209392012-06-05 15:13:46 +0000371 ///@}
bsalomon@google.com978c8c62012-05-21 14:45:49 +0000372
bsalomon@google.comfe676522011-06-17 18:12:21 +0000373 // we record what stencil format worked last time to hopefully exit early
374 // from our loop that tries stencil formats and calls check fb status.
375 int fLastSuccessfulStencilFmtIdx;
376
bsalomon@google.com49209392012-06-05 15:13:46 +0000377 enum UnpremulConversion {
378 kUpOnWrite_DownOnRead_UnpremulConversion,
379 kDownOnWrite_UpOnRead_UnpremulConversion
380 } fUnpremulConversion;
381
bsalomon@google.coma91e9232012-02-23 15:39:54 +0000382 enum CanPreserveUnpremulRoundtrip {
383 kUnknown_CanPreserveUnpremulRoundtrip,
384 kNo_CanPreserveUnpremulRoundtrip,
385 kYes_CanPreserveUnpremulRoundtrip,
386 } fCanPreserveUnpremulRoundtrip;
bsalomon@google.com0b77d682011-08-19 13:28:54 +0000387
bsalomon@google.com18c9c192011-09-22 21:01:31 +0000388 bool fPrintedCaps;
389
reed@google.comac10a2d2010-12-22 21:39:39 +0000390 typedef GrGpu INHERITED;
391};
392
bsalomon@google.coma7f84e12011-03-10 14:13:19 +0000393#endif
bsalomon@google.comfe676522011-06-17 18:12:21 +0000394