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

Side by Side Diff: include/gpu/GrPathRendererChain.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « include/gpu/GrGpuResourceRef.h ('k') | include/gpu/GrProcessor.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 /* 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 GrPathRendererChain_DEFINED 8 #ifndef GrPathRendererChain_DEFINED
9 #define GrPathRendererChain_DEFINED 9 #define GrPathRendererChain_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 */ 27 */
28 class GrPathRendererChain : public SkRefCnt { 28 class GrPathRendererChain : public SkRefCnt {
29 public: 29 public:
30 // See comments in GrPathRenderer.h 30 // See comments in GrPathRenderer.h
31 enum StencilSupport { 31 enum StencilSupport {
32 kNoSupport_StencilSupport, 32 kNoSupport_StencilSupport,
33 kStencilOnly_StencilSupport, 33 kStencilOnly_StencilSupport,
34 kNoRestriction_StencilSupport, 34 kNoRestriction_StencilSupport,
35 }; 35 };
36 36
37 SK_DECLARE_INST_COUNT(GrPathRendererChain)
38
39 GrPathRendererChain(GrContext* context); 37 GrPathRendererChain(GrContext* context);
40 38
41 ~GrPathRendererChain(); 39 ~GrPathRendererChain();
42 40
43 // takes a ref and unrefs in destructor 41 // takes a ref and unrefs in destructor
44 GrPathRenderer* addPathRenderer(GrPathRenderer* pr); 42 GrPathRenderer* addPathRenderer(GrPathRenderer* pr);
45 43
46 /** Documents how the caller plans to use a GrPathRenderer to draw a path. I t affects the PR 44 /** Documents how the caller plans to use a GrPathRenderer to draw a path. I t affects the PR
47 returned by getPathRenderer */ 45 returned by getPathRenderer */
48 enum DrawType { 46 enum DrawType {
(...skipping 25 matching lines...) Expand all
74 kPreAllocCount = 8, 72 kPreAllocCount = 8,
75 }; 73 };
76 bool fInit; 74 bool fInit;
77 GrContext* fOwner; 75 GrContext* fOwner;
78 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; 76 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain;
79 77
80 typedef SkRefCnt INHERITED; 78 typedef SkRefCnt INHERITED;
81 }; 79 };
82 80
83 #endif 81 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrGpuResourceRef.h ('k') | include/gpu/GrProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698