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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 GrXferProcessor::DstTexture*, | 236 GrXferProcessor::DstTexture*, |
237 const SkRect* drawBounds); | 237 const SkRect* drawBounds); |
238 | 238 |
239 virtual void onDrawBatch(GrBatch*) = 0; | 239 virtual void onDrawBatch(GrBatch*) = 0; |
240 | 240 |
241 private: | 241 private: |
242 virtual void onReset() = 0; | 242 virtual void onReset() = 0; |
243 | 243 |
244 virtual void onFlush() = 0; | 244 virtual void onFlush() = 0; |
245 | 245 |
246 virtual void onStencilPath(const GrPipelineBuilder&, | |
247 const GrPathProcessor*, | |
248 const GrPath*, | |
249 const GrScissorState&, | |
250 const GrStencilSettings&) = 0; | |
251 virtual void onDrawPath(const GrPathProcessor*, | 246 virtual void onDrawPath(const GrPathProcessor*, |
252 const GrPath*, | 247 const GrPath*, |
253 const GrStencilSettings&, | 248 const GrStencilSettings&, |
254 const PipelineInfo&) = 0; | 249 const PipelineInfo&) = 0; |
255 virtual void onDrawPaths(const GrPathProcessor*, | 250 virtual void onDrawPaths(const GrPathProcessor*, |
256 const GrPathRange*, | 251 const GrPathRange*, |
257 const void* indices, | 252 const void* indices, |
258 PathIndexType, | 253 PathIndexType, |
259 const float transformValues[], | 254 const float transformValues[], |
260 PathTransformType, | 255 PathTransformType, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 bool setupClip(const GrPipelineBuilder&, | 318 bool setupClip(const GrPipelineBuilder&, |
324 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, | 319 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, |
325 GrPipelineBuilder::AutoRestoreStencil*, | 320 GrPipelineBuilder::AutoRestoreStencil*, |
326 GrScissorState* scissorState, | 321 GrScissorState* scissorState, |
327 const SkRect* devBounds) override; | 322 const SkRect* devBounds) override; |
328 | 323 |
329 typedef GrDrawTarget INHERITED; | 324 typedef GrDrawTarget INHERITED; |
330 }; | 325 }; |
331 | 326 |
332 #endif | 327 #endif |
OLD | NEW |