| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 struct PipelineInfo { | 223 struct PipelineInfo { |
| 224 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor
, | 224 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor
, |
| 225 const GrPrimitiveProcessor* primProc, | 225 const GrPrimitiveProcessor* primProc, |
| 226 const SkRect* devBounds, GrDrawTarget* target); | 226 const SkRect* devBounds, GrDrawTarget* target); |
| 227 | 227 |
| 228 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor
, | 228 PipelineInfo(GrPipelineBuilder* pipelineBuilder, GrScissorState* scissor
, |
| 229 const GrBatch* batch, const SkRect* devBounds, | 229 const GrBatch* batch, const SkRect* devBounds, |
| 230 GrDrawTarget* target); | 230 GrDrawTarget* target); |
| 231 | 231 |
| 232 bool willBlendWithDst(const GrPrimitiveProcessor* primProc) const { | 232 bool willColorBlendWithDst(const GrPrimitiveProcessor* primProc) const { |
| 233 return fPipelineBuilder->willBlendWithDst(primProc); | 233 return fPipelineBuilder->willColorBlendWithDst(primProc); |
| 234 } | 234 } |
| 235 private: | 235 private: |
| 236 friend class GrDrawTarget; | 236 friend class GrDrawTarget; |
| 237 | 237 |
| 238 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); } | 238 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); } |
| 239 | 239 |
| 240 GrPipelineBuilder* fPipelineBuilder; | 240 GrPipelineBuilder* fPipelineBuilder; |
| 241 GrScissorState* fScissor; | 241 GrScissorState* fScissor; |
| 242 GrProcOptInfo fColorPOI; | 242 GrProcOptInfo fColorPOI; |
| 243 GrProcOptInfo fCoveragePOI; | 243 GrProcOptInfo fCoveragePOI; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 virtual bool setupClip(GrPipelineBuilder*, | 342 virtual bool setupClip(GrPipelineBuilder*, |
| 343 GrPipelineBuilder::AutoRestoreFragmentProcessors*, | 343 GrPipelineBuilder::AutoRestoreFragmentProcessors*, |
| 344 GrPipelineBuilder::AutoRestoreStencil*, | 344 GrPipelineBuilder::AutoRestoreStencil*, |
| 345 GrScissorState* scissorState, | 345 GrScissorState* scissorState, |
| 346 const SkRect* devBounds) override; | 346 const SkRect* devBounds) override; |
| 347 | 347 |
| 348 typedef GrDrawTarget INHERITED; | 348 typedef GrDrawTarget INHERITED; |
| 349 }; | 349 }; |
| 350 | 350 |
| 351 #endif | 351 #endif |
| OLD | NEW |