aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/mock
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-11-04 15:22:22 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-06 20:44:19 +0000
commitfddb6c03990f3eb3dfd90a14aacddb82613591dd (patch)
treef4e0f5aa228e7869287b33ab17e91872d131b189 /include/gpu/mock
parentb35344a9d941b9e660956cccdfa4dc253af4255a (diff)
Setup CCPR testing with GrMockContext
Beefs up the mock context to be able to support CCPR, sets up a framework for testing CCPR with the mock context, and adds a new test. Bug: skia: Change-Id: If95f92726f7b1a7f52ad04ca8126551f58ea8032 Reviewed-on: https://skia-review.googlesource.com/67980 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'include/gpu/mock')
-rw-r--r--include/gpu/mock/GrMockTypes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gpu/mock/GrMockTypes.h b/include/gpu/mock/GrMockTypes.h
index c8c2a5a8cd..81eeaba8b6 100644
--- a/include/gpu/mock/GrMockTypes.h
+++ b/include/gpu/mock/GrMockTypes.h
@@ -34,10 +34,20 @@ struct GrMockOptions {
bool fTexturable = false;
};
+ // GPU options.
+ bool fInstanceAttribSupport = false;
+ uint32_t fMapBufferFlags = 0;
int fMaxTextureSize = 2048;
int fMaxRenderTargetSize = 2048;
int fMaxVertexAttributes = 16;
ConfigOptions fConfigOptions[kGrPixelConfigCnt];
+
+ // Shader options.
+ bool fGeometryShaderSupport = false;
+ bool fTexelBufferSupport = false;
+ bool fIntegerSupport = false;
+ bool fFlatInterpolationSupport = false;
+ int fMaxVertexSamplers = 0;
};
#endif