OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrDrawState_DEFINED | 8 #ifndef GrDrawState_DEFINED |
9 #define GrDrawState_DEFINED | 9 #define GrDrawState_DEFINED |
10 | 10 |
11 #include "GrBackendEffectFactory.h" | 11 #include "GrBackendEffectFactory.h" |
12 #include "GrBlend.h" | 12 #include "GrBlend.h" |
13 #include "GrColor.h" | 13 #include "GrColor.h" |
14 #include "GrEffectStage.h" | 14 #include "GrEffectStage.h" |
15 #include "GrPaint.h" | 15 #include "GrPaint.h" |
16 #include "GrPoint.h" | 16 #include "GrPoint.h" |
17 #include "GrRenderTarget.h" | 17 #include "GrRenderTarget.h" |
18 #include "GrStencil.h" | 18 #include "GrStencil.h" |
19 #include "GrTemplates.h" | 19 #include "GrTemplates.h" |
20 #include "GrTexture.h" | 20 #include "GrTexture.h" |
21 #include "GrTypesPriv.h" | 21 #include "GrTypesPriv.h" |
22 #include "effects/GrSimpleTextureEffect.h" | 22 #include "effects/GrSimpleTextureEffect.h" |
23 | 23 |
24 #include "SkMatrix.h" | 24 #include "SkMatrix.h" |
25 #include "SkPath.h" | |
Chris Dalton
2013/10/07 22:22:45
Is this needed in the .h file?
Kimmo Kinnunen
2013/10/08 12:14:09
Done.
| |
25 #include "SkTypes.h" | 26 #include "SkTypes.h" |
26 #include "SkXfermode.h" | 27 #include "SkXfermode.h" |
27 | 28 |
28 class GrDrawState : public SkRefCnt { | 29 class GrDrawState : public SkRefCnt { |
29 public: | 30 public: |
30 SK_DECLARE_INST_COUNT(GrDrawState) | 31 SK_DECLARE_INST_COUNT(GrDrawState) |
31 | 32 |
32 GrDrawState() { | 33 GrDrawState() { |
33 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;) | 34 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;) |
34 this->reset(); | 35 this->reset(); |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1076 * @param count the number of attributes being set, limited to kMaxVer texAttribCnt. | 1077 * @param count the number of attributes being set, limited to kMaxVer texAttribCnt. |
1077 */ | 1078 */ |
1078 void setVertexAttribs(const GrVertexAttrib attribs[], int count); | 1079 void setVertexAttribs(const GrVertexAttrib attribs[], int count); |
1079 | 1080 |
1080 typedef SkRefCnt INHERITED; | 1081 typedef SkRefCnt INHERITED; |
1081 }; | 1082 }; |
1082 | 1083 |
1083 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); | 1084 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); |
1084 | 1085 |
1085 #endif | 1086 #endif |
OLD | NEW |