aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrCaps.cpp
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/GrCaps.cpp
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/GrCaps.cpp')
-rw-r--r--src/gpu/GrCaps.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp
index db4681a3aa..c70033578c 100644
--- a/src/gpu/GrCaps.cpp
+++ b/src/gpu/GrCaps.cpp
@@ -262,3 +262,10 @@ bool GrCaps::validateSurfaceDesc(const GrSurfaceDesc& desc, GrMipMapped mipped)
return true;
}
+
+GrBackendFormat GrCaps::createFormatFromBackendTexture(const GrBackendTexture& backendTex) const {
+ if (!backendTex.isValid()) {
+ return GrBackendFormat();
+ }
+ return this->onCreateFormatFromBackendTexture(backendTex);
+}