aboutsummaryrefslogtreecommitdiff
path: root/src/gpu/graphite/Caps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/graphite/Caps.h')
-rw-r--r--src/gpu/graphite/Caps.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/graphite/Caps.h b/src/gpu/graphite/Caps.h
index 0f6bc2904c..0175594892 100644
--- a/src/gpu/graphite/Caps.h
+++ b/src/gpu/graphite/Caps.h
@@ -212,6 +212,12 @@ public:
// Returns whether compute shaders are supported.
bool computeSupport() const { return fComputeSupport; }
+ /**
+ * Returns true if the given backend supports importing AHardwareBuffers. This will only
+ * ever be supported on Android devices with API level >= 26.
+ */
+ bool supportsAHardwareBufferImages() const { return fSupportsAHardwareBufferImages; }
+
// Returns the skgpu::Swizzle to use when sampling or reading back from a texture with the
// passed in SkColorType and TextureInfo.
skgpu::Swizzle getReadSwizzle(SkColorType, const TextureInfo&) const;
@@ -308,6 +314,7 @@ protected:
bool fMSAARenderToSingleSampledSupport = false;
bool fComputeSupport = false;
+ bool fSupportsAHardwareBufferImages = false;
ResourceBindingRequirements fResourceBindingReqs;