Calculate pixel config and stencil fmt pairs once per pixel config.
We use a temp FB and stencil buffer to test different stencil formats with
a given pixel config. We then keep a map from pixel config to desired stencil
format.
BUG=skia:
Review URL: https://codereview.chromium.org/1317443004
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp
index e400576..1bcdb20 100644
--- a/src/gpu/GrCaps.cpp
+++ b/src/gpu/GrCaps.cpp
@@ -102,9 +102,9 @@
fMapBufferFlags = kNone_MapFlags;
- fMaxRenderTargetSize = 0;
- fMaxTextureSize = 0;
- fMinTextureSize = 0;
+ fMaxRenderTargetSize = 1;
+ fMaxTextureSize = 1;
+ fMinTextureSize = 1;
fMaxSampleCount = 0;
memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport));