OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
10 | 10 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 bool setupDstReadIfNecessary(const GrPipelineBuilder&, | 207 bool setupDstReadIfNecessary(const GrPipelineBuilder&, |
208 GrRenderTarget*, | 208 GrRenderTarget*, |
209 const GrClip&, | 209 const GrClip&, |
210 const GrPipelineOptimizations& optimizations, | 210 const GrPipelineOptimizations& optimizations, |
211 GrXferProcessor::DstTexture*, | 211 GrXferProcessor::DstTexture*, |
212 const SkRect& batchBounds); | 212 const SkRect& batchBounds); |
213 | 213 |
214 void addDependency(GrDrawTarget* dependedOn); | 214 void addDependency(GrDrawTarget* dependedOn); |
215 | 215 |
216 // Used only by drawContextPriv. | 216 // Used only by drawContextPriv. |
217 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); | 217 void clearStencilClip(const GrFixedClip&, bool insideStencilMask, GrRenderTa
rget*); |
218 | 218 |
219 struct RecordedBatch { | 219 struct RecordedBatch { |
220 sk_sp<GrBatch> fBatch; | 220 sk_sp<GrBatch> fBatch; |
221 SkRect fClippedBounds; | 221 SkRect fClippedBounds; |
222 }; | 222 }; |
223 SkSTArray<256, RecordedBatch, true> fRecordedBatches; | 223 SkSTArray<256, RecordedBatch, true> fRecordedBatches; |
224 GrClearBatch* fLastFullClearBatch; | 224 GrClearBatch* fLastFullClearBatch; |
225 // The context is only in service of the GrClip, remove once it doesn't need
this. | 225 // The context is only in service of the GrClip, remove once it doesn't need
this. |
226 GrContext* fContext; | 226 GrContext* fContext; |
227 GrGpu* fGpu; | 227 GrGpu* fGpu; |
(...skipping 11 matching lines...) Expand all Loading... |
239 bool fDrawBatchBounds; | 239 bool fDrawBatchBounds; |
240 int fMaxBatchLookback; | 240 int fMaxBatchLookback; |
241 int fMaxBatchLookahead; | 241 int fMaxBatchLookahead; |
242 | 242 |
243 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; | 243 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; |
244 | 244 |
245 typedef SkRefCnt INHERITED; | 245 typedef SkRefCnt INHERITED; |
246 }; | 246 }; |
247 | 247 |
248 #endif | 248 #endif |
OLD | NEW |