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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 virtual void onDrawPaths(const GrPathProcessor*, | 264 virtual void onDrawPaths(const GrPathProcessor*, |
265 const GrPathRange*, | 265 const GrPathRange*, |
266 const void* indices, | 266 const void* indices, |
267 PathIndexType, | 267 PathIndexType, |
268 const float transformValues[], | 268 const float transformValues[], |
269 PathTransformType, | 269 PathTransformType, |
270 int count, | 270 int count, |
271 const GrStencilSettings&, | 271 const GrStencilSettings&, |
272 const PipelineInfo&) = 0; | 272 const PipelineInfo&) = 0; |
273 | 273 |
274 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect, | 274 virtual void onClear(const SkIRect& rect, GrColor color, GrRenderTarget* ren
derTarget) = 0; |
275 GrRenderTarget* renderTarget) = 0; | |
276 | 275 |
277 /** The subclass's copy surface implementation. It should assume that any cl
ipping has already | 276 /** The subclass's copy surface implementation. It should assume that any cl
ipping has already |
278 been performed on the rect and point and that the GrGpu supports the cop
y. */ | 277 been performed on the rect and point and that the GrGpu supports the cop
y. */ |
279 virtual void onCopySurface(GrSurface* dst, | 278 virtual void onCopySurface(GrSurface* dst, |
280 GrSurface* src, | 279 GrSurface* src, |
281 const SkIRect& srcRect, | 280 const SkIRect& srcRect, |
282 const SkIPoint& dstPoint) = 0; | 281 const SkIPoint& dstPoint) = 0; |
283 | 282 |
284 // Check to see if this set of draw commands has been sent out | 283 // Check to see if this set of draw commands has been sent out |
285 virtual bool isIssued(uint32_t drawID) { return true; } | 284 virtual bool isIssued(uint32_t drawID) { return true; } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 bool setupClip(const GrPipelineBuilder&, | 341 bool setupClip(const GrPipelineBuilder&, |
343 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, | 342 GrPipelineBuilder::AutoRestoreFragmentProcessorState*, |
344 GrPipelineBuilder::AutoRestoreStencil*, | 343 GrPipelineBuilder::AutoRestoreStencil*, |
345 GrScissorState* scissorState, | 344 GrScissorState* scissorState, |
346 const SkRect* devBounds) override; | 345 const SkRect* devBounds) override; |
347 | 346 |
348 typedef GrDrawTarget INHERITED; | 347 typedef GrDrawTarget INHERITED; |
349 }; | 348 }; |
350 | 349 |
351 #endif | 350 #endif |
OLD | NEW |