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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 237 |
238 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); } | 238 bool mustSkipDraw() const { return (NULL == fPipelineBuilder); } |
239 | 239 |
240 const GrPipelineBuilder* fPipelineBuilder; | 240 const GrPipelineBuilder* fPipelineBuilder; |
241 GrScissorState* fScissor; | 241 GrScissorState* fScissor; |
242 GrProcOptInfo fColorPOI; | 242 GrProcOptInfo fColorPOI; |
243 GrProcOptInfo fCoveragePOI; | 243 GrProcOptInfo fCoveragePOI; |
244 GrXferProcessor::DstTexture fDstTexture; | 244 GrXferProcessor::DstTexture fDstTexture; |
245 }; | 245 }; |
246 | 246 |
247 void setupPipeline(const PipelineInfo& pipelineInfo, GrPipeline* pipeline); | 247 const GrPipeline* setupPipeline(const PipelineInfo& pipelineInfo, void* pipe
lineAddr); |
248 | 248 |
249 private: | 249 private: |
250 virtual void onReset() = 0; | 250 virtual void onReset() = 0; |
251 | 251 |
252 virtual void onFlush() = 0; | 252 virtual void onFlush() = 0; |
253 | 253 |
254 virtual void onDrawBatch(GrBatch*, const PipelineInfo&) = 0; | 254 virtual void onDrawBatch(GrBatch*, const PipelineInfo&) = 0; |
255 virtual void onStencilPath(const GrPipelineBuilder&, | 255 virtual void onStencilPath(const GrPipelineBuilder&, |
256 const GrPathProcessor*, | 256 const GrPathProcessor*, |
257 const GrPath*, | 257 const GrPath*, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 bool setupClip(const GrPipelineBuilder&, | 342 bool setupClip(const GrPipelineBuilder&, |
343 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, | 343 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, |
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 |