From bb76ace72bee5d44189b6ee6c81cda174ce9ea30 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Fri, 29 Sep 2017 15:58:22 -0400 Subject: Fall back to non mipped Texture when we can't copy base to mipped texture TBR: bsalomon@google.com Bug: skia:7094 Change-Id: I9d2ba78c4d4332a22e2357cde0598de51299067d Reviewed-on: https://skia-review.googlesource.com/53541 Commit-Queue: Greg Daniel Reviewed-by: Robert Phillips --- src/gpu/mock/GrMockCaps.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gpu/mock') diff --git a/src/gpu/mock/GrMockCaps.h b/src/gpu/mock/GrMockCaps.h index b1d9a84bcf..90cc8243cc 100644 --- a/src/gpu/mock/GrMockCaps.h +++ b/src/gpu/mock/GrMockCaps.h @@ -31,6 +31,10 @@ public: bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override { return fOptions.fConfigOptions[config].fRenderable[withMSAA]; } + bool isConfigCopyable(GrPixelConfig config) const override { + return false; + } + bool canConfigBeImageStorage(GrPixelConfig) const override { return false; } bool initDescForDstCopy(const GrRenderTargetProxy* src, GrSurfaceDesc* desc, bool* rectsMustMatch, bool* disallowSubrect) const override { -- cgit v1.2.3