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

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

Issue 22686002: Implement path cover with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix a comment Created 7 years, 2 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/GrTypes.h ('k') | src/gpu/GrClipMaskManager.cpp » ('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 2012 Google Inc. 2 * Copyright 2012 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 GrClipMaskManager_DEFINED 8 #ifndef GrClipMaskManager_DEFINED
9 #define GrClipMaskManager_DEFINED 9 #define GrClipMaskManager_DEFINED
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 if (kStencil_ClipMaskType == fCurrClipMaskType) { 63 if (kStencil_ClipMaskType == fCurrClipMaskType) {
64 fCurrClipMaskType = kNone_ClipMaskType; 64 fCurrClipMaskType = kNone_ClipMaskType;
65 } 65 }
66 } 66 }
67 67
68 GrContext* getContext() { 68 GrContext* getContext() {
69 return fAACache.getContext(); 69 return fAACache.getContext();
70 } 70 }
71 71
72 void setGpu(GrGpu* gpu); 72 void setGpu(GrGpu* gpu);
73
74 void adjustPathStencilParams(GrStencilSettings* settings);
73 private: 75 private:
74 /** 76 /**
75 * Informs the helper function adjustStencilParams() about how the stencil 77 * Informs the helper function adjustStencilParams() about how the stencil
76 * buffer clip is being used. 78 * buffer clip is being used.
77 */ 79 */
78 enum StencilClipMode { 80 enum StencilClipMode {
79 // Draw to the clip bit of the stencil buffer 81 // Draw to the clip bit of the stencil buffer
80 kModifyClip_StencilClipMode, 82 kModifyClip_StencilClipMode,
81 // Clip against the existing representation of the clip in the high bit 83 // Clip against the existing representation of the clip in the high bit
82 // of the stencil buffer. 84 // of the stencil buffer.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 * clipping. 161 * clipping.
160 */ 162 */
161 void adjustStencilParams(GrStencilSettings* settings, 163 void adjustStencilParams(GrStencilSettings* settings,
162 StencilClipMode mode, 164 StencilClipMode mode,
163 int stencilBitCnt); 165 int stencilBitCnt);
164 166
165 typedef SkNoncopyable INHERITED; 167 typedef SkNoncopyable INHERITED;
166 }; 168 };
167 169
168 #endif // GrClipMaskManager_DEFINED 170 #endif // GrClipMaskManager_DEFINED
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698