Chromium Code Reviews| Index: src/gpu/GrDrawTarget.h |
| diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
| index 2a5bbde1a3a55bff9dbc6461522ec50ec474545b..9a7ae491177dd6efdaa2f9b11ba65d460d148698 100644 |
| --- a/src/gpu/GrDrawTarget.h |
| +++ b/src/gpu/GrDrawTarget.h |
| @@ -196,7 +196,7 @@ private: |
| } |
| }; |
| - void recordBatch(GrBatch*); |
| + void recordBatch(GrBatch*, const SkRect& clippedBounds); |
| void forwardCombine(); |
| // Makes a copy of the dst if it is necessary for the draw. Returns false if a copy is required |
| @@ -214,7 +214,11 @@ private: |
| // Used only by drawContextPriv. |
| void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); |
| - SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; |
| + struct RecordedBatch { |
| + sk_sp<GrBatch> fBatch; |
| + SkRect fClippedBounds; |
| + }; |
|
robertphillips
2016/07/08 15:46:14
line up fRecordedBatches with others
?
bsalomon
2016/07/08 17:06:44
Done.
|
| + SkSTArray<256, RecordedBatch, true> fRecordedBatches; |
| // The context is only in service of the clip mask manager, remove once CMM doesn't need this. |
| GrContext* fContext; |
| GrGpu* fGpu; |