OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | |
10 #ifndef GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
11 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
12 | 10 |
13 #include "GrClipData.h" | 11 #include "GrClipData.h" |
14 #include "GrDrawState.h" | 12 #include "GrDrawState.h" |
15 #include "GrIndexBuffer.h" | 13 #include "GrIndexBuffer.h" |
16 #include "SkMatrix.h" | |
17 #include "GrRefCnt.h" | |
18 | 14 |
19 #include "SkClipStack.h" | 15 #include "SkClipStack.h" |
| 16 #include "SkMatrix.h" |
20 #include "SkPath.h" | 17 #include "SkPath.h" |
| 18 #include "SkTArray.h" |
21 #include "SkTLazy.h" | 19 #include "SkTLazy.h" |
22 #include "SkTArray.h" | |
23 #include "SkXfermode.h" | 20 #include "SkXfermode.h" |
24 | 21 |
25 class GrClipData; | 22 class GrClipData; |
26 class GrDrawTargetCaps; | 23 class GrDrawTargetCaps; |
27 class GrPath; | 24 class GrPath; |
28 class GrVertexBuffer; | 25 class GrVertexBuffer; |
29 class SkStrokeRec; | 26 class SkStrokeRec; |
30 | 27 |
31 class GrDrawTarget : public GrRefCnt { | 28 class GrDrawTarget : public SkRefCnt { |
32 protected: | 29 protected: |
33 class DrawInfo; | 30 class DrawInfo; |
34 | 31 |
35 public: | 32 public: |
36 SK_DECLARE_INST_COUNT(GrDrawTarget) | 33 SK_DECLARE_INST_COUNT(GrDrawTarget) |
37 | 34 |
38 /////////////////////////////////////////////////////////////////////////// | 35 /////////////////////////////////////////////////////////////////////////// |
39 | 36 |
40 // The context may not be fully constructed and should not be used during Gr
DrawTarget | 37 // The context may not be fully constructed and should not be used during Gr
DrawTarget |
41 // construction. | 38 // construction. |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 enum { | 859 enum { |
863 kPreallocGeoSrcStateStackCnt = 4, | 860 kPreallocGeoSrcStateStackCnt = 4, |
864 }; | 861 }; |
865 SkSTArray<kPreallocGeoSrcStateStackCnt, GeometrySrcState, true> fGeoSrcState
Stack; | 862 SkSTArray<kPreallocGeoSrcStateStackCnt, GeometrySrcState, true> fGeoSrcState
Stack; |
866 const GrClipData* fClip; | 863 const GrClipData* fClip; |
867 GrDrawState* fDrawState; | 864 GrDrawState* fDrawState; |
868 GrDrawState fDefaultDraw
State; | 865 GrDrawState fDefaultDraw
State; |
869 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar
get. | 866 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar
get. |
870 GrContext* fContext; | 867 GrContext* fContext; |
871 | 868 |
872 typedef GrRefCnt INHERITED; | 869 typedef SkRefCnt INHERITED; |
873 }; | 870 }; |
874 | 871 |
875 #endif | 872 #endif |
OLD | NEW |