aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-07-27 12:05:21 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-27 19:42:46 +0000
commitdb10ed097fea43bc02cf26b11ba1932785ff09ee (patch)
tree87d536cbf887a635a57222e9e4952551c31e8858 /src/gpu
parent49d14e98fe43fdff818e7571c1a61cd5045fedc0 (diff)
Remove unused kBufferSampler_GrSLType
Change-Id: I3e0476d92dfde928ef7d49155afdc3685c4ca03e Reviewed-on: https://skia-review.googlesource.com/144023 Auto-Submit: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrProgramDesc.cpp4
-rw-r--r--src/gpu/glsl/GrGLSL.cpp2
-rw-r--r--src/gpu/vk/GrVkUniformHandler.cpp2
-rw-r--r--src/gpu/vk/GrVkVaryingHandler.cpp2
4 files changed, 0 insertions, 10 deletions
diff --git a/src/gpu/GrProgramDesc.cpp b/src/gpu/GrProgramDesc.cpp
index d2dce7c4e5..f1524db555 100644
--- a/src/gpu/GrProgramDesc.cpp
+++ b/src/gpu/GrProgramDesc.cpp
@@ -34,10 +34,6 @@ static inline uint16_t image_storage_or_sampler_uniform_type_key(GrSLType type )
case kTexture2DRectSampler_GrSLType:
value = 2;
break;
- case kBufferSampler_GrSLType:
- value = 3;
- break;
-
default:
break;
}
diff --git a/src/gpu/glsl/GrGLSL.cpp b/src/gpu/glsl/GrGLSL.cpp
index 807fe94176..d1881e5558 100644
--- a/src/gpu/glsl/GrGLSL.cpp
+++ b/src/gpu/glsl/GrGLSL.cpp
@@ -54,8 +54,6 @@ const char* GrGLSLTypeString(const GrShaderCaps* shaderCaps, GrSLType t) {
return "samplerExternalOES";
case kTexture2DRectSampler_GrSLType:
return "sampler2DRect";
- case kBufferSampler_GrSLType:
- return "samplerBuffer";
case kBool_GrSLType:
return "bool";
case kInt_GrSLType:
diff --git a/src/gpu/vk/GrVkUniformHandler.cpp b/src/gpu/vk/GrVkUniformHandler.cpp
index 848d52a5cd..c4611a8bd2 100644
--- a/src/gpu/vk/GrVkUniformHandler.cpp
+++ b/src/gpu/vk/GrVkUniformHandler.cpp
@@ -79,7 +79,6 @@ uint32_t grsltype_to_alignment_mask(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kBufferSampler_GrSLType:
case kTexture2D_GrSLType:
case kSampler_GrSLType:
break;
@@ -164,7 +163,6 @@ static inline uint32_t grsltype_to_vk_size(GrSLType type) {
case kTexture2DSampler_GrSLType:
case kTextureExternalSampler_GrSLType:
case kTexture2DRectSampler_GrSLType:
- case kBufferSampler_GrSLType:
case kTexture2D_GrSLType:
case kSampler_GrSLType:
break;
diff --git a/src/gpu/vk/GrVkVaryingHandler.cpp b/src/gpu/vk/GrVkVaryingHandler.cpp
index d210aba18f..2f7bb5bc04 100644
--- a/src/gpu/vk/GrVkVaryingHandler.cpp
+++ b/src/gpu/vk/GrVkVaryingHandler.cpp
@@ -60,8 +60,6 @@ static inline int grsltype_to_location_size(GrSLType type) {
return 0;
case kTexture2DRectSampler_GrSLType:
return 0;
- case kBufferSampler_GrSLType:
- return 0;
case kBool_GrSLType:
return 1;
case kInt_GrSLType: // fall through