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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 271 } |
272 static int NumDependencies(const GrDrawTarget* dt) { | 272 static int NumDependencies(const GrDrawTarget* dt) { |
273 return dt->fDependencies.count(); | 273 return dt->fDependencies.count(); |
274 } | 274 } |
275 static GrDrawTarget* Dependency(GrDrawTarget* dt, int index) { | 275 static GrDrawTarget* Dependency(GrDrawTarget* dt, int index) { |
276 return dt->fDependencies[index]; | 276 return dt->fDependencies[index]; |
277 } | 277 } |
278 }; | 278 }; |
279 | 279 |
280 void recordBatch(GrBatch*); | 280 void recordBatch(GrBatch*); |
281 bool installPipelineInDrawBatch(const GrPipelineBuilder*, const GrAppliedCli
p*, GrDrawBatch*); | 281 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder, |
| 282 const GrScissorState* scissor, |
| 283 GrDrawBatch* batch); |
282 | 284 |
283 // Makes a copy of the dst if it is necessary for the draw. Returns false if
a copy is required | 285 // Makes a copy of the dst if it is necessary for the draw. Returns false if
a copy is required |
284 // but couldn't be made. Otherwise, returns true. This method needs to be p
rotected because it | 286 // but couldn't be made. Otherwise, returns true. This method needs to be p
rotected because it |
285 // needs to be accessed by GLPrograms to setup a correct drawstate | 287 // needs to be accessed by GLPrograms to setup a correct drawstate |
286 bool setupDstReadIfNecessary(const GrPipelineBuilder&, | 288 bool setupDstReadIfNecessary(const GrPipelineBuilder&, |
287 const GrProcOptInfo& colorPOI, | 289 const GrProcOptInfo& colorPOI, |
288 const GrProcOptInfo& coveragePOI, | 290 const GrProcOptInfo& coveragePOI, |
289 GrXferProcessor::DstTexture*, | 291 GrXferProcessor::DstTexture*, |
290 const SkRect& batchBounds); | 292 const SkRect& batchBounds); |
291 | 293 |
(...skipping 29 matching lines...) Expand all Loading... |
321 Options fOptions; | 323 Options fOptions; |
322 | 324 |
323 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' | 325 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' |
324 SkTDArray<GrDrawTarget*> fDependencies; | 326 SkTDArray<GrDrawTarget*> fDependencies; |
325 GrRenderTarget* fRenderTarget; | 327 GrRenderTarget* fRenderTarget; |
326 | 328 |
327 typedef SkRefCnt INHERITED; | 329 typedef SkRefCnt INHERITED; |
328 }; | 330 }; |
329 | 331 |
330 #endif | 332 #endif |
OLD | NEW |