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

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

Issue 582963002: Solo gp (Closed) Base URL: https://skia.googlesource.com/skia.git@no_peb
Patch Set: rebase Created 6 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
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrProcessor.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrPathRenderer_DEFINED 9 #ifndef GrPathRenderer_DEFINED
10 #define GrPathRenderer_DEFINED 10 #define GrPathRenderer_DEFINED
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 * @param prChain the chain to add path renderers to. 42 * @param prChain the chain to add path renderers to.
43 */ 43 */
44 static void AddPathRenderers(GrContext* context, GrPathRendererChain* prChai n); 44 static void AddPathRenderers(GrContext* context, GrPathRendererChain* prChai n);
45 45
46 46
47 GrPathRenderer(); 47 GrPathRenderer();
48 48
49 /** 49 /**
50 * A caller may wish to use a path renderer to draw a path into the stencil buffer. However, 50 * A caller may wish to use a path renderer to draw a path into the stencil buffer. However,
51 * the path renderer itself may require use of the stencil buffer. Also a pa th renderer may 51 * the path renderer itself may require use of the stencil buffer. Also a pa th renderer may
52 * use a GrEffect coverage stage that sets coverage to zero to eliminate pix els that are covered 52 * use a GrProcessor coverage stage that sets coverage to zero to eliminate pixels that are
53 * by bounding geometry but outside the path. These exterior pixels would st ill be rendered into 53 * covered by bounding geometry but outside the path. These exterior pixels would still be
54 * the stencil. 54 * rendered into the stencil.
55 * 55 *
56 * A GrPathRenderer can provide three levels of support for stenciling paths : 56 * A GrPathRenderer can provide three levels of support for stenciling paths :
57 * 1) kNoRestriction: This is the most general. The caller sets up the GrDra wState on the target 57 * 1) kNoRestriction: This is the most general. The caller sets up the GrDra wState on the target
58 * and calls drawPath(). The path is rendered exactly as the draw state 58 * and calls drawPath(). The path is rendered exactly as the draw state
59 * indicates including support for simultaneous color and stenciling with 59 * indicates including support for simultaneous color and stenciling with
60 * arbitrary stenciling rules. Pixels partially covered b y AA paths are 60 * arbitrary stenciling rules. Pixels partially covered b y AA paths are
61 * affected by the stencil settings. 61 * affected by the stencil settings.
62 * 2) kStencilOnly: The path renderer cannot apply arbitrary stencil rules n or shade and stencil 62 * 2) kStencilOnly: The path renderer cannot apply arbitrary stencil rules n or shade and stencil
63 * simultaneously. The path renderer does support the stenc ilPath() function 63 * simultaneously. The path renderer does support the stenc ilPath() function
64 * which performs no color writes and writes a non-zero ste ncil value to pixels 64 * which performs no color writes and writes a non-zero ste ncil value to pixels
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 SkRect* bounds) { 204 SkRect* bounds) {
205 GetPathDevBounds(path, device->width(), device->height(), matrix, bounds ); 205 GetPathDevBounds(path, device->width(), device->height(), matrix, bounds );
206 } 206 }
207 207
208 private: 208 private:
209 209
210 typedef SkRefCnt INHERITED; 210 typedef SkRefCnt INHERITED;
211 }; 211 };
212 212
213 #endif 213 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698