| Index: src/gpu/GrTest.cpp
|
| diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
|
| index 03a8d54a6d999f135435d26070925e1895e35dae..2a2dc955101fd380fbb50fd5bc7ca90edc3c6aba 100644
|
| --- a/src/gpu/GrTest.cpp
|
| +++ b/src/gpu/GrTest.cpp
|
| @@ -258,10 +258,19 @@ void GrResourceCache::changeTimestamp(uint32_t newTimestamp) { fTimestamp = newT
|
|
|
| class GrPipeline;
|
|
|
| +class MockCaps : public GrCaps {
|
| +public:
|
| + explicit MockCaps(const GrContextOptions& options) : INHERITED(options) {}
|
| + bool isConfigTexturable(GrPixelConfig config) const override { return false; }
|
| + bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override { return false; }
|
| +private:
|
| + typedef GrCaps INHERITED;
|
| +};
|
| +
|
| class MockGpu : public GrGpu {
|
| public:
|
| MockGpu(GrContext* context, const GrContextOptions& options) : INHERITED(context) {
|
| - fCaps.reset(new GrCaps(options));
|
| + fCaps.reset(new MockCaps(options));
|
| }
|
| ~MockGpu() override {}
|
|
|
|
|