blob: 2ee247db3f135349154a93e2c420690b263217a7 [file] [log] [blame]
reed@google.comac10a2d2010-12-22 21:39:39 +00001/*
Greg Danielf41b2bd2019-08-22 16:19:24 -04002 * Copyright 2019 Google Inc.
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 *
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
Greg Danielf41b2bd2019-08-22 16:19:24 -04008#ifndef GrOpsTask_DEFINED
9#define GrOpsTask_DEFINED
reed@google.comac10a2d2010-12-22 21:39:39 +000010
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/core/SkMatrix.h"
Greg Danielf41b2bd2019-08-22 16:19:24 -040012#include "include/core/SkRefCnt.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050013#include "include/core/SkStrokeRec.h"
14#include "include/core/SkTypes.h"
Robert Phillipsb7bfbc22020-07-01 12:55:01 -040015#include "include/gpu/GrRecordingContext.h"
Greg Danielf41b2bd2019-08-22 16:19:24 -040016#include "include/private/SkColorData.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050017#include "include/private/SkTArray.h"
Greg Danielf41b2bd2019-08-22 16:19:24 -040018#include "include/private/SkTDArray.h"
Ben Wagner729a23f2019-05-17 16:29:34 -040019#include "src/core/SkArenaAlloc.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050020#include "src/core/SkClipStack.h"
21#include "src/core/SkStringUtils.h"
22#include "src/core/SkTLazy.h"
23#include "src/gpu/GrAppliedClip.h"
24#include "src/gpu/GrPathRendering.h"
25#include "src/gpu/GrPrimitiveProcessor.h"
Greg Danielf41b2bd2019-08-22 16:19:24 -040026#include "src/gpu/GrRenderTask.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050027#include "src/gpu/ops/GrDrawOp.h"
28#include "src/gpu/ops/GrOp.h"
Scroggo97c88c22011-05-11 14:05:25 +000029
joshualitt086cee12016-01-12 06:45:24 -080030class GrAuditTrail;
Greg Danielf21bf9e2019-08-22 20:12:20 +000031class GrCaps;
Greg Danielf41b2bd2019-08-22 16:19:24 -040032class GrClearOp;
33class GrGpuBuffer;
Robert Phillipsc7635fa2016-10-28 13:25:24 -040034class GrRenderTargetProxy;
sugoi@google.com12b4e272012-12-06 20:13:11 +000035
Brian Salomon3b8486a2020-04-21 12:43:26 -040036/** Observer is notified when a GrOpsTask is closed. */
37class GrOpsTaskClosedObserver {
38public:
39 virtual ~GrOpsTaskClosedObserver() = 0;
Brian Salomonf1c9eae2020-05-01 15:00:34 -040040 /**
41 * Called when the GrOpsTask is closed. Must not add/remove observers to 'task'.
42 * The GrOpsTask will remove all its observers after it finishes calling wasClosed().
43 */
Brian Salomon3b8486a2020-04-21 12:43:26 -040044 virtual void wasClosed(const GrOpsTask& task) = 0;
45};
46
Greg Danielf41b2bd2019-08-22 16:19:24 -040047class GrOpsTask : public GrRenderTask {
Brian Salomon54d212e2017-03-21 14:22:38 -040048private:
Greg Daniel524e28b2019-11-01 11:48:53 -040049 using DstProxyView = GrXferProcessor::DstProxyView;
Brian Salomon54d212e2017-03-21 14:22:38 -040050
bsalomon@google.comf6601872012-08-28 21:11:35 +000051public:
Michael Ludwig28b0c5d2019-12-19 14:51:00 -050052 // The Arenas must outlive the GrOpsTask, either by preserving the context that owns
Michael Ludwigcb10e4d2019-12-12 13:59:20 -050053 // the pool, or by moving the pool to the DDL that takes over the GrOpsTask.
Adlai Hollerd71b7b02020-06-08 15:55:00 -040054 GrOpsTask(GrDrawingManager*, GrRecordingContext::Arenas, GrSurfaceProxyView, GrAuditTrail*);
Greg Danielf41b2bd2019-08-22 16:19:24 -040055 ~GrOpsTask() override;
bsalomona73239a2015-04-28 13:35:17 -070056
Greg Danielf41b2bd2019-08-22 16:19:24 -040057 GrOpsTask* asOpsTask() override { return this; }
reed@google.comac10a2d2010-12-22 21:39:39 +000058
Brian Salomonf1c9eae2020-05-01 15:00:34 -040059 void addClosedObserver(GrOpsTaskClosedObserver* observer) {
60 SkASSERT(observer);
61 fClosedObservers.push_back(observer);
62 }
63
64 void removeClosedObserver(GrOpsTaskClosedObserver* observer);
Brian Salomon3b8486a2020-04-21 12:43:26 -040065
Brian Salomon588cec72018-11-14 13:56:37 -050066 bool isEmpty() const { return fOpChains.empty(); }
Robert Phillipsf5442bb2017-04-17 14:18:34 -040067
reed@google.comac10a2d2010-12-22 21:39:39 +000068 /**
bsalomona73239a2015-04-28 13:35:17 -070069 * Empties the draw buffer of any queued up draws.
70 */
Adlai Hollerd71b7b02020-06-08 15:55:00 -040071 void endFlush(GrDrawingManager*) override;
Robert Phillipsf2361d22016-10-25 14:20:06 -040072
Robert Phillips29f38542019-10-16 09:20:25 -040073 void onPrePrepare(GrRecordingContext*) override;
bsalomona73239a2015-04-28 13:35:17 -070074 /**
bsalomondc438982016-08-31 11:53:49 -070075 * Together these two functions flush all queued up draws to GrCommandBuffer. The return value
Brian Salomon1e41f4a2016-12-07 15:05:04 -050076 * of executeOps() indicates whether any commands were actually issued to the GPU.
bsalomona73239a2015-04-28 13:35:17 -070077 */
Brian Osman407b3422017-08-22 15:01:32 -040078 void onPrepare(GrOpFlushState* flushState) override;
79 bool onExecute(GrOpFlushState* flushState) override;
bsalomona73239a2015-04-28 13:35:17 -070080
Michael Ludwigfcdd0612019-11-25 08:34:31 -050081 void addSampledTexture(GrSurfaceProxy* proxy) {
82 // This function takes a GrSurfaceProxy because all subsequent uses of the proxy do not
83 // require the specifics of GrTextureProxy, so this avoids a number of unnecessary virtual
84 // asTextureProxy() calls. However, sampling the proxy implicitly requires that the proxy
85 // be a texture. Eventually, when proxies are a unified type with flags, this can just
86 // assert that capability.
87 SkASSERT(proxy->asTextureProxy());
Greg Danielb20d7e52019-09-03 13:54:39 -040088 fSampledProxies.push_back(proxy);
89 }
90
Adlai Hollerd71b7b02020-06-08 15:55:00 -040091 void addOp(GrDrawingManager* drawingMgr, std::unique_ptr<GrOp> op,
92 GrTextureResolveManager textureResolveManager, const GrCaps& caps) {
93 auto addDependency = [ drawingMgr, textureResolveManager, &caps, this ] (
Michael Ludwigfcdd0612019-11-25 08:34:31 -050094 GrSurfaceProxy* p, GrMipMapped mipmapped) {
Adlai Hollerd71b7b02020-06-08 15:55:00 -040095 this->addDependency(drawingMgr, p, mipmapped, textureResolveManager, caps);
Robert Phillipsb493eeb2017-09-13 13:10:52 -040096 };
97
98 op->visitProxies(addDependency);
99
Chris Dalton945ee652019-01-23 09:10:36 -0700100 this->recordOp(std::move(op), GrProcessorSet::EmptySetAnalysis(), nullptr, nullptr, caps);
Brian Salomon54d212e2017-03-21 14:22:38 -0400101 }
Robert Phillipsb493eeb2017-09-13 13:10:52 -0400102
Adlai Hollerd71b7b02020-06-08 15:55:00 -0400103 void addWaitOp(GrDrawingManager* drawingMgr, std::unique_ptr<GrOp> op,
104 GrTextureResolveManager textureResolveManager, const GrCaps& caps) {
Chris Dalton08755122019-08-05 16:13:47 -0600105 fHasWaitOp = true;
Adlai Hollerd71b7b02020-06-08 15:55:00 -0400106 this->addOp(drawingMgr, std::move(op), textureResolveManager, caps);
Greg Danielcb324152019-02-25 11:36:53 -0500107 }
108
Adlai Hollerd71b7b02020-06-08 15:55:00 -0400109 void addDrawOp(GrDrawingManager* drawingMgr, std::unique_ptr<GrDrawOp> op,
110 const GrProcessorSet::Analysis& processorAnalysis,
Greg Daniel524e28b2019-11-01 11:48:53 -0400111 GrAppliedClip&& clip, const DstProxyView& dstProxyView,
Chris Dalton08755122019-08-05 16:13:47 -0600112 GrTextureResolveManager textureResolveManager, const GrCaps& caps) {
Adlai Hollerd71b7b02020-06-08 15:55:00 -0400113 auto addDependency = [ drawingMgr, textureResolveManager, &caps, this ] (
Michael Ludwigfcdd0612019-11-25 08:34:31 -0500114 GrSurfaceProxy* p, GrMipMapped mipmapped) {
Greg Danielb20d7e52019-09-03 13:54:39 -0400115 this->addSampledTexture(p);
Adlai Hollerd71b7b02020-06-08 15:55:00 -0400116 this->addDependency(drawingMgr, p, mipmapped, textureResolveManager, caps);
Robert Phillipsb493eeb2017-09-13 13:10:52 -0400117 };
118
119 op->visitProxies(addDependency);
120 clip.visitProxies(addDependency);
Greg Daniel524e28b2019-11-01 11:48:53 -0400121 if (dstProxyView.proxy()) {
122 this->addSampledTexture(dstProxyView.proxy());
123 addDependency(dstProxyView.proxy(), GrMipMapped::kNo);
Robert Phillips2739ab02018-07-27 07:35:55 -0400124 }
Robert Phillipsb493eeb2017-09-13 13:10:52 -0400125
Chris Dalton945ee652019-01-23 09:10:36 -0700126 this->recordOp(std::move(op), processorAnalysis, clip.doesClip() ? &clip : nullptr,
Greg Daniel524e28b2019-11-01 11:48:53 -0400127 &dstProxyView, caps);
Brian Salomon69868af2016-12-22 15:42:51 -0500128 }
robertphillips9199a9f2016-07-13 07:48:43 -0700129
Robert Phillips380b90c2017-08-30 07:41:07 -0400130 void discard();
131
Robert Phillips44e2c5f2020-04-14 13:00:04 -0400132#ifdef SK_DEBUG
133 void dump(bool printDependencies) const override;
134 const char* name() const final { return "Ops"; }
135 int numClips() const override { return fNumClips; }
136 void visitProxies_debugOnly(const GrOp::VisitProxyFunc&) const override;
137#endif
Robert Phillipsc84c0302017-05-08 15:35:11 -0400138
Robert Phillips438d9862019-11-14 12:46:05 -0500139#if GR_TEST_UTILS
140 int numOpChains() const { return fOpChains.count(); }
141 const GrOp* getChain(int index) const { return fOpChains[index].head(); }
142#endif
143
Brian Salomon13540482018-07-09 10:31:47 -0400144private:
Chris Daltonaa3cbb82019-08-21 00:01:21 -0600145 bool isNoOp() const {
Chris Daltona43e2d22019-08-30 01:14:33 -0600146 // TODO: GrLoadOp::kDiscard (i.e., storing a discard) should also be grounds for skipping
147 // execution. We currently don't because of Vulkan. See http://skbug.com/9373.
Chris Daltonaa3cbb82019-08-21 00:01:21 -0600148 //
149 // TODO: We should also consider stencil load/store here. We get away with it for now
150 // because we never discard stencil buffers.
Chris Daltona43e2d22019-08-30 01:14:33 -0600151 return fOpChains.empty() && GrLoadOp::kLoad == fColorLoadOp;
Chris Daltonaa3cbb82019-08-21 00:01:21 -0600152 }
153
Greg Danielf41b2bd2019-08-22 16:19:24 -0400154 void deleteOps();
Robert Phillips9313aa72019-04-09 18:41:27 -0400155
Chris Dalton674f77a2019-09-30 20:49:39 -0600156 enum class StencilContent {
157 kDontCare,
158 kUserBitsCleared, // User bits: cleared
159 // Clip bit: don't care (Ganesh always pre-clears the clip bit.)
160 kPreserved
161 };
162
163 // Lets the caller specify what the content of the stencil buffer should be at the beginning
164 // of the render pass.
165 //
166 // When requesting kClear: Tilers will load the stencil buffer with a "clear" op; non-tilers
167 // will clear the stencil on first load, and then preserve it on subsequent loads. (Preserving
168 // works because renderTargetContexts are required to leave the user bits in a cleared state
169 // once finished.)
170 //
171 // NOTE: initialContent must not be kClear if caps.performStencilClearsAsDraws() is true.
172 void setInitialStencilContent(StencilContent initialContent) {
173 fInitialStencilContent = initialContent;
174 }
175
176 // If a renderTargetContext splits its opsTask, it uses this method to guarantee stencil values
177 // get preserved across its split tasks.
178 void setMustPreserveStencil() { fMustPreserveStencil = true; }
179
Michael Ludwigc39d0c82019-01-15 10:03:43 -0500180 // Must only be called if native color buffer clearing is enabled.
181 void setColorLoadOp(GrLoadOp op, const SkPMColor4f& color);
182 // Sets the clear color to transparent black
183 void setColorLoadOp(GrLoadOp op) {
184 static const SkPMColor4f kDefaultClearColor = {0.f, 0.f, 0.f, 0.f};
185 this->setColorLoadOp(op, kDefaultClearColor);
186 }
187
Chris Dalton6b982802019-06-27 13:53:46 -0600188 enum class CanDiscardPreviousOps : bool {
189 kYes = true,
190 kNo = false
191 };
192
Michael Ludwigc39d0c82019-01-15 10:03:43 -0500193 // Perform book-keeping for a fullscreen clear, regardless of how the clear is implemented later
194 // (i.e. setColorLoadOp(), adding a ClearOp, or adding a GrFillRectOp that covers the device).
195 // Returns true if the clear can be converted into a load op (barring device caps).
Chris Dalton6b982802019-06-27 13:53:46 -0600196 bool resetForFullscreenClear(CanDiscardPreviousOps);
Michael Ludwigc39d0c82019-01-15 10:03:43 -0500197
Brian Salomon588cec72018-11-14 13:56:37 -0500198 class OpChain {
199 public:
200 OpChain(const OpChain&) = delete;
201 OpChain& operator=(const OpChain&) = delete;
Greg Daniel524e28b2019-11-01 11:48:53 -0400202 OpChain(std::unique_ptr<GrOp>, GrProcessorSet::Analysis, GrAppliedClip*,
203 const DstProxyView*);
Brian Salomon588cec72018-11-14 13:56:37 -0500204
205 ~OpChain() {
206 // The ops are stored in a GrMemoryPool and must be explicitly deleted via the pool.
207 SkASSERT(fList.empty());
Brian Salomon54d212e2017-03-21 14:22:38 -0400208 }
Chris Dalton8816b932017-11-29 16:48:25 -0700209
Chris Dalton1706cbf2019-05-21 19:35:29 -0600210 void visitProxies(const GrOp::VisitProxyFunc&) const;
Robert Phillipsc994a932018-06-19 13:09:54 -0400211
Brian Salomon588cec72018-11-14 13:56:37 -0500212 GrOp* head() const { return fList.head(); }
Robert Phillips7c525e62018-06-12 10:11:12 -0400213
Brian Salomon588cec72018-11-14 13:56:37 -0500214 GrAppliedClip* appliedClip() const { return fAppliedClip; }
Greg Daniel524e28b2019-11-01 11:48:53 -0400215 const DstProxyView& dstProxyView() const { return fDstProxyView; }
Brian Salomon588cec72018-11-14 13:56:37 -0500216 const SkRect& bounds() const { return fBounds; }
Chris Dalton8816b932017-11-29 16:48:25 -0700217
Brian Salomon588cec72018-11-14 13:56:37 -0500218 // Deletes all the ops in the chain via the pool.
219 void deleteOps(GrOpMemoryPool* pool);
220
221 // Attempts to move the ops from the passed chain to this chain at the head. Also attempts
222 // to merge ops between the chains. Upon success the passed chain is empty.
223 // Fails when the chains aren't of the same op type, have different clips or dst proxies.
Michael Ludwig28b0c5d2019-12-19 14:51:00 -0500224 bool prependChain(OpChain*, const GrCaps&, GrRecordingContext::Arenas*, GrAuditTrail*);
Brian Salomon588cec72018-11-14 13:56:37 -0500225
226 // Attempts to add 'op' to this chain either by merging or adding to the tail. Returns
227 // 'op' to the caller upon failure, otherwise null. Fails when the op and chain aren't of
228 // the same op type, have different clips or dst proxies.
Chris Dalton945ee652019-01-23 09:10:36 -0700229 std::unique_ptr<GrOp> appendOp(std::unique_ptr<GrOp> op, GrProcessorSet::Analysis,
Greg Daniel524e28b2019-11-01 11:48:53 -0400230 const DstProxyView*, const GrAppliedClip*, const GrCaps&,
Michael Ludwig28b0c5d2019-12-19 14:51:00 -0500231 GrRecordingContext::Arenas*, GrAuditTrail*);
Brian Salomon588cec72018-11-14 13:56:37 -0500232
Greg Daniel15ecdf92019-08-30 15:35:23 -0400233 void setSkipExecuteFlag() { fSkipExecute = true; }
234 bool shouldExecute() const {
235 return SkToBool(this->head()) && !fSkipExecute;
236 }
237
Brian Salomon588cec72018-11-14 13:56:37 -0500238 private:
239 class List {
240 public:
241 List() = default;
242 List(std::unique_ptr<GrOp>);
243 List(List&&);
244 List& operator=(List&& that);
245
246 bool empty() const { return !SkToBool(fHead); }
247 GrOp* head() const { return fHead.get(); }
248 GrOp* tail() const { return fTail; }
249
250 std::unique_ptr<GrOp> popHead();
251 std::unique_ptr<GrOp> removeOp(GrOp* op);
252 void pushHead(std::unique_ptr<GrOp> op);
253 void pushTail(std::unique_ptr<GrOp>);
254
255 void validate() const;
256
257 private:
258 std::unique_ptr<GrOp> fHead;
259 GrOp* fTail = nullptr;
260 };
261
262 void validate() const;
263
Greg Daniel524e28b2019-11-01 11:48:53 -0400264 bool tryConcat(List*, GrProcessorSet::Analysis, const DstProxyView&, const GrAppliedClip*,
Michael Ludwig28b0c5d2019-12-19 14:51:00 -0500265 const SkRect& bounds, const GrCaps&, GrRecordingContext::Arenas*,
Michael Ludwigd0840ec2019-12-12 09:48:38 -0500266 GrAuditTrail*);
Michael Ludwig28b0c5d2019-12-19 14:51:00 -0500267 static List DoConcat(List, List, const GrCaps&, GrRecordingContext::Arenas*, GrAuditTrail*);
Brian Salomon588cec72018-11-14 13:56:37 -0500268
269 List fList;
Chris Dalton945ee652019-01-23 09:10:36 -0700270 GrProcessorSet::Analysis fProcessorAnalysis;
Greg Daniel524e28b2019-11-01 11:48:53 -0400271 DstProxyView fDstProxyView;
Brian Salomon588cec72018-11-14 13:56:37 -0500272 GrAppliedClip* fAppliedClip;
273 SkRect fBounds;
Greg Daniel15ecdf92019-08-30 15:35:23 -0400274
275 // We set this flag to true if any of the ops' proxies fail to instantiate so that we know
276 // not to try and draw the op.
277 bool fSkipExecute = false;
Brian Salomon54d212e2017-03-21 14:22:38 -0400278 };
279
Greg Danielf41b2bd2019-08-22 16:19:24 -0400280
281 bool onIsUsed(GrSurfaceProxy*) const override;
282
Chris Dalton6b498102019-08-01 14:14:52 -0600283 void handleInternalAllocationFailure() override;
Greg Danielaa3dfbe2018-01-29 10:34:25 -0500284
Robert Phillipsd375dbf2017-09-14 12:45:25 -0400285 void gatherProxyIntervals(GrResourceAllocator*) const override;
286
Greg Daniel524e28b2019-11-01 11:48:53 -0400287 void recordOp(std::unique_ptr<GrOp>, GrProcessorSet::Analysis, GrAppliedClip*,
288 const DstProxyView*, const GrCaps& caps);
Brian Salomon2790c522016-12-09 16:32:23 -0500289
Robert Phillipsee683652017-04-26 11:53:10 -0400290 void forwardCombine(const GrCaps&);
bsalomonad792c12015-09-10 11:10:50 -0700291
Chris Dalton16a33c62019-09-24 22:19:17 -0600292 ExpectedOutcome onMakeClosed(const GrCaps& caps, SkIRect* targetUpdateBounds) override;
Chris Daltonaa3cbb82019-08-21 00:01:21 -0600293
Greg Danielf41b2bd2019-08-22 16:19:24 -0400294 friend class GrRenderTargetContextPriv; // for stencil clip state. TODO: this is invasive
Chris Daltonaa3cbb82019-08-21 00:01:21 -0600295
Greg Danielf41b2bd2019-08-22 16:19:24 -0400296 // The RTC and OpsTask have to work together to handle buffer clears. In most cases, buffer
297 // clearing can be done natively, in which case the op list's load ops are sufficient. In other
298 // cases, draw ops must be used, which makes the RTC the best place for those decisions. This,
299 // however, requires that the RTC be able to coordinate with the op list to achieve similar ends
300 friend class GrRenderTargetContext;
301
Michael Ludwig28b0c5d2019-12-19 14:51:00 -0500302 // This is a backpointer to the Arenas that holds the memory for this GrOpsTask's ops. In the
303 // DDL case, the Arenas must have been detached from the original recording context and moved
304 // into the owning DDL.
305 GrRecordingContext::Arenas fArenas;
306 GrAuditTrail* fAuditTrail;
Brian Salomonf1c9eae2020-05-01 15:00:34 -0400307
308 SkSTArray<2, GrOpsTaskClosedObserver*, true> fClosedObservers;
Greg Danielf41b2bd2019-08-22 16:19:24 -0400309
310 GrLoadOp fColorLoadOp = GrLoadOp::kLoad;
311 SkPMColor4f fLoadClearColor = SK_PMColor4fTRANSPARENT;
Chris Dalton674f77a2019-09-30 20:49:39 -0600312 StencilContent fInitialStencilContent = StencilContent::kDontCare;
313 bool fMustPreserveStencil = false;
Greg Danielf41b2bd2019-08-22 16:19:24 -0400314
Brian Salomon3b8486a2020-04-21 12:43:26 -0400315 uint32_t fLastClipStackGenID = SK_InvalidUniqueID;
Greg Danielf41b2bd2019-08-22 16:19:24 -0400316 SkIRect fLastDevClipBounds;
317 int fLastClipNumAnalyticFPs;
csmartdalton7cdda992016-11-01 07:03:03 -0700318
Greg Danielcb324152019-02-25 11:36:53 -0500319 // We must track if we have a wait op so that we don't delete the op when we have a full clear.
Brian Salomon3b8486a2020-04-21 12:43:26 -0400320 bool fHasWaitOp = false;
Greg Danielcb324152019-02-25 11:36:53 -0500321
Greg Danielf41b2bd2019-08-22 16:19:24 -0400322 // For ops/opsTask we have mean: 5 stdDev: 28
323 SkSTArray<25, OpChain, true> fOpChains;
Brian Salomon54d212e2017-03-21 14:22:38 -0400324
Robert Phillipsf6d7eb12017-04-26 14:55:34 -0400325 // MDB TODO: 4096 for the first allocation of the clip space will be huge overkill.
326 // Gather statistics to determine the correct size.
Greg Danielf41b2bd2019-08-22 16:19:24 -0400327 SkArenaAlloc fClipAllocator{4096};
328 SkDEBUGCODE(int fNumClips;)
Brian Salomon54d212e2017-03-21 14:22:38 -0400329
Greg Danielb20d7e52019-09-03 13:54:39 -0400330 // TODO: We could look into this being a set if we find we're adding a lot of duplicates that is
331 // causing slow downs.
Michael Ludwigfcdd0612019-11-25 08:34:31 -0500332 SkTArray<GrSurfaceProxy*, true> fSampledProxies;
Chris Dalton16a33c62019-09-24 22:19:17 -0600333
334 SkRect fTotalBounds = SkRect::MakeEmpty();
Greg Daniel94ed83f2019-09-27 13:05:43 -0400335 SkIRect fClippedContentBounds = SkIRect::MakeEmpty();
joshualitt6db519c2014-10-29 08:48:18 -0700336};
337
reed@google.comac10a2d2010-12-22 21:39:39 +0000338#endif