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

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

Issue 2335343008: Add optional sw generated path coverage mask caching (Closed)
Patch Set: Add .fs to literals in new gm Created 4 years, 3 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 | « gm/pathmaskcache.cpp ('k') | src/gpu/GrContext.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 2015 Google Inc. 2 * Copyright 2015 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 GrContextOptions_DEFINED 8 #ifndef GrContextOptions_DEFINED
9 #define GrContextOptions_DEFINED 9 #define GrContextOptions_DEFINED
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 level and LOD control (ie desktop or ES3). */ 62 level and LOD control (ie desktop or ES3). */
63 bool fDoManualMipmapping = false; 63 bool fDoManualMipmapping = false;
64 64
65 /** Enable instanced rendering as long as all required functionality is supp orted by the HW. 65 /** Enable instanced rendering as long as all required functionality is supp orted by the HW.
66 Instanced rendering is still experimental at this point and disabled by default. */ 66 Instanced rendering is still experimental at this point and disabled by default. */
67 bool fEnableInstancedRendering = false; 67 bool fEnableInstancedRendering = false;
68 68
69 /** Disables distance field rendering for paths. Distance field computation can be expensive 69 /** Disables distance field rendering for paths. Distance field computation can be expensive
70 and yields no benefit if a path is not rendered multiple times with diff erent transforms */ 70 and yields no benefit if a path is not rendered multiple times with diff erent transforms */
71 bool fDisableDistanceFieldPaths = false; 71 bool fDisableDistanceFieldPaths = false;
72
73 /**
74 * If true this allows path mask textures to be cached. This is only really useful if paths
75 * are commonly rendered at the same scale and fractional translation.
76 */
77 bool fAllowPathMaskCaching = false;
78
79 /**
80 * Force all path draws to go through through the sw-rasterize-to-texture co de path (assuming
81 * the path is not recognized as a simpler shape (e.g. a rrect). This is int ended for testing
82 * purposes.
83 */
84 bool fForceSWPathMasks = false;
72 }; 85 };
73 86
74 #endif 87 #endif
OLDNEW
« no previous file with comments | « gm/pathmaskcache.cpp ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698