| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 void recordBatch(GrBatch*); | 273 void recordBatch(GrBatch*); |
| 274 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder, | 274 bool installPipelineInDrawBatch(const GrPipelineBuilder* pipelineBuilder, |
| 275 const GrScissorState* scissor, | 275 const GrScissorState* scissor, |
| 276 GrDrawBatch* batch); | 276 GrDrawBatch* batch); |
| 277 | 277 |
| 278 // Makes a copy of the dst if it is necessary for the draw. Returns false if
a copy is required | 278 // Makes a copy of the dst if it is necessary for the draw. Returns false if
a copy is required |
| 279 // but couldn't be made. Otherwise, returns true. This method needs to be p
rotected because it | 279 // but couldn't be made. Otherwise, returns true. This method needs to be p
rotected because it |
| 280 // needs to be accessed by GLPrograms to setup a correct drawstate | 280 // needs to be accessed by GLPrograms to setup a correct drawstate |
| 281 bool setupDstReadIfNecessary(const GrPipelineBuilder&, | 281 bool setupDstReadIfNecessary(const GrPipelineBuilder&, |
| 282 const GrProcOptInfo& colorPOI, | 282 const GrPipelineOptimizations& optimizations, |
| 283 const GrProcOptInfo& coveragePOI, | |
| 284 GrXferProcessor::DstTexture*, | 283 GrXferProcessor::DstTexture*, |
| 285 const SkRect& batchBounds); | 284 const SkRect& batchBounds); |
| 286 | 285 |
| 287 void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatch
Base* batch, | 286 void drawPathBatch(const GrPipelineBuilder& pipelineBuilder, GrDrawPathBatch
Base* batch, |
| 288 GrPathRendering::FillType fill); | 287 GrPathRendering::FillType fill); |
| 289 // Check to see if this set of draw commands has been sent out | 288 // Check to see if this set of draw commands has been sent out |
| 290 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, | 289 void getPathStencilSettingsForFilltype(GrPathRendering::FillType, |
| 291 const GrStencilAttachment*, | 290 const GrStencilAttachment*, |
| 292 GrStencilSettings*); | 291 GrStencilSettings*); |
| 293 bool setupClip(const GrPipelineBuilder&, | 292 bool setupClip(const GrPipelineBuilder&, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 313 uint32_t fFlags; | 312 uint32_t fFlags; |
| 314 | 313 |
| 315 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' | 314 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' |
| 316 SkTDArray<GrDrawTarget*> fDependencies; | 315 SkTDArray<GrDrawTarget*> fDependencies; |
| 317 GrRenderTarget* fRenderTarget; | 316 GrRenderTarget* fRenderTarget; |
| 318 | 317 |
| 319 typedef SkRefCnt INHERITED; | 318 typedef SkRefCnt INHERITED; |
| 320 }; | 319 }; |
| 321 | 320 |
| 322 #endif | 321 #endif |
| OLD | NEW |