OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 bool fDrawBatchBounds; | 60 bool fDrawBatchBounds; |
61 | 61 |
62 /** For debugging, override the default maximum look-back or look-ahead wind
ow for GrBatch | 62 /** For debugging, override the default maximum look-back or look-ahead wind
ow for GrBatch |
63 combining. */ | 63 combining. */ |
64 int fMaxBatchLookback; | 64 int fMaxBatchLookback; |
65 int fMaxBatchLookahead; | 65 int fMaxBatchLookahead; |
66 | 66 |
67 /** Force us to do all swizzling manually in the shader and don't rely on ex
tensions to do | 67 /** Force us to do all swizzling manually in the shader and don't rely on ex
tensions to do |
68 swizzling. */ | 68 swizzling. */ |
69 bool fUseShaderSwizzling; | 69 bool fUseShaderSwizzling; |
70 | |
71 /** Construct mipmaps manually, via repeated downsampling draw-calls. This i
s used when | |
72 the driver's implementation (glGenerateMipmap) contains bugs. This requi
res mipmap | |
73 level and LOD control (ie desktop or ES3). */ | |
74 bool fDoManualMipmapping; | |
75 }; | 70 }; |
76 | 71 |
77 #endif | 72 #endif |
OLD | NEW |