| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef GrDrawTarget_DEFINED | 10 #ifndef GrDrawTarget_DEFINED |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 GrPrimitiveType primitiveType() const { return fPrimitiveType; } | 737 GrPrimitiveType primitiveType() const { return fPrimitiveType; } |
| 738 int startVertex() const { return fStartVertex; } | 738 int startVertex() const { return fStartVertex; } |
| 739 int startIndex() const { return fStartIndex; } | 739 int startIndex() const { return fStartIndex; } |
| 740 int vertexCount() const { return fVertexCount; } | 740 int vertexCount() const { return fVertexCount; } |
| 741 int indexCount() const { return fIndexCount; } | 741 int indexCount() const { return fIndexCount; } |
| 742 int verticesPerInstance() const { return fVerticesPerInstance; } | 742 int verticesPerInstance() const { return fVerticesPerInstance; } |
| 743 int indicesPerInstance() const { return fIndicesPerInstance; } | 743 int indicesPerInstance() const { return fIndicesPerInstance; } |
| 744 int instanceCount() const { return fInstanceCount; } | 744 int instanceCount() const { return fInstanceCount; } |
| 745 | 745 |
| 746 bool isIndexed() const { return fIndexCount > 0; } | 746 bool isIndexed() const { return fIndexCount > 0; } |
| 747 #if GR_DEBUG | 747 #if SK_DEBUG |
| 748 bool isInstanced() const; // this version is longer because of asserts | 748 bool isInstanced() const; // this version is longer because of asserts |
| 749 #else | 749 #else |
| 750 bool isInstanced() const { return fInstanceCount > 0; } | 750 bool isInstanced() const { return fInstanceCount > 0; } |
| 751 #endif | 751 #endif |
| 752 | 752 |
| 753 // adds or remove instances | 753 // adds or remove instances |
| 754 void adjustInstanceCount(int instanceOffset); | 754 void adjustInstanceCount(int instanceOffset); |
| 755 // shifts the start vertex | 755 // shifts the start vertex |
| 756 void adjustStartVertex(int vertexOffset); | 756 void adjustStartVertex(int vertexOffset); |
| 757 // shifts the start index | 757 // shifts the start index |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 const GrClipData* fClip; | 866 const GrClipData* fClip; |
| 867 GrDrawState* fDrawState; | 867 GrDrawState* fDrawState; |
| 868 GrDrawState fDefaultDraw
State; | 868 GrDrawState fDefaultDraw
State; |
| 869 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar
get. | 869 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar
get. |
| 870 GrContext* fContext; | 870 GrContext* fContext; |
| 871 | 871 |
| 872 typedef GrRefCnt INHERITED; | 872 typedef GrRefCnt INHERITED; |
| 873 }; | 873 }; |
| 874 | 874 |
| 875 #endif | 875 #endif |
| OLD | NEW |