aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-07-27 14:55:21 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-27 19:49:18 +0000
commit481824480478b4ff02673b7b8a8ef8b234f2ce60 (patch)
tree1e06ecb1aacda0e67194d213e649a641ac649a4f /src
parent883ed3000e2811b494682d04296f8fce1006f16f (diff)
Remove unused kTexture2D_GrSLType and kSampler_GrSLType
Also remove unused GrSLTypeIs2DCombinedSamplerType Bug: skia: Change-Id: I9c670535dbbc30ddeb3636acb5b784580a968ee4 Reviewed-on: https://skia-review.googlesource.com/144035 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/glsl/GrGLSL.cpp4
-rw-r--r--src/gpu/vk/GrVkUniformHandler.cpp4
-rw-r--r--src/gpu/vk/GrVkVaryingHandler.cpp4
3 files changed, 0 insertions, 12 deletions
diff --git a/src/gpu/glsl/GrGLSL.cpp b/src/gpu/glsl/GrGLSL.cpp
index d1881e5558..848f571ee5 100644
--- a/src/gpu/glsl/GrGLSL.cpp
+++ b/src/gpu/glsl/GrGLSL.cpp
@@ -99,10 +99,6 @@ const char* GrGLSLTypeString(const GrShaderCaps* shaderCaps, GrSLType t) {
return "ubyte3";
case kUByte4_GrSLType:
return "ubyte4";
- case kTexture2D_GrSLType:
- return "texture2D";
- case kSampler_GrSLType:
- return "sampler";
}
SK_ABORT("Unknown shader var type.");
return ""; // suppress warning
diff --git a/src/gpu/vk/GrVkUniformHandler.cpp b/src/gpu/vk/GrVkUniformHandler.cpp
index c4611a8bd2..3af61d0111 100644
--- a/src/gpu/vk/GrVkUniformHandler.cpp
+++ b/src/gpu/vk/GrVkUniformHandler.cpp
@@ -79,8 +79,6 @@ uint32_t grsltype_to_alignment_mask(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
break;
}
SK_ABORT("Unexpected type");
@@ -163,8 +161,6 @@ static inline uint32_t grsltype_to_vk_size(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kTexture2D_GrSLType:
- case kSampler_GrSLType:
break;
}
SK_ABORT("Unexpected type");
diff --git a/src/gpu/vk/GrVkVaryingHandler.cpp b/src/gpu/vk/GrVkVaryingHandler.cpp
index 2f7bb5bc04..5686f3e7a4 100644
--- a/src/gpu/vk/GrVkVaryingHandler.cpp
+++ b/src/gpu/vk/GrVkVaryingHandler.cpp
@@ -70,10 +70,6 @@ static inline int grsltype_to_location_size(GrSLType type) {
case kUShort_GrSLType:
case kUByte_GrSLType:
return 1;
- case kTexture2D_GrSLType:
- return 0;
- case kSampler_GrSLType:
- return 0;
}
SK_ABORT("Unexpected type");
return -1;