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

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

Issue 23904003: Remove GrRefCnt.h in favor of SkRefCnt.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrRefCnt.h 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.h ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrDrawState.h ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698