reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 1 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 2 | * 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.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 8 | #ifndef GrDrawTarget_DEFINED |
| 9 | #define GrDrawTarget_DEFINED |
| 10 | |
joshualitt | 44701df | 2015-02-23 14:44:57 -0800 | [diff] [blame] | 11 | #include "GrClip.h" |
joshualitt | 6db519c | 2014-10-29 08:48:18 -0700 | [diff] [blame] | 12 | #include "GrClipMaskManager.h" |
commit-bot@chromium.org | 2a05de0 | 2014-03-25 15:17:32 +0000 | [diff] [blame] | 13 | #include "GrContext.h" |
joshualitt | 8072caa | 2015-02-12 14:20:52 -0800 | [diff] [blame] | 14 | #include "GrPathProcessor.h" |
| 15 | #include "GrPrimitiveProcessor.h" |
kkinnunen | ccdaa04 | 2014-08-20 01:36:23 -0700 | [diff] [blame] | 16 | #include "GrPathRendering.h" |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 17 | #include "GrPipelineBuilder.h" |
bsalomon | 6a44c6a | 2015-05-26 09:49:05 -0700 | [diff] [blame] | 18 | #include "GrXferProcessor.h" |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 19 | |
bsalomon | 473addf | 2015-10-02 07:49:05 -0700 | [diff] [blame] | 20 | #include "batches/GrDrawBatch.h" |
| 21 | |
bsalomon@google.com | 8d67c07 | 2012-12-13 20:38:14 +0000 | [diff] [blame] | 22 | #include "SkClipStack.h" |
commit-bot@chromium.org | a4de8c2 | 2013-09-09 13:38:37 +0000 | [diff] [blame] | 23 | #include "SkMatrix.h" |
sugoi@google.com | 12b4e27 | 2012-12-06 20:13:11 +0000 | [diff] [blame] | 24 | #include "SkPath.h" |
reed | 1b55a96 | 2015-09-17 20:16:13 -0700 | [diff] [blame] | 25 | #include "SkStringUtils.h" |
commit-bot@chromium.org | 9b62aa1 | 2014-03-25 11:59:40 +0000 | [diff] [blame] | 26 | #include "SkStrokeRec.h" |
robertphillips@google.com | a2d7148 | 2012-08-01 20:08:47 +0000 | [diff] [blame] | 27 | #include "SkTArray.h" |
commit-bot@chromium.org | a4de8c2 | 2013-09-09 13:38:37 +0000 | [diff] [blame] | 28 | #include "SkTLazy.h" |
commit-bot@chromium.org | a0b4028 | 2013-09-18 13:00:55 +0000 | [diff] [blame] | 29 | #include "SkTypes.h" |
bsalomon@google.com | 8d67c07 | 2012-12-13 20:38:14 +0000 | [diff] [blame] | 30 | #include "SkXfermode.h" |
Scroggo | 97c88c2 | 2011-05-11 14:05:25 +0000 | [diff] [blame] | 31 | |
robertphillips | 498d7ac | 2015-10-30 10:11:30 -0700 | [diff] [blame] | 32 | //#define ENABLE_MDB 1 |
| 33 | |
joshualitt | 086cee1 | 2016-01-12 06:45:24 -0800 | [diff] [blame] | 34 | class GrAuditTrail; |
bsalomon | 5346983 | 2015-08-18 09:20:09 -0700 | [diff] [blame] | 35 | class GrBatch; |
joshualitt | 44701df | 2015-02-23 14:44:57 -0800 | [diff] [blame] | 36 | class GrClip; |
bsalomon | 4b91f76 | 2015-05-19 09:29:46 -0700 | [diff] [blame] | 37 | class GrCaps; |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 38 | class GrPath; |
bsalomon | 1fcc01c | 2015-09-09 09:48:06 -0700 | [diff] [blame] | 39 | class GrDrawPathBatchBase; |
sugoi@google.com | 12b4e27 | 2012-12-06 20:13:11 +0000 | [diff] [blame] | 40 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 41 | class GrDrawTarget final : public SkRefCnt { |
bsalomon@google.com | f660187 | 2012-08-28 21:11:35 +0000 | [diff] [blame] | 42 | public: |
bsalomon | 69cfe95 | 2015-11-30 13:27:47 -0800 | [diff] [blame] | 43 | /** Options for GrDrawTarget behavior. */ |
| 44 | struct Options { |
bsalomon | aecc018 | 2016-03-07 11:50:44 -0800 | [diff] [blame] | 45 | Options () |
| 46 | : fClipBatchToBounds(false) |
| 47 | , fDrawBatchBounds(false) |
| 48 | , fMaxBatchLookback(-1) |
| 49 | , fMaxBatchLookahead(-1) {} |
bsalomon | 69cfe95 | 2015-11-30 13:27:47 -0800 | [diff] [blame] | 50 | bool fClipBatchToBounds; |
bsalomon | 6dea83f | 2015-12-03 12:58:06 -0800 | [diff] [blame] | 51 | bool fDrawBatchBounds; |
bsalomon | 489147c | 2015-12-14 12:13:09 -0800 | [diff] [blame] | 52 | int fMaxBatchLookback; |
bsalomon | aecc018 | 2016-03-07 11:50:44 -0800 | [diff] [blame] | 53 | int fMaxBatchLookahead; |
bsalomon | 69cfe95 | 2015-11-30 13:27:47 -0800 | [diff] [blame] | 54 | }; |
| 55 | |
joshualitt | 086cee1 | 2016-01-12 06:45:24 -0800 | [diff] [blame] | 56 | GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, GrAuditTrail*, const Options&); |
bsalomon | a73239a | 2015-04-28 13:35:17 -0700 | [diff] [blame] | 57 | |
bsalomon | 512be53 | 2015-09-10 10:42:55 -0700 | [diff] [blame] | 58 | ~GrDrawTarget() override; |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 59 | |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 60 | void makeClosed() { |
| 61 | // We only close drawTargets When MDB is enabled. When MDB is disabled there is only |
| 62 | // ever one drawTarget and all calls will be funnelled into it. |
| 63 | #ifdef ENABLE_MDB |
robertphillips | 6a18665 | 2015-10-20 07:37:58 -0700 | [diff] [blame] | 64 | this->setFlag(kClosed_Flag); |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 65 | #endif |
bsalomon | aecc018 | 2016-03-07 11:50:44 -0800 | [diff] [blame] | 66 | this->forwardCombine(); |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 67 | } |
bsalomon | aecc018 | 2016-03-07 11:50:44 -0800 | [diff] [blame] | 68 | |
robertphillips | 6a18665 | 2015-10-20 07:37:58 -0700 | [diff] [blame] | 69 | bool isClosed() const { return this->isSetFlag(kClosed_Flag); } |
| 70 | |
robertphillips | 498d7ac | 2015-10-30 10:11:30 -0700 | [diff] [blame] | 71 | // TODO: this entry point is only needed in the non-MDB world. Remove when |
| 72 | // we make the switch to MDB |
| 73 | void clearRT() { fRenderTarget = nullptr; } |
| 74 | |
robertphillips | 6a18665 | 2015-10-20 07:37:58 -0700 | [diff] [blame] | 75 | /* |
| 76 | * Notify this drawTarget that it relies on the contents of 'dependedOn' |
| 77 | */ |
| 78 | void addDependency(GrSurface* dependedOn); |
| 79 | |
| 80 | /* |
| 81 | * Does this drawTarget depend on 'dependedOn'? |
| 82 | */ |
| 83 | bool dependsOn(GrDrawTarget* dependedOn) const { |
| 84 | return fDependencies.find(dependedOn) >= 0; |
| 85 | } |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 86 | |
robertphillips | 4beb5c1 | 2015-10-20 07:50:00 -0700 | [diff] [blame] | 87 | /* |
| 88 | * Dump out the drawTarget dependency DAG |
| 89 | */ |
| 90 | SkDEBUGCODE(void dump() const;) |
| 91 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 92 | /** |
bsalomon | a73239a | 2015-04-28 13:35:17 -0700 | [diff] [blame] | 93 | * Empties the draw buffer of any queued up draws. |
| 94 | */ |
bsalomon | 512be53 | 2015-09-10 10:42:55 -0700 | [diff] [blame] | 95 | void reset(); |
bsalomon | a73239a | 2015-04-28 13:35:17 -0700 | [diff] [blame] | 96 | |
| 97 | /** |
robertphillips | a13e202 | 2015-11-11 12:01:09 -0800 | [diff] [blame] | 98 | * Together these two functions flush all queued up draws to the Gpu. |
bsalomon | a73239a | 2015-04-28 13:35:17 -0700 | [diff] [blame] | 99 | */ |
robertphillips | a13e202 | 2015-11-11 12:01:09 -0800 | [diff] [blame] | 100 | void prepareBatches(GrBatchFlushState* flushState); |
| 101 | void drawBatches(GrBatchFlushState* flushState); |
bsalomon | a73239a | 2015-04-28 13:35:17 -0700 | [diff] [blame] | 102 | |
| 103 | /** |
bsalomon@google.com | 18c9c19 | 2011-09-22 21:01:31 +0000 | [diff] [blame] | 104 | * Gets the capabilities of the draw target. |
| 105 | */ |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 106 | const GrCaps* caps() const { return fGpu->caps(); } |
bsalomon@google.com | 18c9c19 | 2011-09-22 21:01:31 +0000 | [diff] [blame] | 107 | |
robertphillips | 391395d | 2016-03-02 09:26:36 -0800 | [diff] [blame] | 108 | void drawBatch(const GrPipelineBuilder&, GrDrawBatch*, const SkIRect* scissorRect = nullptr); |
joshualitt | 4d8da81 | 2015-01-28 12:53:54 -0800 | [diff] [blame] | 109 | |
bsalomon@google.com | 86afc2a | 2011-02-16 16:12:19 +0000 | [diff] [blame] | 110 | /** |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 111 | * Draws path into the stencil buffer. The fill must be either even/odd or |
| 112 | * winding (not inverse or hairline). It will respect the HW antialias flag |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 113 | * on the GrPipelineBuilder (if possible in the 3D API). Note, we will never have an inverse |
| 114 | * fill with stencil path |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 115 | */ |
joshualitt | f238469 | 2015-09-10 11:00:51 -0700 | [diff] [blame] | 116 | void stencilPath(const GrPipelineBuilder&, const SkMatrix& viewMatrix, const GrPath*, |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 117 | GrPathRendering::FillType); |
bsalomon@google.com | 64aef2b | 2012-06-11 15:36:13 +0000 | [diff] [blame] | 118 | |
| 119 | /** |
cdalton | 8ff8d24 | 2015-12-08 10:20:32 -0800 | [diff] [blame] | 120 | * Draws a path batch. Fill must not be a hairline. It will respect the HW antialias flag on |
| 121 | * the GrPipelineBuilder (if possible in the 3D API). This needs to be separate from drawBatch |
| 122 | * because we install path stencil settings late. |
bsalomon | 1fcc01c | 2015-09-09 09:48:06 -0700 | [diff] [blame] | 123 | * |
cdalton | 8ff8d24 | 2015-12-08 10:20:32 -0800 | [diff] [blame] | 124 | * TODO: Figure out a better model that allows us to roll this method into drawBatch. |
commit-bot@chromium.org | c4dc0ad | 2013-10-09 14:11:33 +0000 | [diff] [blame] | 125 | */ |
cdalton | 8ff8d24 | 2015-12-08 10:20:32 -0800 | [diff] [blame] | 126 | void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatchBase* batch); |
cdalton | b85a0aa | 2014-07-21 15:32:44 -0700 | [diff] [blame] | 127 | |
commit-bot@chromium.org | 9b62aa1 | 2014-03-25 11:59:40 +0000 | [diff] [blame] | 128 | /** |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 129 | * Clear the passed in render target. Ignores the GrPipelineBuilder and clip. Clears the whole |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 130 | * thing if rect is nullptr, otherwise just the rect. If canIgnoreRect is set then the entire |
egdaniel | 8dd688b | 2015-01-22 10:16:09 -0800 | [diff] [blame] | 131 | * render target can be optionally cleared. |
bsalomon@google.com | 0b335c1 | 2011-04-25 19:17:44 +0000 | [diff] [blame] | 132 | */ |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 133 | void clear(const SkIRect* rect, |
| 134 | GrColor color, |
| 135 | bool canIgnoreRect, |
bsalomon | 63b2196 | 2014-11-05 07:05:34 -0800 | [diff] [blame] | 136 | GrRenderTarget* renderTarget); |
skia.committer@gmail.com | a9493a3 | 2013-04-04 07:01:12 +0000 | [diff] [blame] | 137 | |
bsalomon | 5346983 | 2015-08-18 09:20:09 -0700 | [diff] [blame] | 138 | /** Discards the contents render target. */ |
| 139 | void discard(GrRenderTarget*); |
commit-bot@chromium.org | 28361fa | 2014-03-28 16:08:05 +0000 | [diff] [blame] | 140 | |
| 141 | /** |
bsalomon@google.com | e4617bf | 2013-04-03 14:56:40 +0000 | [diff] [blame] | 142 | * Copies a pixel rectangle from one surface to another. This call may finalize |
| 143 | * reserved vertex/index data (as though a draw call was made). The src pixels |
| 144 | * copied are specified by srcRect. They are copied to a rect of the same |
| 145 | * size in dst with top left at dstPoint. If the src rect is clipped by the |
| 146 | * src bounds then pixel values in the dst rect corresponding to area clipped |
bsalomon | 6df8640 | 2015-06-01 10:41:49 -0700 | [diff] [blame] | 147 | * by the src rect are not overwritten. This method is not guaranteed to succeed |
bsalomon@google.com | e4617bf | 2013-04-03 14:56:40 +0000 | [diff] [blame] | 148 | * depending on the type of surface, configs, etc, and the backend-specific |
bsalomon | 6df8640 | 2015-06-01 10:41:49 -0700 | [diff] [blame] | 149 | * limitations. |
bsalomon@google.com | e4617bf | 2013-04-03 14:56:40 +0000 | [diff] [blame] | 150 | */ |
bsalomon | b8fea97 | 2016-02-16 07:34:17 -0800 | [diff] [blame] | 151 | bool copySurface(GrSurface* dst, |
bsalomon | f90a02b | 2014-11-26 12:28:00 -0800 | [diff] [blame] | 152 | GrSurface* src, |
| 153 | const SkIRect& srcRect, |
| 154 | const SkIPoint& dstPoint); |
robertphillips@google.com | ff17584 | 2012-05-14 19:31:39 +0000 | [diff] [blame] | 155 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 156 | /** Provides access to internal functions to GrClipMaskManager without friending all of |
| 157 | GrDrawTarget to CMM. */ |
| 158 | class CMMAccess { |
| 159 | public: |
| 160 | CMMAccess(GrDrawTarget* drawTarget) : fDrawTarget(drawTarget) {} |
| 161 | private: |
| 162 | void clearStencilClip(const SkIRect& rect, bool insideClip, GrRenderTarget* rt) const { |
| 163 | fDrawTarget->clearStencilClip(rect, insideClip, rt); |
| 164 | } |
bsalomon | a73239a | 2015-04-28 13:35:17 -0700 | [diff] [blame] | 165 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 166 | GrContext* context() const { return fDrawTarget->fContext; } |
| 167 | GrResourceProvider* resourceProvider() const { return fDrawTarget->fResourceProvider; } |
| 168 | GrDrawTarget* fDrawTarget; |
| 169 | friend class GrClipMaskManager; |
| 170 | }; |
| 171 | |
| 172 | const CMMAccess cmmAccess() { return CMMAccess(this); } |
bsalomon | 5ea0363 | 2015-08-18 10:33:30 -0700 | [diff] [blame] | 173 | |
joshualitt | de83b41 | 2016-01-14 09:58:36 -0800 | [diff] [blame] | 174 | GrAuditTrail* getAuditTrail() const { return fAuditTrail; } |
| 175 | |
bsalomon@google.com | 02ddc8b | 2013-01-28 15:35:28 +0000 | [diff] [blame] | 176 | private: |
robertphillips | 6a18665 | 2015-10-20 07:37:58 -0700 | [diff] [blame] | 177 | friend class GrDrawingManager; // for resetFlag & TopoSortTraits |
| 178 | |
| 179 | enum Flags { |
| 180 | kClosed_Flag = 0x01, //!< This drawTarget can't accept any more batches |
| 181 | |
| 182 | kWasOutput_Flag = 0x02, //!< Flag for topological sorting |
| 183 | kTempMark_Flag = 0x04, //!< Flag for topological sorting |
| 184 | }; |
| 185 | |
| 186 | void setFlag(uint32_t flag) { |
| 187 | fFlags |= flag; |
| 188 | } |
| 189 | |
| 190 | void resetFlag(uint32_t flag) { |
| 191 | fFlags &= ~flag; |
| 192 | } |
| 193 | |
| 194 | bool isSetFlag(uint32_t flag) const { |
| 195 | return SkToBool(fFlags & flag); |
| 196 | } |
| 197 | |
| 198 | struct TopoSortTraits { |
| 199 | static void Output(GrDrawTarget* dt, int /* index */) { |
| 200 | dt->setFlag(GrDrawTarget::kWasOutput_Flag); |
| 201 | } |
| 202 | static bool WasOutput(const GrDrawTarget* dt) { |
| 203 | return dt->isSetFlag(GrDrawTarget::kWasOutput_Flag); |
| 204 | } |
| 205 | static void SetTempMark(GrDrawTarget* dt) { |
| 206 | dt->setFlag(GrDrawTarget::kTempMark_Flag); |
| 207 | } |
| 208 | static void ResetTempMark(GrDrawTarget* dt) { |
| 209 | dt->resetFlag(GrDrawTarget::kTempMark_Flag); |
| 210 | } |
| 211 | static bool IsTempMarked(const GrDrawTarget* dt) { |
| 212 | return dt->isSetFlag(GrDrawTarget::kTempMark_Flag); |
| 213 | } |
| 214 | static int NumDependencies(const GrDrawTarget* dt) { |
| 215 | return dt->fDependencies.count(); |
| 216 | } |
| 217 | static GrDrawTarget* Dependency(GrDrawTarget* dt, int index) { |
| 218 | return dt->fDependencies[index]; |
| 219 | } |
| 220 | }; |
| 221 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 222 | void recordBatch(GrBatch*); |
bsalomon | aecc018 | 2016-03-07 11:50:44 -0800 | [diff] [blame] | 223 | void forwardCombine(); |
cdalton | d472792 | 2015-11-10 12:49:06 -0800 | [diff] [blame] | 224 | bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder, |
| 225 | const GrScissorState* scissor, |
| 226 | GrDrawBatch* batch); |
bsalomon | ad792c1 | 2015-09-10 11:10:50 -0700 | [diff] [blame] | 227 | |
| 228 | // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required |
| 229 | // but couldn't be made. Otherwise, returns true. This method needs to be protected because it |
| 230 | // needs to be accessed by GLPrograms to setup a correct drawstate |
| 231 | bool setupDstReadIfNecessary(const GrPipelineBuilder&, |
ethannicholas | de4166a | 2015-11-30 08:57:38 -0800 | [diff] [blame] | 232 | const GrPipelineOptimizations& optimizations, |
bsalomon | ad792c1 | 2015-09-10 11:10:50 -0700 | [diff] [blame] | 233 | GrXferProcessor::DstTexture*, |
| 234 | const SkRect& batchBounds); |
| 235 | |
commit-bot@chromium.org | a8916ff | 2013-08-16 15:53:46 +0000 | [diff] [blame] | 236 | // Check to see if this set of draw commands has been sent out |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 237 | void getPathStencilSettingsForFilltype(GrPathRendering::FillType, |
egdaniel | 8dc7c3a | 2015-04-16 11:22:42 -0700 | [diff] [blame] | 238 | const GrStencilAttachment*, |
joshualitt | 9853cce | 2014-11-17 14:22:48 -0800 | [diff] [blame] | 239 | GrStencilSettings*); |
skia.committer@gmail.com | 7475811 | 2013-08-17 07:01:54 +0000 | [diff] [blame] | 240 | |
robertphillips | 6a18665 | 2015-10-20 07:37:58 -0700 | [diff] [blame] | 241 | void addDependency(GrDrawTarget* dependedOn); |
| 242 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 243 | // Used only by CMM. |
bsalomon | 5ea0363 | 2015-08-18 10:33:30 -0700 | [diff] [blame] | 244 | void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); |
joshualitt | 6db519c | 2014-10-29 08:48:18 -0700 | [diff] [blame] | 245 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 246 | SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; |
| 247 | SkAutoTDelete<GrClipMaskManager> fClipMaskManager; |
| 248 | // The context is only in service of the clip mask manager, remove once CMM doesn't need this. |
| 249 | GrContext* fContext; |
| 250 | GrGpu* fGpu; |
| 251 | GrResourceProvider* fResourceProvider; |
joshualitt | 086cee1 | 2016-01-12 06:45:24 -0800 | [diff] [blame] | 252 | GrAuditTrail* fAuditTrail; |
joshualitt | 3bdd7dc | 2014-10-31 08:27:39 -0700 | [diff] [blame] | 253 | |
robertphillips | 4beb5c1 | 2015-10-20 07:50:00 -0700 | [diff] [blame] | 254 | SkDEBUGCODE(int fDebugID;) |
robertphillips | 6a18665 | 2015-10-20 07:37:58 -0700 | [diff] [blame] | 255 | uint32_t fFlags; |
| 256 | |
| 257 | // 'this' drawTarget relies on the output of the drawTargets in 'fDependencies' |
| 258 | SkTDArray<GrDrawTarget*> fDependencies; |
robertphillips | 498d7ac | 2015-10-30 10:11:30 -0700 | [diff] [blame] | 259 | GrRenderTarget* fRenderTarget; |
robertphillips | a106c62 | 2015-10-16 09:07:06 -0700 | [diff] [blame] | 260 | |
bsalomon | 6dea83f | 2015-12-03 12:58:06 -0800 | [diff] [blame] | 261 | bool fDrawBatchBounds; |
bsalomon | 489147c | 2015-12-14 12:13:09 -0800 | [diff] [blame] | 262 | int fMaxBatchLookback; |
bsalomon | aecc018 | 2016-03-07 11:50:44 -0800 | [diff] [blame] | 263 | int fMaxBatchLookahead; |
bsalomon | 6dea83f | 2015-12-03 12:58:06 -0800 | [diff] [blame] | 264 | |
bsalomon | b3b9aec | 2015-09-10 11:16:35 -0700 | [diff] [blame] | 265 | typedef SkRefCnt INHERITED; |
joshualitt | 6db519c | 2014-10-29 08:48:18 -0700 | [diff] [blame] | 266 | }; |
| 267 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 268 | #endif |