bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2013 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
bsalomon | 4b91f76 | 2015-05-19 09:29:46 -0700 | [diff] [blame] | 8 | #ifndef GrCaps_DEFINED |
| 9 | #define GrCaps_DEFINED |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 10 | |
commit-bot@chromium.org | 8b656c6 | 2013-11-21 15:23:15 +0000 | [diff] [blame] | 11 | #include "GrTypes.h" |
bsalomon | 17168df | 2014-12-09 09:00:49 -0800 | [diff] [blame] | 12 | #include "GrTypesPriv.h" |
cdalton | 1dd0542 | 2015-06-12 09:01:18 -0700 | [diff] [blame] | 13 | #include "GrBlend.h" |
bsalomon | 17168df | 2014-12-09 09:00:49 -0800 | [diff] [blame] | 14 | #include "GrShaderVar.h" |
Brian Salomon | 94efbf5 | 2016-11-29 13:43:05 -0500 | [diff] [blame] | 15 | #include "GrShaderCaps.h" |
commit-bot@chromium.org | 8b656c6 | 2013-11-21 15:23:15 +0000 | [diff] [blame] | 16 | #include "SkRefCnt.h" |
| 17 | #include "SkString.h" |
| 18 | |
bsalomon | 682c269 | 2015-05-22 14:01:46 -0700 | [diff] [blame] | 19 | struct GrContextOptions; |
| 20 | |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 21 | |
| 22 | /** |
bsalomon | 4b91f76 | 2015-05-19 09:29:46 -0700 | [diff] [blame] | 23 | * Represents the capabilities of a GrContext. |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 24 | */ |
bsalomon | 4b91f76 | 2015-05-19 09:29:46 -0700 | [diff] [blame] | 25 | class GrCaps : public SkRefCnt { |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 26 | public: |
bsalomon | 682c269 | 2015-05-22 14:01:46 -0700 | [diff] [blame] | 27 | GrCaps(const GrContextOptions&); |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 28 | |
commit-bot@chromium.org | 8b656c6 | 2013-11-21 15:23:15 +0000 | [diff] [blame] | 29 | virtual SkString dump() const; |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 30 | |
Brian Salomon | 94efbf5 | 2016-11-29 13:43:05 -0500 | [diff] [blame] | 31 | const GrShaderCaps* shaderCaps() const { return fShaderCaps.get(); } |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 32 | |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 33 | bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
commit-bot@chromium.org | 4744231 | 2013-12-19 16:18:01 +0000 | [diff] [blame] | 34 | /** To avoid as-yet-unnecessary complexity we don't allow any partial support of MIP Maps (e.g. |
| 35 | only for POT textures) */ |
| 36 | bool mipMapSupport() const { return fMipMapSupport; } |
brianosman | 64d094d | 2016-03-25 06:01:59 -0700 | [diff] [blame] | 37 | |
| 38 | /** |
| 39 | * Skia convention is that a device only has sRGB support if it supports sRGB formats for both |
| 40 | * textures and framebuffers. In addition: |
| 41 | * Decoding to linear of an sRGB texture can be disabled. |
brianosman | 64d094d | 2016-03-25 06:01:59 -0700 | [diff] [blame] | 42 | */ |
brianosman | a635936 | 2016-03-21 06:55:37 -0700 | [diff] [blame] | 43 | bool srgbSupport() const { return fSRGBSupport; } |
brianosman | 35b784d | 2016-05-05 11:52:53 -0700 | [diff] [blame] | 44 | /** |
| 45 | * Is there support for enabling/disabling sRGB writes for sRGB-capable color buffers? |
| 46 | */ |
| 47 | bool srgbWriteControl() const { return fSRGBWriteControl; } |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 48 | bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
| 49 | bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
commit-bot@chromium.org | 28361fa | 2014-03-28 16:08:05 +0000 | [diff] [blame] | 50 | bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport; } |
commit-bot@chromium.org | a3baf3b | 2014-02-21 18:45:30 +0000 | [diff] [blame] | 51 | bool gpuTracingSupport() const { return fGpuTracingSupport; } |
krajcevski | 78697816 | 2014-07-30 11:25:44 -0700 | [diff] [blame] | 52 | bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSupport; } |
bsalomon | d08ea5f | 2015-02-20 06:58:13 -0800 | [diff] [blame] | 53 | bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |
cdalton | fd4167d | 2015-04-21 11:45:56 -0700 | [diff] [blame] | 54 | bool textureBarrierSupport() const { return fTextureBarrierSupport; } |
cdalton | eb79eea | 2016-02-26 10:39:34 -0800 | [diff] [blame] | 55 | bool sampleLocationsSupport() const { return fSampleLocationsSupport; } |
csmartdalton | 2b5f2cb | 2016-06-10 14:06:32 -0700 | [diff] [blame] | 56 | bool multisampleDisableSupport() const { return fMultisampleDisableSupport; } |
egdaniel | eed519e | 2016-01-15 11:36:18 -0800 | [diff] [blame] | 57 | bool usesMixedSamples() const { return fUsesMixedSamples; } |
csmartdalton | 485a120 | 2016-07-13 10:16:32 -0700 | [diff] [blame] | 58 | bool preferClientSideDynamicBuffers() const { return fPreferClientSideDynamicBuffers; } |
robertphillips@google.com | 2d2e5c4 | 2013-10-30 21:30:43 +0000 | [diff] [blame] | 59 | |
bsalomon | 63b2196 | 2014-11-05 07:05:34 -0800 | [diff] [blame] | 60 | bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } |
joshualitt | 83bc229 | 2015-06-18 14:18:02 -0700 | [diff] [blame] | 61 | bool useDrawInsteadOfPartialRenderTargetWrite() const { |
| 62 | return fUseDrawInsteadOfPartialRenderTargetWrite; |
| 63 | } |
bsalomon | 63b2196 | 2014-11-05 07:05:34 -0800 | [diff] [blame] | 64 | |
bsalomon | babafcc | 2016-02-16 11:36:47 -0800 | [diff] [blame] | 65 | bool useDrawInsteadOfAllRenderTargetWrites() const { |
| 66 | return fUseDrawInsteadOfAllRenderTargetWrites; |
| 67 | } |
| 68 | |
robertphillips | 6392668 | 2015-08-20 09:39:02 -0700 | [diff] [blame] | 69 | bool preferVRAMUseOverFlushes() const { return fPreferVRAMUseOverFlushes; } |
| 70 | |
commit-bot@chromium.org | 160b478 | 2014-05-05 12:32:37 +0000 | [diff] [blame] | 71 | /** |
csmartdalton | e0d3629 | 2016-07-29 08:14:20 -0700 | [diff] [blame] | 72 | * Indicates the level of support for gr_instanced::* functionality. A higher level includes |
| 73 | * all functionality from the levels below it. |
| 74 | */ |
| 75 | enum class InstancedSupport { |
| 76 | kNone, |
| 77 | kBasic, |
| 78 | kMultisampled, |
| 79 | kMixedSampled |
| 80 | }; |
| 81 | |
| 82 | InstancedSupport instancedSupport() const { return fInstancedSupport; } |
| 83 | |
| 84 | bool avoidInstancedDrawsToFPTargets() const { return fAvoidInstancedDrawsToFPTargets; } |
| 85 | |
| 86 | /** |
cdalton | 8917d62 | 2015-05-06 13:40:21 -0700 | [diff] [blame] | 87 | * Indicates the capabilities of the fixed function blend unit. |
| 88 | */ |
| 89 | enum BlendEquationSupport { |
| 90 | kBasic_BlendEquationSupport, //<! Support to select the operator that |
| 91 | // combines src and dst terms. |
| 92 | kAdvanced_BlendEquationSupport, //<! Additional fixed function support for specific |
| 93 | // SVG/PDF blend modes. Requires blend barriers. |
| 94 | kAdvancedCoherent_BlendEquationSupport, //<! Advanced blend equation support that does not |
| 95 | // require blend barriers, and permits overlap. |
| 96 | |
| 97 | kLast_BlendEquationSupport = kAdvancedCoherent_BlendEquationSupport |
| 98 | }; |
| 99 | |
| 100 | BlendEquationSupport blendEquationSupport() const { return fBlendEquationSupport; } |
| 101 | |
| 102 | bool advancedBlendEquationSupport() const { |
| 103 | return fBlendEquationSupport >= kAdvanced_BlendEquationSupport; |
| 104 | } |
| 105 | |
| 106 | bool advancedCoherentBlendEquationSupport() const { |
| 107 | return kAdvancedCoherent_BlendEquationSupport == fBlendEquationSupport; |
| 108 | } |
| 109 | |
cdalton | 1dd0542 | 2015-06-12 09:01:18 -0700 | [diff] [blame] | 110 | bool canUseAdvancedBlendEquation(GrBlendEquation equation) const { |
| 111 | SkASSERT(GrBlendEquationIsAdvanced(equation)); |
| 112 | return SkToBool(fAdvBlendEqBlacklist & (1 << equation)); |
| 113 | } |
| 114 | |
cdalton | 8917d62 | 2015-05-06 13:40:21 -0700 | [diff] [blame] | 115 | /** |
commit-bot@chromium.org | 160b478 | 2014-05-05 12:32:37 +0000 | [diff] [blame] | 116 | * Indicates whether GPU->CPU memory mapping for GPU resources such as vertex buffers and |
| 117 | * textures allows partial mappings or full mappings. |
| 118 | */ |
| 119 | enum MapFlags { |
| 120 | kNone_MapFlags = 0x0, //<! Cannot map the resource. |
| 121 | |
| 122 | kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be set for any of |
| 123 | // the other flags to have meaning.k |
| 124 | kSubset_MapFlag = 0x2, //<! The resource can be partially mapped. |
| 125 | }; |
| 126 | |
| 127 | uint32_t mapBufferFlags() const { return fMapBufferFlags; } |
| 128 | |
robertphillips@google.com | 2d2e5c4 | 2013-10-30 21:30:43 +0000 | [diff] [blame] | 129 | // Scratch textures not being reused means that those scratch textures |
skia.committer@gmail.com | 7ed98df | 2013-10-31 07:01:53 +0000 | [diff] [blame] | 130 | // that we upload to (i.e., don't have a render target) will not be |
robertphillips@google.com | 2d2e5c4 | 2013-10-30 21:30:43 +0000 | [diff] [blame] | 131 | // recycled in the texture cache. This is to prevent ghosting by drivers |
| 132 | // (in particular for deferred architectures). |
commit-bot@chromium.org | b835652 | 2013-07-18 22:26:39 +0000 | [diff] [blame] | 133 | bool reuseScratchTextures() const { return fReuseScratchTextures; } |
robertphillips | 1b8e1b5 | 2015-06-24 06:54:10 -0700 | [diff] [blame] | 134 | bool reuseScratchBuffers() const { return fReuseScratchBuffers; } |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 135 | |
bsalomon | 7dbd45d | 2016-03-23 10:40:53 -0700 | [diff] [blame] | 136 | /// maximum number of attribute values per vertex |
| 137 | int maxVertexAttributes() const { return fMaxVertexAttributes; } |
| 138 | |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 139 | int maxRenderTargetSize() const { return fMaxRenderTargetSize; } |
| 140 | int maxTextureSize() const { return fMaxTextureSize; } |
bsalomon | 8c07b7a | 2015-11-02 11:36:52 -0800 | [diff] [blame] | 141 | /** This is the maximum tile size to use by GPU devices for rendering sw-backed images/bitmaps. |
| 142 | It is usually the max texture size, unless we're overriding it for testing. */ |
| 143 | int maxTileSize() const { SkASSERT(fMaxTileSize <= fMaxTextureSize); return fMaxTileSize; } |
bsalomon | c59a1df | 2015-06-01 07:13:42 -0700 | [diff] [blame] | 144 | |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 145 | // Will be 0 if MSAA is not supported |
egdaniel | eed519e | 2016-01-15 11:36:18 -0800 | [diff] [blame] | 146 | int maxColorSampleCount() const { return fMaxColorSampleCount; } |
| 147 | // Will be 0 if MSAA is not supported |
| 148 | int maxStencilSampleCount() const { return fMaxStencilSampleCount; } |
cdalton | af8bc7d | 2016-02-05 09:35:20 -0800 | [diff] [blame] | 149 | // Will be 0 if raster multisample is not supported. Raster multisample is a special HW mode |
| 150 | // where the rasterizer runs with more samples than are in the target framebuffer. |
| 151 | int maxRasterSamples() const { return fMaxRasterSamples; } |
egdaniel | eed519e | 2016-01-15 11:36:18 -0800 | [diff] [blame] | 152 | // We require the sample count to be less than maxColorSampleCount and maxStencilSampleCount. |
| 153 | // If we are using mixed samples, we only care about stencil. |
| 154 | int maxSampleCount() const { |
| 155 | if (this->usesMixedSamples()) { |
| 156 | return this->maxStencilSampleCount(); |
| 157 | } else { |
| 158 | return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCount()); |
| 159 | } |
| 160 | } |
| 161 | |
csmartdalton | 9bc1187 | 2016-08-09 12:42:47 -0700 | [diff] [blame] | 162 | int maxWindowRectangles() const { return fMaxWindowRectangles; } |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 163 | |
bsalomon | 41e4384e | 2016-01-08 09:12:44 -0800 | [diff] [blame] | 164 | virtual bool isConfigTexturable(GrPixelConfig config) const = 0; |
| 165 | virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; |
Brian Salomon | f9f4512 | 2016-11-29 11:59:17 -0500 | [diff] [blame] | 166 | virtual bool canConfigBeImageStorage(GrPixelConfig config) const = 0; |
commit-bot@chromium.org | 42dc813 | 2014-05-27 19:26:59 +0000 | [diff] [blame] | 167 | |
robertphillips | caef345 | 2015-11-11 13:18:11 -0800 | [diff] [blame] | 168 | bool suppressPrints() const { return fSuppressPrints; } |
| 169 | |
| 170 | bool immediateFlush() const { return fImmediateFlush; } |
bsalomon | 682c269 | 2015-05-22 14:01:46 -0700 | [diff] [blame] | 171 | |
cdalton | 397536c | 2016-03-25 12:15:03 -0700 | [diff] [blame] | 172 | size_t bufferMapThreshold() const { |
| 173 | SkASSERT(fBufferMapThreshold >= 0); |
| 174 | return fBufferMapThreshold; |
joshualitt | 7224c86 | 2015-05-29 06:46:47 -0700 | [diff] [blame] | 175 | } |
bsalomon | 682c269 | 2015-05-22 14:01:46 -0700 | [diff] [blame] | 176 | |
egdaniel | 51c8d40 | 2015-08-06 10:54:13 -0700 | [diff] [blame] | 177 | bool fullClearIsFree() const { return fFullClearIsFree; } |
| 178 | |
Mike Klein | fc6c37b | 2016-09-27 09:34:10 -0400 | [diff] [blame] | 179 | /** True in environments that will issue errors if memory uploaded to buffers |
bsalomon | 7dea7b7 | 2015-08-19 08:26:51 -0700 | [diff] [blame] | 180 | is not initialized (even if not read by draw calls). */ |
| 181 | bool mustClearUploadedBufferData() const { return fMustClearUploadedBufferData; } |
| 182 | |
ethannicholas | 28ef445 | 2016-03-25 09:26:03 -0700 | [diff] [blame] | 183 | bool sampleShadingSupport() const { return fSampleShadingSupport; } |
| 184 | |
jvanverth | 84741b3 | 2016-09-30 08:39:02 -0700 | [diff] [blame] | 185 | bool fenceSyncSupport() const { return fFenceSyncSupport; } |
| 186 | |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 187 | protected: |
bsalomon | 4ee6bd8 | 2015-05-27 13:23:23 -0700 | [diff] [blame] | 188 | /** Subclasses must call this at the end of their constructors in order to apply caps |
| 189 | overrides requested by the client. Note that overrides will only reduce the caps never |
| 190 | expand them. */ |
| 191 | void applyOptionsOverrides(const GrContextOptions& options); |
| 192 | |
bungeman | 6bd5284 | 2016-10-27 09:30:08 -0700 | [diff] [blame] | 193 | sk_sp<GrShaderCaps> fShaderCaps; |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 194 | |
joshualitt | 83bc229 | 2015-06-18 14:18:02 -0700 | [diff] [blame] | 195 | bool fNPOTTextureTileSupport : 1; |
| 196 | bool fMipMapSupport : 1; |
brianosman | a635936 | 2016-03-21 06:55:37 -0700 | [diff] [blame] | 197 | bool fSRGBSupport : 1; |
brianosman | 35b784d | 2016-05-05 11:52:53 -0700 | [diff] [blame] | 198 | bool fSRGBWriteControl : 1; |
joshualitt | 83bc229 | 2015-06-18 14:18:02 -0700 | [diff] [blame] | 199 | bool fTwoSidedStencilSupport : 1; |
| 200 | bool fStencilWrapOpsSupport : 1; |
| 201 | bool fDiscardRenderTargetSupport : 1; |
| 202 | bool fReuseScratchTextures : 1; |
robertphillips | 1b8e1b5 | 2015-06-24 06:54:10 -0700 | [diff] [blame] | 203 | bool fReuseScratchBuffers : 1; |
joshualitt | 83bc229 | 2015-06-18 14:18:02 -0700 | [diff] [blame] | 204 | bool fGpuTracingSupport : 1; |
| 205 | bool fCompressedTexSubImageSupport : 1; |
| 206 | bool fOversizedStencilSupport : 1; |
| 207 | bool fTextureBarrierSupport : 1; |
cdalton | eb79eea | 2016-02-26 10:39:34 -0800 | [diff] [blame] | 208 | bool fSampleLocationsSupport : 1; |
csmartdalton | 2b5f2cb | 2016-06-10 14:06:32 -0700 | [diff] [blame] | 209 | bool fMultisampleDisableSupport : 1; |
egdaniel | eed519e | 2016-01-15 11:36:18 -0800 | [diff] [blame] | 210 | bool fUsesMixedSamples : 1; |
csmartdalton | 485a120 | 2016-07-13 10:16:32 -0700 | [diff] [blame] | 211 | bool fPreferClientSideDynamicBuffers : 1; |
egdaniel | 51c8d40 | 2015-08-06 10:54:13 -0700 | [diff] [blame] | 212 | bool fFullClearIsFree : 1; |
bsalomon | 7dea7b7 | 2015-08-19 08:26:51 -0700 | [diff] [blame] | 213 | bool fMustClearUploadedBufferData : 1; |
robertphillips | 1b8e1b5 | 2015-06-24 06:54:10 -0700 | [diff] [blame] | 214 | |
bsalomon | 63b2196 | 2014-11-05 07:05:34 -0800 | [diff] [blame] | 215 | // Driver workaround |
joshualitt | 83bc229 | 2015-06-18 14:18:02 -0700 | [diff] [blame] | 216 | bool fUseDrawInsteadOfClear : 1; |
| 217 | bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; |
bsalomon | babafcc | 2016-02-16 11:36:47 -0800 | [diff] [blame] | 218 | bool fUseDrawInsteadOfAllRenderTargetWrites : 1; |
csmartdalton | e0d3629 | 2016-07-29 08:14:20 -0700 | [diff] [blame] | 219 | bool fAvoidInstancedDrawsToFPTargets : 1; |
bsalomon | 63b2196 | 2014-11-05 07:05:34 -0800 | [diff] [blame] | 220 | |
robertphillips | 6392668 | 2015-08-20 09:39:02 -0700 | [diff] [blame] | 221 | // ANGLE workaround |
| 222 | bool fPreferVRAMUseOverFlushes : 1; |
| 223 | |
ethannicholas | 28ef445 | 2016-03-25 09:26:03 -0700 | [diff] [blame] | 224 | bool fSampleShadingSupport : 1; |
jvanverth | 84741b3 | 2016-09-30 08:39:02 -0700 | [diff] [blame] | 225 | // TODO: this may need to be an enum to support different fence types |
| 226 | bool fFenceSyncSupport : 1; |
ethannicholas | 28ef445 | 2016-03-25 09:26:03 -0700 | [diff] [blame] | 227 | |
csmartdalton | e0d3629 | 2016-07-29 08:14:20 -0700 | [diff] [blame] | 228 | InstancedSupport fInstancedSupport; |
| 229 | |
cdalton | 8917d62 | 2015-05-06 13:40:21 -0700 | [diff] [blame] | 230 | BlendEquationSupport fBlendEquationSupport; |
cdalton | 1dd0542 | 2015-06-12 09:01:18 -0700 | [diff] [blame] | 231 | uint32_t fAdvBlendEqBlacklist; |
| 232 | GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); |
| 233 | |
commit-bot@chromium.org | 160b478 | 2014-05-05 12:32:37 +0000 | [diff] [blame] | 234 | uint32_t fMapBufferFlags; |
cdalton | 397536c | 2016-03-25 12:15:03 -0700 | [diff] [blame] | 235 | int fBufferMapThreshold; |
commit-bot@chromium.org | 160b478 | 2014-05-05 12:32:37 +0000 | [diff] [blame] | 236 | |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 237 | int fMaxRenderTargetSize; |
bsalomon | 7dbd45d | 2016-03-23 10:40:53 -0700 | [diff] [blame] | 238 | int fMaxVertexAttributes; |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 239 | int fMaxTextureSize; |
bsalomon | 8c07b7a | 2015-11-02 11:36:52 -0800 | [diff] [blame] | 240 | int fMaxTileSize; |
egdaniel | eed519e | 2016-01-15 11:36:18 -0800 | [diff] [blame] | 241 | int fMaxColorSampleCount; |
| 242 | int fMaxStencilSampleCount; |
cdalton | af8bc7d | 2016-02-05 09:35:20 -0800 | [diff] [blame] | 243 | int fMaxRasterSamples; |
csmartdalton | 9bc1187 | 2016-08-09 12:42:47 -0700 | [diff] [blame] | 244 | int fMaxWindowRectangles; |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 245 | |
egdaniel | bc127a3 | 2014-09-19 12:07:43 -0700 | [diff] [blame] | 246 | private: |
Mike Klein | fc6c37b | 2016-09-27 09:34:10 -0400 | [diff] [blame] | 247 | virtual void onApplyOptionsOverrides(const GrContextOptions&) {} |
egdaniel | b7e7d57 | 2015-11-04 04:23:53 -0800 | [diff] [blame] | 248 | |
robertphillips | caef345 | 2015-11-11 13:18:11 -0800 | [diff] [blame] | 249 | bool fSuppressPrints : 1; |
| 250 | bool fImmediateFlush: 1; |
bsalomon | 682c269 | 2015-05-22 14:01:46 -0700 | [diff] [blame] | 251 | |
bsalomon@google.com | c26d94f | 2013-03-25 18:19:00 +0000 | [diff] [blame] | 252 | typedef SkRefCnt INHERITED; |
| 253 | }; |
| 254 | |
| 255 | #endif |