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

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

Issue 142543007: Revert of r13384 (Stateful PathRenderer implementation) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 10 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 | « include/gpu/GrContext.h ('k') | src/gpu/GrAAConvexPathRenderer.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
11 #include "SkPath.h"
12 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
13 #include "SkTArray.h" 12 #include "SkTArray.h"
14 13
15 class GrContext; 14 class GrContext;
16 class GrDrawTarget; 15 class GrDrawTarget;
17 class GrPathRenderer; 16 class GrPathRenderer;
18 class SkPath; 17 class SkPath;
19 class SkStrokeRec; 18 class SkStrokeRec;
20 19
21 /** 20 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // coverage AA. 52 // coverage AA.
54 }; 53 };
55 /** Returns a GrPathRenderer compatible with the request if one is available . If the caller 54 /** Returns a GrPathRenderer compatible with the request if one is available . If the caller
56 is drawing the path to the stencil buffer then stencilSupport can be use d to determine 55 is drawing the path to the stencil buffer then stencilSupport can be use d to determine
57 whether the path can be rendered with arbitrary stencil rules or not. Se e comments on 56 whether the path can be rendered with arbitrary stencil rules or not. Se e comments on
58 StencilSupport in GrPathRenderer.h. */ 57 StencilSupport in GrPathRenderer.h. */
59 GrPathRenderer* getPathRenderer(const SkPath& path, 58 GrPathRenderer* getPathRenderer(const SkPath& path,
60 const SkStrokeRec& rec, 59 const SkStrokeRec& rec,
61 const GrDrawTarget* target, 60 const GrDrawTarget* target,
62 DrawType drawType, 61 DrawType drawType,
63 SkPath::FillType fillType,
64 StencilSupport* stencilSupport); 62 StencilSupport* stencilSupport);
65 63
66 private: 64 private:
67 GrPathRendererChain(); 65 GrPathRendererChain();
68 66
69 void init(); 67 void init();
70 68
71 enum { 69 enum {
72 kPreAllocCount = 8, 70 kPreAllocCount = 8,
73 }; 71 };
74 bool fInit; 72 bool fInit;
75 GrContext* fOwner; 73 GrContext* fOwner;
76 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; 74 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain;
77 75
78 typedef SkRefCnt INHERITED; 76 typedef SkRefCnt INHERITED;
79 }; 77 };
80 78
81 #endif 79 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrAAConvexPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698