aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-09-29 15:58:22 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-29 20:19:14 +0000
commitbb76ace72bee5d44189b6ee6c81cda174ce9ea30 (patch)
tree679a7724b6b8361fd0e29293cb362d3db10cb9ff /include
parent4b85b6dd5a7296f4543b226a534c76ef6f438e55 (diff)
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 <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrCaps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 14673e9e23..817d7152d6 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -145,6 +145,8 @@ public:
virtual bool isConfigTexturable(GrPixelConfig) const = 0;
virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
+ // Returns whether a texture of the given config can be copied to a texture of the same config.
+ virtual bool isConfigCopyable(GrPixelConfig config) const = 0;
virtual bool canConfigBeImageStorage(GrPixelConfig config) const = 0;
bool suppressPrints() const { return fSuppressPrints; }