Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: not GR_RELEASE Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 #ifdef 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
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
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698