aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkUtil.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-04-18 15:52:36 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-18 20:33:58 +0000
commit9440345a81d6c2372ac0aed937080f3da67439dd (patch)
tree6db32e47129a4469dff10d0f980d29a4d04b07ef /src/gpu/vk/GrVkUtil.h
parent4d8adbccc46b53e44000c433dabade338eb35c6f (diff)
Add backend safe classes for passing in external texture and render targets into gpu
This CL adds the GrBackend* classes as well as just updates the API for SkSurface and SkImage. The implementation on SkSurface/Image and the plumbing down into Ganesh will be in an additional CL. Besides the change to use the type safe classes, we also pull the SurfaceFlags, origin, samples, out of the descriptor and pass those in directly. Bug: skia: Change-Id: I9702981fe26c3d5d7d2cbcf6977ba569d356d854 Reviewed-on: https://skia-review.googlesource.com/13122 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/vk/GrVkUtil.h')
-rw-r--r--src/gpu/vk/GrVkUtil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkUtil.h b/src/gpu/vk/GrVkUtil.h
index ba07bcad4c..72ed483d81 100644
--- a/src/gpu/vk/GrVkUtil.h
+++ b/src/gpu/vk/GrVkUtil.h
@@ -35,7 +35,7 @@ bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format);
/**
* Returns the GrPixelConfig for the given vulkan texture format
*/
-bool GrVkFormatToPixelConfig(VkFormat format, GrPixelConfig* config);
+GrPixelConfig GrVkFormatToPixelConfig(VkFormat format);
/**
* Returns true if the given vulkan texture format is sRGB encoded.