commit | 9a3fbf7e559ca59a7b67a62be743496da1e31724 | [log] [tgz] |
---|---|---|
author | brianosman <brianosman@google.com> | Thu Jun 09 13:11:08 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Jun 09 13:11:08 2016 -0700 |
tree | c5407ca2c253927f8611530d0b53c9523cc94d0c | |
parent | 7e73108a371dfb1dfa05f0810d5463d94bfa06b7 [diff] [blame] |
Add control of manual mipmapping to GrContextOptions BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2054623003 Committed: https://skia.googlesource.com/skia/+/97e398d98928f9497063594ebe633efe2d0f4968 Review-Url: https://codereview.chromium.org/2054623003
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 2605211..7ca2bf9 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp
@@ -551,7 +551,8 @@ // glGenerateMipmap. Our implementation requires mip-level sampling control. Additionally, // it can be much slower (especially on mobile GPUs), so we opt-in only when necessary: if (fMipMapLevelAndLodControlSupport && - ((kIntel_GrGLVendor == ctxInfo.vendor()) || + (contextOptions.fDoManualMipmapping || + (kIntel_GrGLVendor == ctxInfo.vendor()) || (kNVIDIA_GrGLDriver == ctxInfo.driver() && isMAC) || (kATI_GrGLVendor == ctxInfo.vendor()))) { fDoManualMipmapping = true;