aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlCaps.mm
diff options
context:
space:
mode:
authorGravatar Timothy Liang <timliang@google.com>2018-06-28 15:50:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-28 20:21:17 +0000
commit036fdfe5aa1266dbc35f0a2c680f648b62b9c28b (patch)
tree5daf6dd36649795833724d954994438c9ab35dd2 /src/gpu/mtl/GrMtlCaps.mm
parentbe0ab883e796b190cd20a4b1cfaedea932f9e0bf (diff)
implemented getting format from texture as virtual in gpu caps
Bug: skia: Change-Id: If6bbbd212ff472ea322d2bbed61995fe7ba85df7 Reviewed-on: https://skia-review.googlesource.com/138240 Commit-Queue: Timothy Liang <timliang@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlCaps.mm')
-rw-r--r--src/gpu/mtl/GrMtlCaps.mm9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlCaps.mm b/src/gpu/mtl/GrMtlCaps.mm
index 93d801fd72..a1ecf08c35 100644
--- a/src/gpu/mtl/GrMtlCaps.mm
+++ b/src/gpu/mtl/GrMtlCaps.mm
@@ -7,6 +7,7 @@
#include "GrMtlCaps.h"
+#include "GrBackendSurface.h"
#include "GrShaderCaps.h"
GrMtlCaps::GrMtlCaps(const GrContextOptions& contextOptions, const id<MTLDevice> device,
@@ -314,3 +315,11 @@ void GrMtlCaps::initConfigTable() {
info = &fConfigTable[kRGBA_half_GrPixelConfig];
info->fFlags = ConfigInfo::kAllFlags;
}
+
+#ifdef GR_TEST_UTILS
+GrBackendFormat GrMtlCaps::onCreateFormatFromBackendTexture(
+ const GrBackendTexture& backendTex) const {
+ return GrBackendFormat(); // Metal BackendFormat not yet implemented.
+}
+#endif
+