| Index: include/gpu/GrContextOptions.h
|
| diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
|
| index 7b62c94a44ce0ba1f1650de81e73dcf03779d3d4..d5923a328007a9735f75d23a1fe81239412fb697 100644
|
| --- a/include/gpu/GrContextOptions.h
|
| +++ b/include/gpu/GrContextOptions.h
|
| @@ -23,7 +23,8 @@ struct GrContextOptions {
|
| , fDrawBatchBounds(false)
|
| , fMaxBatchLookback(-1)
|
| , fMaxBatchLookahead(-1)
|
| - , fUseShaderSwizzling(false) {}
|
| + , fUseShaderSwizzling(false)
|
| + , fDoManualMipmapping(false) {}
|
|
|
| // Suppress prints for the GrContext.
|
| bool fSuppressPrints;
|
| @@ -67,6 +68,11 @@ struct GrContextOptions {
|
| /** Force us to do all swizzling manually in the shader and don't rely on extensions to do
|
| swizzling. */
|
| bool fUseShaderSwizzling;
|
| +
|
| + /** Construct mipmaps manually, via repeated downsampling draw-calls. This is used when
|
| + the driver's implementation (glGenerateMipmap) contains bugs. This requires mipmap
|
| + level and LOD control (ie desktop or ES3). */
|
| + bool fDoManualMipmapping;
|
| };
|
|
|
| #endif
|
|
|