blob: 1f7e297e516982a528b1298c63491431197aee60 [file] [log] [blame]
reed@google.comac10a2d2010-12-22 21:39:39 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * Copyright 2010 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
reed@google.comac10a2d2010-12-22 21:39:39 +00008#ifndef GrDrawTarget_DEFINED
9#define GrDrawTarget_DEFINED
10
joshualitt44701df2015-02-23 14:44:57 -080011#include "GrClip.h"
joshualitt6db519c2014-10-29 08:48:18 -070012#include "GrClipMaskManager.h"
commit-bot@chromium.org2a05de02014-03-25 15:17:32 +000013#include "GrContext.h"
joshualitt8072caa2015-02-12 14:20:52 -080014#include "GrPathProcessor.h"
15#include "GrPrimitiveProcessor.h"
bsalomon@google.com934c5702012-03-20 21:17:58 +000016#include "GrIndexBuffer.h"
kkinnunenccdaa042014-08-20 01:36:23 -070017#include "GrPathRendering.h"
egdaniel8dd688b2015-01-22 10:16:09 -080018#include "GrPipelineBuilder.h"
bsalomona387a112015-08-11 14:47:42 -070019#include "GrPipeline.h"
commit-bot@chromium.org2a05de02014-03-25 15:17:32 +000020#include "GrTraceMarker.h"
joshualitt7eb8c7b2014-11-18 14:24:27 -080021#include "GrVertexBuffer.h"
bsalomon6a44c6a2015-05-26 09:49:05 -070022#include "GrXferProcessor.h"
reed@google.comac10a2d2010-12-22 21:39:39 +000023
bsalomon@google.com8d67c072012-12-13 20:38:14 +000024#include "SkClipStack.h"
commit-bot@chromium.orga4de8c22013-09-09 13:38:37 +000025#include "SkMatrix.h"
sugoi@google.com12b4e272012-12-06 20:13:11 +000026#include "SkPath.h"
commit-bot@chromium.org9b62aa12014-03-25 11:59:40 +000027#include "SkStrokeRec.h"
robertphillips@google.coma2d71482012-08-01 20:08:47 +000028#include "SkTArray.h"
commit-bot@chromium.orga4de8c22013-09-09 13:38:37 +000029#include "SkTLazy.h"
commit-bot@chromium.orga0b40282013-09-18 13:00:55 +000030#include "SkTypes.h"
bsalomon@google.com8d67c072012-12-13 20:38:14 +000031#include "SkXfermode.h"
Scroggo97c88c22011-05-11 14:05:25 +000032
bsalomon53469832015-08-18 09:20:09 -070033class GrBatch;
joshualitt44701df2015-02-23 14:44:57 -080034class GrClip;
bsalomon4b91f762015-05-19 09:29:46 -070035class GrCaps;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000036class GrPath;
cdaltonb85a0aa2014-07-21 15:32:44 -070037class GrPathRange;
bsalomonabd30f52015-08-13 13:34:48 -070038class GrDrawBatch;
sugoi@google.com12b4e272012-12-06 20:13:11 +000039
commit-bot@chromium.orga4de8c22013-09-09 13:38:37 +000040class GrDrawTarget : public SkRefCnt {
bsalomon@google.comf6601872012-08-28 21:11:35 +000041public:
mtklein2766c002015-06-26 11:45:03 -070042
bsalomon@google.comf6601872012-08-28 21:11:35 +000043
cdalton55b24af2014-11-25 11:00:56 -080044 typedef GrPathRange::PathIndexType PathIndexType;
45 typedef GrPathRendering::PathTransformType PathTransformType;
kkinnunenccdaa042014-08-20 01:36:23 -070046
reed@google.comac10a2d2010-12-22 21:39:39 +000047 ///////////////////////////////////////////////////////////////////////////
48
bsalomon@google.com6e4e6502013-02-25 20:12:45 +000049 // The context may not be fully constructed and should not be used during GrDrawTarget
50 // construction.
bsalomon4061b122015-05-29 10:26:19 -070051 GrDrawTarget(GrGpu* gpu, GrResourceProvider*);
bsalomona73239a2015-04-28 13:35:17 -070052
bsalomon4061b122015-05-29 10:26:19 -070053 virtual ~GrDrawTarget();
reed@google.comac10a2d2010-12-22 21:39:39 +000054
55 /**
bsalomona73239a2015-04-28 13:35:17 -070056 * Empties the draw buffer of any queued up draws.
57 */
robertphillipse40d3972015-05-07 09:51:43 -070058 void reset() { this->onReset(); }
bsalomona73239a2015-04-28 13:35:17 -070059
60 /**
61 * This plays any queued up draws to its GrGpu target. It also resets this object (i.e. flushing
62 * is destructive).
63 */
64 void flush();
65
66 /**
bsalomon@google.com18c9c192011-09-22 21:01:31 +000067 * Gets the capabilities of the draw target.
68 */
bsalomon4061b122015-05-29 10:26:19 -070069 const GrCaps* caps() const { return fCaps; }
bsalomon@google.com18c9c192011-09-22 21:01:31 +000070
bsalomonabd30f52015-08-13 13:34:48 -070071 void drawBatch(const GrPipelineBuilder&, GrDrawBatch*);
joshualitt4d8da812015-01-28 12:53:54 -080072
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000073 /**
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000074 * Draws path into the stencil buffer. The fill must be either even/odd or
75 * winding (not inverse or hairline). It will respect the HW antialias flag
egdaniel8dd688b2015-01-22 10:16:09 -080076 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will never have an inverse
77 * fill with stencil path
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000078 */
joshualitt1c735482015-07-13 08:08:25 -070079 void stencilPath(const GrPipelineBuilder&, const GrPathProcessor*, const GrPath*,
egdaniel8dd688b2015-01-22 10:16:09 -080080 GrPathRendering::FillType);
bsalomon@google.com64aef2b2012-06-11 15:36:13 +000081
82 /**
commit-bot@chromium.org32184d82013-10-09 15:14:18 +000083 * Draws a path. Fill must not be a hairline. It will respect the HW
egdaniel8dd688b2015-01-22 10:16:09 -080084 * antialias flag on the GrPipelineBuilder (if possible in the 3D API).
commit-bot@chromium.orgc4dc0ad2013-10-09 14:11:33 +000085 */
joshualitt1c735482015-07-13 08:08:25 -070086 void drawPath(const GrPipelineBuilder&, const GrPathProcessor*, const GrPath*,
egdaniel8dd688b2015-01-22 10:16:09 -080087 GrPathRendering::FillType);
commit-bot@chromium.orgc4dc0ad2013-10-09 14:11:33 +000088
89 /**
cdalton55b24af2014-11-25 11:00:56 -080090 * Draws the aggregate path from combining multiple. Note that this will not
91 * always be equivalent to back-to-back calls to drawPath(). It will respect
egdaniel8dd688b2015-01-22 10:16:09 -080092 * the HW antialias flag on the GrPipelineBuilder (if possible in the 3D API).
commit-bot@chromium.org9b62aa12014-03-25 11:59:40 +000093 *
cdalton55b24af2014-11-25 11:00:56 -080094 * @param pathRange Source paths to draw from
95 * @param indices Array of path indices to draw
96 * @param indexType Data type of the array elements in indexBuffer
97 * @param transformValues Array of transforms for the individual paths
98 * @param transformType Type of transforms in transformBuffer
99 * @param count Number of paths to draw
cdaltonb85a0aa2014-07-21 15:32:44 -0700100 * @param fill Fill type for drawing all the paths
commit-bot@chromium.org9b62aa12014-03-25 11:59:40 +0000101 */
joshualitt1c735482015-07-13 08:08:25 -0700102 void drawPaths(const GrPipelineBuilder&,
joshualitt56995b52014-12-11 15:44:02 -0800103 const GrPathProcessor*,
joshualitt2e3b3e32014-12-09 13:31:14 -0800104 const GrPathRange* pathRange,
cdalton55b24af2014-11-25 11:00:56 -0800105 const void* indices,
106 PathIndexType indexType,
107 const float transformValues[],
108 PathTransformType transformType,
joshualitt9853cce2014-11-17 14:22:48 -0800109 int count,
joshualitt92e496f2014-10-31 13:56:50 -0700110 GrPathRendering::FillType fill);
cdaltonb85a0aa2014-07-21 15:32:44 -0700111
commit-bot@chromium.org9b62aa12014-03-25 11:59:40 +0000112 /**
bsalomon72e3ae42015-04-28 08:08:46 -0700113 * Helper function for drawing rects.
skia.committer@gmail.com044679e2013-02-15 07:16:57 +0000114 *
bsalomon@google.comc7818882013-03-20 19:19:53 +0000115 * @param rect the rect to draw
bsalomon@google.comc7818882013-03-20 19:19:53 +0000116 * @param localRect optional rect that specifies local coords to map onto
117 * rect. If NULL then rect serves as the local coords.
joshualitt8fc6c2d2014-12-22 15:27:05 -0800118 * @param localMatrix Optional local matrix. The local coordinates are specified by localRect,
119 * or if it is NULL by rect. This matrix applies to the coordinate implied by
120 * that rectangle before it is input to GrCoordTransforms that read local
121 * coordinates
bsalomon@google.com86afc2a2011-02-16 16:12:19 +0000122 */
joshualitt1c735482015-07-13 08:08:25 -0700123 void drawBWRect(const GrPipelineBuilder& pipelineBuilder,
robertphillipsea461502015-05-26 11:38:03 -0700124 GrColor color,
125 const SkMatrix& viewMatrix,
joshualittb6b513b2015-08-21 10:25:18 -0700126 const SkRect& rect);
127
128 void drawBWRect(const GrPipelineBuilder& pipelineBuilder,
129 GrColor color,
130 const SkMatrix& viewMatrix,
robertphillipsea461502015-05-26 11:38:03 -0700131 const SkRect& rect,
joshualittb6b513b2015-08-21 10:25:18 -0700132 const SkMatrix& localMatrix);
133
134 void drawBWRect(const GrPipelineBuilder& pipelineBuilder,
135 GrColor color,
136 const SkMatrix& viewMatrix,
137 const SkRect& rect,
138 const SkRect& localRect);
jvanverth@google.com39768252013-02-14 15:25:44 +0000139
bsalomon@google.comcf939ae2012-12-13 19:59:23 +0000140 /**
bsalomon@google.comc7818882013-03-20 19:19:53 +0000141 * Helper for drawRect when the caller doesn't need separate local rects or matrices.
bsalomon@google.comcf939ae2012-12-13 19:59:23 +0000142 */
joshualitt1c735482015-07-13 08:08:25 -0700143 void drawSimpleRect(const GrPipelineBuilder& ds, GrColor color, const SkMatrix& viewM,
egdaniel8dd688b2015-01-22 10:16:09 -0800144 const SkRect& rect) {
joshualittb6b513b2015-08-21 10:25:18 -0700145 this->drawBWRect(ds, color, viewM, rect);
bsalomon@google.comcf939ae2012-12-13 19:59:23 +0000146 }
joshualitt1c735482015-07-13 08:08:25 -0700147 void drawSimpleRect(const GrPipelineBuilder& ds, GrColor color, const SkMatrix& viewM,
joshualitt8059eb92014-12-29 15:10:07 -0800148 const SkIRect& irect) {
reed@google.com44699382013-10-31 17:28:30 +0000149 SkRect rect = SkRect::Make(irect);
joshualittb6b513b2015-08-21 10:25:18 -0700150 this->drawBWRect(ds, color, viewM, rect);
bsalomon@google.comcf939ae2012-12-13 19:59:23 +0000151 }
bsalomon@google.com86afc2a2011-02-16 16:12:19 +0000152
joshualitt1c735482015-07-13 08:08:25 -0700153 void drawAARect(const GrPipelineBuilder& pipelineBuilder,
robertphillipsea461502015-05-26 11:38:03 -0700154 GrColor color,
155 const SkMatrix& viewMatrix,
156 const SkRect& rect,
157 const SkRect& devRect);
bsalomon@google.com934c5702012-03-20 21:17:58 +0000158
159 /**
egdaniel8dd688b2015-01-22 10:16:09 -0800160 * Clear the passed in render target. Ignores the GrPipelineBuilder and clip. Clears the whole
161 * thing if rect is NULL, otherwise just the rect. If canIgnoreRect is set then the entire
162 * render target can be optionally cleared.
bsalomon@google.com0b335c12011-04-25 19:17:44 +0000163 */
joshualitt9853cce2014-11-17 14:22:48 -0800164 void clear(const SkIRect* rect,
165 GrColor color,
166 bool canIgnoreRect,
bsalomon63b21962014-11-05 07:05:34 -0800167 GrRenderTarget* renderTarget);
skia.committer@gmail.coma9493a32013-04-04 07:01:12 +0000168
bsalomon53469832015-08-18 09:20:09 -0700169 /** Discards the contents render target. */
170 void discard(GrRenderTarget*);
commit-bot@chromium.org28361fa2014-03-28 16:08:05 +0000171
172 /**
commit-bot@chromium.org2a05de02014-03-25 15:17:32 +0000173 * Called at start and end of gpu trace marking
174 * GR_CREATE_GPU_TRACE_MARKER(marker_str, target) will automatically call these at the start
175 * and end of a code block respectively
commit-bot@chromium.orga3baf3b2014-02-21 18:45:30 +0000176 */
egdaniel3eee3832014-06-18 13:09:11 -0700177 void addGpuTraceMarker(const GrGpuTraceMarker* marker);
178 void removeGpuTraceMarker(const GrGpuTraceMarker* marker);
179
180 /**
181 * Takes the current active set of markers and stores them for later use. Any current marker
182 * in the active set is removed from the active set and the targets remove function is called.
183 * These functions do not work as a stack so you cannot call save a second time before calling
184 * restore. Also, it is assumed that when restore is called the current active set of markers
185 * is empty. When the stored markers are added back into the active set, the targets add marker
186 * is called.
187 */
188 void saveActiveTraceMarkers();
189 void restoreActiveTraceMarkers();
commit-bot@chromium.orga3baf3b2014-02-21 18:45:30 +0000190
191 /**
bsalomon@google.come4617bf2013-04-03 14:56:40 +0000192 * Copies a pixel rectangle from one surface to another. This call may finalize
193 * reserved vertex/index data (as though a draw call was made). The src pixels
194 * copied are specified by srcRect. They are copied to a rect of the same
195 * size in dst with top left at dstPoint. If the src rect is clipped by the
196 * src bounds then pixel values in the dst rect corresponding to area clipped
bsalomon6df86402015-06-01 10:41:49 -0700197 * by the src rect are not overwritten. This method is not guaranteed to succeed
bsalomon@google.come4617bf2013-04-03 14:56:40 +0000198 * depending on the type of surface, configs, etc, and the backend-specific
bsalomon6df86402015-06-01 10:41:49 -0700199 * limitations.
bsalomon@google.come4617bf2013-04-03 14:56:40 +0000200 */
bsalomon6df86402015-06-01 10:41:49 -0700201 void copySurface(GrSurface* dst,
bsalomonf90a02b2014-11-26 12:28:00 -0800202 GrSurface* src,
203 const SkIRect& srcRect,
204 const SkIPoint& dstPoint);
bsalomon@google.com116ad842013-04-09 15:38:19 +0000205 /**
robertphillips@google.comff175842012-05-14 19:31:39 +0000206 * Release any resources that are cached but not currently in use. This
207 * is intended to give an application some recourse when resources are low.
208 */
209 virtual void purgeResources() {};
210
bsalomon4061b122015-05-29 10:26:19 -0700211 bool programUnitTest(GrContext* owner, int maxStages);
joshualitt2c93efe2014-11-06 12:57:13 -0800212
bsalomona387a112015-08-11 14:47:42 -0700213 struct PipelineInfo {
214 PipelineInfo(const GrPipelineBuilder* pipelineBuilder, const GrScissorState* scissor,
215 const GrPrimitiveProcessor* primProc,
216 const SkRect* devBounds, GrDrawTarget* target);
217
218 PipelineInfo(const GrPipelineBuilder* pipelineBuilder, const GrScissorState* scissor,
bsalomonabd30f52015-08-13 13:34:48 -0700219 const GrDrawBatch* batch, const SkRect* devBounds,
bsalomona387a112015-08-11 14:47:42 -0700220 GrDrawTarget* target);
221
222 bool valid() const { return SkToBool(fArgs.fPipelineBuilder); }
223
224 const GrPipeline::CreateArgs& pipelineCreateArgs() const {
225 SkASSERT(this->valid());
226 return fArgs;
227 }
228
bsalomona387a112015-08-11 14:47:42 -0700229 private:
230 GrPipeline::CreateArgs fArgs;
231 };
232
reed@google.comac10a2d2010-12-22 21:39:39 +0000233protected:
robertphillipsdad77942015-03-03 09:28:16 -0800234
bsalomon4061b122015-05-29 10:26:19 -0700235 GrGpu* getGpu() { return fGpu; }
236 const GrGpu* getGpu() const { return fGpu; }
bsalomona73239a2015-04-28 13:35:17 -0700237
commit-bot@chromium.org2a05de02014-03-25 15:17:32 +0000238 const GrTraceMarkerSet& getActiveTraceMarkers() { return fActiveTraceMarkers; }
239
joshualitt65171342014-10-09 07:25:36 -0700240 // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required
241 // but couldn't be made. Otherwise, returns true. This method needs to be protected because it
242 // needs to be accessed by GLPrograms to setup a correct drawstate
bsalomon50785a32015-02-06 07:02:37 -0800243 bool setupDstReadIfNecessary(const GrPipelineBuilder&,
egdaniele36914c2015-02-13 09:00:33 -0800244 const GrProcOptInfo& colorPOI,
245 const GrProcOptInfo& coveragePOI,
bsalomon6a44c6a2015-05-26 09:49:05 -0700246 GrXferProcessor::DstTexture*,
joshualitt9853cce2014-11-17 14:22:48 -0800247 const SkRect* drawBounds);
joshualitt65171342014-10-09 07:25:36 -0700248
bsalomon5ea03632015-08-18 10:33:30 -0700249 virtual void onDrawBatch(GrBatch*) = 0;
250
bsalomon@google.com02ddc8b2013-01-28 15:35:28 +0000251private:
bsalomona73239a2015-04-28 13:35:17 -0700252 virtual void onReset() = 0;
bsalomonf90a02b2014-11-26 12:28:00 -0800253
bsalomona73239a2015-04-28 13:35:17 -0700254 virtual void onFlush() = 0;
bsalomonf90a02b2014-11-26 12:28:00 -0800255
egdaniele36914c2015-02-13 09:00:33 -0800256 virtual void onDrawPaths(const GrPathProcessor*,
joshualitt9853cce2014-11-17 14:22:48 -0800257 const GrPathRange*,
cdalton55b24af2014-11-25 11:00:56 -0800258 const void* indices,
259 PathIndexType,
260 const float transformValues[],
joshualitt2c93efe2014-11-06 12:57:13 -0800261 PathTransformType,
cdalton55b24af2014-11-25 11:00:56 -0800262 int count,
joshualitt2c93efe2014-11-06 12:57:13 -0800263 const GrStencilSettings&,
egdaniele36914c2015-02-13 09:00:33 -0800264 const PipelineInfo&) = 0;
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000265
commit-bot@chromium.orga8916ff2013-08-16 15:53:46 +0000266 // Check to see if this set of draw commands has been sent out
267 virtual bool isIssued(uint32_t drawID) { return true; }
joshualitt9853cce2014-11-17 14:22:48 -0800268 void getPathStencilSettingsForFilltype(GrPathRendering::FillType,
egdaniel8dc7c3a2015-04-16 11:22:42 -0700269 const GrStencilAttachment*,
joshualitt9853cce2014-11-17 14:22:48 -0800270 GrStencilSettings*);
joshualitta7024152014-11-03 14:16:35 -0800271 virtual GrClipMaskManager* clipMaskManager() = 0;
joshualitt1c735482015-07-13 08:08:25 -0700272 virtual bool setupClip(const GrPipelineBuilder&,
joshualitt4421a4c2015-07-13 09:36:41 -0700273 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
bsalomon6be6f7c2015-02-26 13:05:21 -0800274 GrPipelineBuilder::AutoRestoreStencil*,
275 GrScissorState*,
joshualitt8059eb92014-12-29 15:10:07 -0800276 const SkRect* devBounds) = 0;
skia.committer@gmail.com74758112013-08-17 07:01:54 +0000277
bsalomon4061b122015-05-29 10:26:19 -0700278 GrGpu* fGpu;
279 const GrCaps* fCaps;
280 GrResourceProvider* fResourceProvider;
commit-bot@chromium.org2a05de02014-03-25 15:17:32 +0000281 // To keep track that we always have at least as many debug marker adds as removes
bsalomon4061b122015-05-29 10:26:19 -0700282 int fGpuTraceMarkerCount;
283 GrTraceMarkerSet fActiveTraceMarkers;
284 GrTraceMarkerSet fStoredTraceMarkers;
285 bool fFlushing;
reed@google.comfa35e3d2012-06-26 20:16:17 +0000286
commit-bot@chromium.orga4de8c22013-09-09 13:38:37 +0000287 typedef SkRefCnt INHERITED;
reed@google.comac10a2d2010-12-22 21:39:39 +0000288};
289
joshualitt329bf482014-10-29 12:31:28 -0700290/*
291 * This class is JUST for clip mask manager. Everyone else should just use draw target above.
292 */
joshualitt6db519c2014-10-29 08:48:18 -0700293class GrClipTarget : public GrDrawTarget {
294public:
bsalomonedd77a12015-05-29 09:45:57 -0700295 GrClipTarget(GrContext*);
joshualitt329bf482014-10-29 12:31:28 -0700296
297 /* Clip mask manager needs access to the context.
298 * TODO we only need a very small subset of context in the CMM.
299 */
bsalomon4061b122015-05-29 10:26:19 -0700300 GrContext* getContext() { return fContext; }
301 const GrContext* getContext() const { return fContext; }
joshualitt329bf482014-10-29 12:31:28 -0700302
joshualitt6db519c2014-10-29 08:48:18 -0700303 /**
304 * Clip Mask Manager(and no one else) needs to clear private stencil bits.
305 * ClipTarget subclass sets clip bit in the stencil buffer. The subclass
306 * is free to clear the remaining bits to zero if masked clears are more
307 * expensive than clearing all bits.
308 */
bsalomon5ea03632015-08-18 10:33:30 -0700309 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*);
joshualitt6db519c2014-10-29 08:48:18 -0700310
joshualitt3bdd7dc2014-10-31 08:27:39 -0700311 /**
312 * Release any resources that are cached but not currently in use. This
313 * is intended to give an application some recourse when resources are low.
314 */
bsalomonedd77a12015-05-29 09:45:57 -0700315 void purgeResources() override;
joshualitt3bdd7dc2014-10-31 08:27:39 -0700316
joshualitt329bf482014-10-29 12:31:28 -0700317protected:
bsalomonedd77a12015-05-29 09:45:57 -0700318 SkAutoTDelete<GrClipMaskManager> fClipMaskManager;
bsalomon4061b122015-05-29 10:26:19 -0700319 GrContext* fContext;
joshualitt329bf482014-10-29 12:31:28 -0700320
joshualitt6db519c2014-10-29 08:48:18 -0700321private:
bsalomonedd77a12015-05-29 09:45:57 -0700322 GrClipMaskManager* clipMaskManager() override { return fClipMaskManager; }
joshualitt329bf482014-10-29 12:31:28 -0700323
joshualitt1c735482015-07-13 08:08:25 -0700324 bool setupClip(const GrPipelineBuilder&,
joshualitt4421a4c2015-07-13 09:36:41 -0700325 GrPipelineBuilder::AutoRestoreFragmentProcessorState*,
joshualitt5e6ba212015-07-13 07:35:05 -0700326 GrPipelineBuilder::AutoRestoreStencil*,
joshualitt5e6ba212015-07-13 07:35:05 -0700327 GrScissorState* scissorState,
328 const SkRect* devBounds) override;
joshualitt2c93efe2014-11-06 12:57:13 -0800329
joshualitt6db519c2014-10-29 08:48:18 -0700330 typedef GrDrawTarget INHERITED;
331};
332
reed@google.comac10a2d2010-12-22 21:39:39 +0000333#endif