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

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

Issue 1407883004: Remove GrPipelineBuilder from getPathRenderer call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 kStencilOnly_DrawType, // draw just to the stencil buffer 49 kStencilOnly_DrawType, // draw just to the stencil buffer
50 kStencilAndColor_DrawType, // draw the stencil and color buffer , no AA 50 kStencilAndColor_DrawType, // draw the stencil and color buffer , no AA
51 kStencilAndColorAntiAlias_DrawType // draw the stencil and color buffer , with partial 51 kStencilAndColorAntiAlias_DrawType // draw the stencil and color buffer , with partial
52 // coverage AA. 52 // coverage AA.
53 }; 53 };
54 /** 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
55 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
56 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
57 StencilSupport in GrPathRenderer.h. */ 57 StencilSupport in GrPathRenderer.h. */
58 GrPathRenderer* getPathRenderer(const GrShaderCaps* shaderCaps, 58 GrPathRenderer* getPathRenderer(const GrShaderCaps* shaderCaps,
59 const GrPipelineBuilder&,
60 const SkMatrix& viewMatrix, 59 const SkMatrix& viewMatrix,
61 const SkPath& path, 60 const SkPath& path,
62 const GrStrokeInfo& stroke, 61 const GrStrokeInfo& stroke,
63 DrawType drawType, 62 DrawType drawType,
63 bool isStencilDisabled,
64 bool isStencilBufferMSAA,
64 StencilSupport* stencilSupport); 65 StencilSupport* stencilSupport);
65 66
66 private: 67 private:
67 GrPathRendererChain(); 68 GrPathRendererChain();
68 69
69 void init(); 70 void init();
70 71
71 enum { 72 enum {
72 kPreAllocCount = 8, 73 kPreAllocCount = 8,
73 }; 74 };
74 bool fInit; 75 bool fInit;
75 GrContext* fOwner; 76 GrContext* fOwner;
76 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain; 77 SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain;
77 78
78 typedef SkRefCnt INHERITED; 79 typedef SkRefCnt INHERITED;
79 }; 80 };
80 81
81 #endif 82 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698