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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
399 void drawIndexedInstances(GrPrimitiveType type, | 399 void drawIndexedInstances(GrPrimitiveType type, |
400 int instanceCount, | 400 int instanceCount, |
401 int verticesPerInstance, | 401 int verticesPerInstance, |
402 int indicesPerInstance, | 402 int indicesPerInstance, |
403 const SkRect* devBounds = NULL); | 403 const SkRect* devBounds = NULL); |
404 | 404 |
405 /** | 405 /** |
406 * Clear the current render target if one isn't passed in. Ignores the | 406 * Clear the current render target if one isn't passed in. Ignores the |
407 * clip and all other draw state (blend mode, stages, etc). Clears the | 407 * clip and all other draw state (blend mode, stages, etc). Clears the |
408 * whole thing if rect is NULL, otherwise just the rect. | 408 * whole thing if rect is NULL, otherwise just the rect. |
409 */ | 409 */ |
bsalomon
2013/10/31 19:09:00
doc?
robertphillips
2013/10/31 21:45:19
Done.
| |
410 virtual void clear(const SkIRect* rect, | 410 virtual void clear(const SkIRect* rect, |
411 GrColor color, | 411 GrColor color, |
412 bool canIgnoreRect, | |
412 GrRenderTarget* renderTarget = NULL) = 0; | 413 GrRenderTarget* renderTarget = NULL) = 0; |
413 | 414 |
414 /** | 415 /** |
415 * Copies a pixel rectangle from one surface to another. This call may final ize | 416 * Copies a pixel rectangle from one surface to another. This call may final ize |
416 * reserved vertex/index data (as though a draw call was made). The src pixe ls | 417 * reserved vertex/index data (as though a draw call was made). The src pixe ls |
417 * copied are specified by srcRect. They are copied to a rect of the same | 418 * copied are specified by srcRect. They are copied to a rect of the same |
418 * size in dst with top left at dstPoint. If the src rect is clipped by the | 419 * size in dst with top left at dstPoint. If the src rect is clipped by the |
419 * src bounds then pixel values in the dst rect corresponding to area clipp ed | 420 * src bounds then pixel values in the dst rect corresponding to area clipp ed |
420 * by the src rect are not overwritten. This method can fail and return fals e | 421 * by the src rect are not overwritten. This method can fail and return fals e |
421 * depending on the type of surface, configs, etc, and the backend-specific | 422 * depending on the type of surface, configs, etc, and the backend-specific |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
875 const GrClipData* fClip; | 876 const GrClipData* fClip; |
876 GrDrawState* fDrawState; | 877 GrDrawState* fDrawState; |
877 GrDrawState fDefaultDraw State; | 878 GrDrawState fDefaultDraw State; |
878 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get. | 879 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get. |
879 GrContext* fContext; | 880 GrContext* fContext; |
880 | 881 |
881 typedef SkRefCnt INHERITED; | 882 typedef SkRefCnt INHERITED; |
882 }; | 883 }; |
883 | 884 |
884 #endif | 885 #endif |
OLD | NEW |