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