diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-07 12:56:11 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-07 20:47:38 +0000 |
commit | 8fe24272fa6d2fa9eb2458221ed9852d6ec16f56 (patch) | |
tree | 85277ea7a49b36a18243768d7a2f27e44742aa84 /include/gpu/mock | |
parent | a531f2502846c4d4eed42b91589d70525c8de0d2 (diff) |
Add mock config to tools and run through gms and benchs without crashing.
Change-Id: I7e2474129ef2b15899ad2baeb8d18f39d05da98c
Reviewed-on: https://skia-review.googlesource.com/21820
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/gpu/mock')
-rw-r--r-- | include/gpu/mock/GrMockTypes.h (renamed from include/gpu/mock/GrMockOptions.h) | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/gpu/mock/GrMockOptions.h b/include/gpu/mock/GrMockTypes.h index b4d0336db6..c8c2a5a8cd 100644 --- a/include/gpu/mock/GrMockOptions.h +++ b/include/gpu/mock/GrMockTypes.h @@ -10,6 +10,10 @@ #include "GrTypes.h" +struct GrMockTextureInfo { + int fID; +}; + /** * A pointer to this type is used as the GrBackendContext when creating a Mock GrContext. It can be * used to specificy capability options for the mock context. If nullptr is used a default @@ -17,10 +21,11 @@ */ struct GrMockOptions { GrMockOptions() { - // By default RGBA_8888 is textureable and renderable and A8 is texturable. + // By default RGBA_8888 is textureable and renderable and A8 and RGB565 are texturable. fConfigOptions[kRGBA_8888_GrPixelConfig].fRenderable[0] = true; fConfigOptions[kRGBA_8888_GrPixelConfig].fTexturable = true; fConfigOptions[kAlpha_8_GrPixelConfig].fTexturable = true; + fConfigOptions[kRGB_565_GrPixelConfig].fTexturable = true; } struct ConfigOptions { |