From: Brian Salomon Date: Wed, 16 Nov 2016 17:55:57 +0000 (-0500) Subject: Rename kTexture2DISampler to kITexture2DSampler. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~73^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8f0002f0c2f23167f1e6b3ae3f77d3c7768cac3;p=platform%2Fupstream%2FlibSkiaSharp.git Rename kTexture2DISampler to kITexture2DSampler. Also remove unused kGrSLTypeCount. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4903 Change-Id: I7f934c56515424b2668886dec2f16296a1256e2c Reviewed-on: https://skia-review.googlesource.com/4903 Commit-Queue: Brian Salomon Reviewed-by: Chris Dalton --- diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h index 2fa4c3a..72ae2f7 100644 --- a/include/gpu/GrTypesPriv.h +++ b/include/gpu/GrTypesPriv.h @@ -28,16 +28,13 @@ enum GrSLType { kMat33f_GrSLType, kMat44f_GrSLType, kTexture2DSampler_GrSLType, - kTexture2DISampler_GrSLType, + kITexture2DSampler_GrSLType, kTextureExternalSampler_GrSLType, kTexture2DRectSampler_GrSLType, kTextureBufferSampler_GrSLType, kTexture2D_GrSLType, kSampler_GrSLType, - - kLast_GrSLType = kSampler_GrSLType }; -static const int kGrSLTypeCount = kLast_GrSLType + 1; enum GrShaderType { kVertex_GrShaderType, @@ -97,7 +94,7 @@ static inline bool GrSLTypeIsFloatType(GrSLType type) { case kVoid_GrSLType: case kTexture2DSampler_GrSLType: - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: case kTextureExternalSampler_GrSLType: case kTexture2DRectSampler_GrSLType: case kTextureBufferSampler_GrSLType: @@ -115,7 +112,7 @@ static inline bool GrSLTypeIsFloatType(GrSLType type) { static inline bool GrSLTypeIs2DCombinedSamplerType(GrSLType type) { switch (type) { case kTexture2DSampler_GrSLType: - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: case kTextureExternalSampler_GrSLType: case kTexture2DRectSampler_GrSLType: return true; @@ -143,7 +140,7 @@ static inline bool GrSLTypeIs2DCombinedSamplerType(GrSLType type) { static inline bool GrSLTypeIsCombinedSamplerType(GrSLType type) { switch (type) { case kTexture2DSampler_GrSLType: - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: case kTextureExternalSampler_GrSLType: case kTexture2DRectSampler_GrSLType: case kTextureBufferSampler_GrSLType: @@ -180,7 +177,7 @@ static inline bool GrSLTypeAcceptsPrecision(GrSLType type) { case kMat33f_GrSLType: case kMat44f_GrSLType: case kTexture2DSampler_GrSLType: - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: case kTextureExternalSampler_GrSLType: case kTexture2DRectSampler_GrSLType: case kTextureBufferSampler_GrSLType: diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h index 0c40b60..da0eae0 100644 --- a/src/gpu/gl/GrGLGpu.h +++ b/src/gpu/gl/GrGLGpu.h @@ -617,7 +617,7 @@ private: switch (texture->texturePriv().samplerType()) { case kTexture2DSampler_GrSLType: return 0; - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: return 1; case kTexture2DRectSampler_GrSLType: return 2; diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp index 9f213fb..0174452 100644 --- a/src/gpu/gl/GrGLTexture.cpp +++ b/src/gpu/gl/GrGLTexture.cpp @@ -23,7 +23,7 @@ static inline GrSLType sampler_type(const GrGLTexture::IDDesc& idDesc, GrPixelCo SkASSERT(!GrPixelConfigIsSint(config)); return kTexture2DRectSampler_GrSLType; } else if (GrPixelConfigIsSint(config)) { - return kTexture2DISampler_GrSLType; + return kITexture2DSampler_GrSLType; } else { SkASSERT(idDesc.fInfo.fTarget == GR_GL_TEXTURE_2D); return kTexture2DSampler_GrSLType; diff --git a/src/gpu/glsl/GrGLSL.h b/src/gpu/glsl/GrGLSL.h index 93eee31..872c618 100644 --- a/src/gpu/glsl/GrGLSL.h +++ b/src/gpu/glsl/GrGLSL.h @@ -128,7 +128,7 @@ static inline const char* GrGLSLTypeString(GrSLType t) { return "mat4"; case kTexture2DSampler_GrSLType: return "sampler2D"; - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: return "isampler2D"; case kTextureExternalSampler_GrSLType: return "samplerExternalOES"; diff --git a/src/gpu/vk/GrVkUniformHandler.cpp b/src/gpu/vk/GrVkUniformHandler.cpp index 612d0db..dcfefbf 100644 --- a/src/gpu/vk/GrVkUniformHandler.cpp +++ b/src/gpu/vk/GrVkUniformHandler.cpp @@ -39,7 +39,7 @@ uint32_t grsltype_to_alignment_mask(GrSLType type) { case kVoid_GrSLType: case kBool_GrSLType: case kTexture2DSampler_GrSLType: - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: case kTextureExternalSampler_GrSLType: case kTexture2DRectSampler_GrSLType: case kTextureBufferSampler_GrSLType: @@ -80,7 +80,7 @@ static inline uint32_t grsltype_to_vk_size(GrSLType type) { case kVoid_GrSLType: case kBool_GrSLType: case kTexture2DSampler_GrSLType: - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: case kTextureExternalSampler_GrSLType: case kTexture2DRectSampler_GrSLType: case kTextureBufferSampler_GrSLType: diff --git a/src/gpu/vk/GrVkVaryingHandler.cpp b/src/gpu/vk/GrVkVaryingHandler.cpp index 988e62c..7ea2f18 100644 --- a/src/gpu/vk/GrVkVaryingHandler.cpp +++ b/src/gpu/vk/GrVkVaryingHandler.cpp @@ -29,7 +29,7 @@ static inline int grsltype_to_location_size(GrSLType type) { return 4; case kTexture2DSampler_GrSLType: return 0; - case kTexture2DISampler_GrSLType: + case kITexture2DSampler_GrSLType: return 0; case kTextureExternalSampler_GrSLType: return 0;