/external/skia/include/gpu/ |
D | GrTypesPriv.h | 81 GR_STATIC_ASSERT(0 == kVoid_GrSLType); in GrSLTypeVectorCount() 82 GR_STATIC_ASSERT(1 == kFloat_GrSLType); in GrSLTypeVectorCount() 83 GR_STATIC_ASSERT(2 == kVec2f_GrSLType); in GrSLTypeVectorCount() 84 GR_STATIC_ASSERT(3 == kVec3f_GrSLType); in GrSLTypeVectorCount() 85 GR_STATIC_ASSERT(4 == kVec4f_GrSLType); in GrSLTypeVectorCount() 86 GR_STATIC_ASSERT(5 == kMat33f_GrSLType); in GrSLTypeVectorCount() 87 GR_STATIC_ASSERT(6 == kMat44f_GrSLType); in GrSLTypeVectorCount() 88 GR_STATIC_ASSERT(7 == kSampler2D_GrSLType); in GrSLTypeVectorCount() 89 GR_STATIC_ASSERT(8 == kSamplerExternal_GrSLType); in GrSLTypeVectorCount() 90 GR_STATIC_ASSERT(9 == kSampler2DRect_GrSLType); in GrSLTypeVectorCount() [all …]
|
D | GrColor.h | 231 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in GrPixelConfigComponentMask() 232 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in GrPixelConfigComponentMask() 233 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in GrPixelConfigComponentMask() 234 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in GrPixelConfigComponentMask() 235 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in GrPixelConfigComponentMask() 236 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 237 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 238 GR_STATIC_ASSERT(7 == kSRGBA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 239 GR_STATIC_ASSERT(8 == kETC1_GrPixelConfig); in GrPixelConfigComponentMask() 240 GR_STATIC_ASSERT(9 == kLATC_GrPixelConfig); in GrPixelConfigComponentMask() [all …]
|
D | GrConfig.h | 176 #if !defined(GR_STATIC_ASSERT) 178 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") macro 182 #define GR_STATIC_ASSERT(CONDITION) \ macro
|
/external/skia/src/gpu/vk/ |
D | GrVkPipeline.cpp | 29 GR_STATIC_ASSERT(0 == kFloat_GrVertexAttribType); in attrib_type_to_vkformat() 30 GR_STATIC_ASSERT(1 == kVec2f_GrVertexAttribType); in attrib_type_to_vkformat() 31 GR_STATIC_ASSERT(2 == kVec3f_GrVertexAttribType); in attrib_type_to_vkformat() 32 GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); in attrib_type_to_vkformat() 33 GR_STATIC_ASSERT(4 == kUByte_GrVertexAttribType); in attrib_type_to_vkformat() 34 GR_STATIC_ASSERT(5 == kVec4ub_GrVertexAttribType); in attrib_type_to_vkformat() 35 GR_STATIC_ASSERT(6 == kVec2us_GrVertexAttribType); in attrib_type_to_vkformat() 36 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFormats) == kGrVertexAttribTypeCount); in attrib_type_to_vkformat() 112 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kStencilOpCount); in stencil_op_to_vk_stencil_op() 113 GR_STATIC_ASSERT(0 == kKeep_StencilOp); in stencil_op_to_vk_stencil_op() [all …]
|
D | GrVkUniformHandler.cpp | 27 GR_STATIC_ASSERT(0 == kVoid_GrSLType); in grsltype_to_alignment_mask() 28 GR_STATIC_ASSERT(1 == kFloat_GrSLType); in grsltype_to_alignment_mask() 29 GR_STATIC_ASSERT(2 == kVec2f_GrSLType); in grsltype_to_alignment_mask() 30 GR_STATIC_ASSERT(3 == kVec3f_GrSLType); in grsltype_to_alignment_mask() 31 GR_STATIC_ASSERT(4 == kVec4f_GrSLType); in grsltype_to_alignment_mask() 32 GR_STATIC_ASSERT(5 == kMat33f_GrSLType); in grsltype_to_alignment_mask() 33 GR_STATIC_ASSERT(6 == kMat44f_GrSLType); in grsltype_to_alignment_mask() 34 GR_STATIC_ASSERT(7 == kSampler2D_GrSLType); in grsltype_to_alignment_mask() 35 GR_STATIC_ASSERT(8 == kSamplerExternal_GrSLType); in grsltype_to_alignment_mask() 36 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAlignments) == kGrSLTypeCount); in grsltype_to_alignment_mask()
|
D | GrVkSampler.cpp | 19 GR_STATIC_ASSERT(SkShader::kTileModeCount == SK_ARRAY_COUNT(gWrapModes)); in tile_to_vk_sampler_address() 20 GR_STATIC_ASSERT(0 == SkShader::kClamp_TileMode); in tile_to_vk_sampler_address() 21 GR_STATIC_ASSERT(1 == SkShader::kRepeat_TileMode); in tile_to_vk_sampler_address() 22 GR_STATIC_ASSERT(2 == SkShader::kMirror_TileMode); in tile_to_vk_sampler_address()
|
/external/skia/src/gpu/ |
D | GrCaps.cpp | 192 GR_STATIC_ASSERT(0 == kBasic_BlendEquationSupport); in dump() 193 GR_STATIC_ASSERT(1 == kAdvanced_BlendEquationSupport); in dump() 194 GR_STATIC_ASSERT(2 == kAdvancedCoherent_BlendEquationSupport); in dump() 195 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kBlendEquationSupportNames) == kLast_BlendEquationSupport + 1); in dump() 219 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in dump() 220 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in dump() 221 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in dump() 222 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in dump() 223 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in dump() 224 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in dump() [all …]
|
D | SkGrPriv.h | 124 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkXfermode::kZero_Coeff); 125 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkXfermode::kOne_Coeff); 126 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkXfermode::kSC_Coeff); 127 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff); 128 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff); 129 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); 130 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); 131 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); 132 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); 133 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); [all …]
|
D | GrPathRange.h | 37 GR_STATIC_ASSERT(0 == kU8_PathIndexType); in PathIndexSizeInBytes() 38 GR_STATIC_ASSERT(1 == kU16_PathIndexType); in PathIndexSizeInBytes() 39 GR_STATIC_ASSERT(2 == kU32_PathIndexType); in PathIndexSizeInBytes() 40 GR_STATIC_ASSERT(kU32_PathIndexType == kLast_PathIndexType); in PathIndexSizeInBytes()
|
D | GrPrimitiveProcessor.cpp | 29 GR_STATIC_ASSERT(kHigh_GrSLPrecision < (1 << kPrecisionBits)); 59 GR_STATIC_ASSERT(kGrSLPrecisionCount <= (1 << kPrecisionBits)); in getTransformKey()
|
D | GrStencil.h | 117 GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) % 4 == 0); 118 GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) == 223 GR_STATIC_ASSERT(0 == kKeep_StencilOp); in setDisabled() 224 GR_STATIC_ASSERT(0 == kAlways_StencilFunc); in setDisabled() 347 GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) == sizeof(GrStencilSettings));
|
D | GrPathRendererChain.cpp | 63 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer() 65 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLFragmentShaderBuilder.cpp | 41 GR_STATIC_ASSERT(0 == kScreen_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 42 GR_STATIC_ASSERT(1 == kOverlay_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 43 GR_STATIC_ASSERT(2 == kDarken_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 44 GR_STATIC_ASSERT(3 == kLighten_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 45 GR_STATIC_ASSERT(4 == kColorDodge_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 46 GR_STATIC_ASSERT(5 == kColorBurn_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 47 GR_STATIC_ASSERT(6 == kHardLight_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 48 GR_STATIC_ASSERT(7 == kSoftLight_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 49 GR_STATIC_ASSERT(8 == kDifference_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() 50 GR_STATIC_ASSERT(9 == kExclusion_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name() [all …]
|
D | GrGLSLCaps.cpp | 51 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction); in dump() 52 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction); in dump() 53 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction); in dump() 54 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction); in dump() 55 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlendEqInteraction + 1); in dump()
|
D | GrGLSLShaderBuilder.cpp | 154 GR_STATIC_ASSERT(0 == GrGLSLShaderBuilder::kOut_InterfaceQualifier); in compileAndAppendLayoutQualifiers() 155 GR_STATIC_ASSERT(SK_ARRAY_COUNT(interfaceQualifierNames) == kLastInterfaceQualifier + 1); in compileAndAppendLayoutQualifiers()
|
/external/skia/src/gpu/gl/ |
D | GrGLPath.cpp | 23 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in verb_to_gl_path_cmd() 24 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in verb_to_gl_path_cmd() 25 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in verb_to_gl_path_cmd() 26 GR_STATIC_ASSERT(3 == SkPath::kConic_Verb); in verb_to_gl_path_cmd() 27 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in verb_to_gl_path_cmd() 28 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in verb_to_gl_path_cmd() 44 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in num_coords() 45 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in num_coords() 46 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in num_coords() 47 GR_STATIC_ASSERT(3 == SkPath::kConic_Verb); in num_coords() [all …]
|
D | GrGLVertexArray.cpp | 29 GR_STATIC_ASSERT(0 == kFloat_GrVertexAttribType); 30 GR_STATIC_ASSERT(1 == kVec2f_GrVertexAttribType); 31 GR_STATIC_ASSERT(2 == kVec3f_GrVertexAttribType); 32 GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); 33 GR_STATIC_ASSERT(4 == kUByte_GrVertexAttribType); 34 GR_STATIC_ASSERT(5 == kVec4ub_GrVertexAttribType); 35 GR_STATIC_ASSERT(6 == kVec2us_GrVertexAttribType); 36 GR_STATIC_ASSERT(7 == kInt_GrVertexAttribType); 37 GR_STATIC_ASSERT(8 == kUint_GrVertexAttribType);
|
D | GrGLUtil.cpp | 338 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kBasicStencilFuncCount); in GrToGLStencilFunc() 339 GR_STATIC_ASSERT(0 == kAlways_StencilFunc); in GrToGLStencilFunc() 340 GR_STATIC_ASSERT(1 == kNever_StencilFunc); in GrToGLStencilFunc() 341 GR_STATIC_ASSERT(2 == kGreater_StencilFunc); in GrToGLStencilFunc() 342 GR_STATIC_ASSERT(3 == kGEqual_StencilFunc); in GrToGLStencilFunc() 343 GR_STATIC_ASSERT(4 == kLess_StencilFunc); in GrToGLStencilFunc() 344 GR_STATIC_ASSERT(5 == kLEqual_StencilFunc); in GrToGLStencilFunc() 345 GR_STATIC_ASSERT(6 == kEqual_StencilFunc); in GrToGLStencilFunc() 346 GR_STATIC_ASSERT(7 == kNotEqual_StencilFunc); in GrToGLStencilFunc()
|
D | GrGLPathRendering.cpp | 32 GR_STATIC_ASSERT(0 == GrPathRange::kU8_PathIndexType); 33 GR_STATIC_ASSERT(1 == GrPathRange::kU16_PathIndexType); 34 GR_STATIC_ASSERT(2 == GrPathRange::kU32_PathIndexType); 35 GR_STATIC_ASSERT(GrPathRange::kU32_PathIndexType == GrPathRange::kLast_PathIndexType); 45 GR_STATIC_ASSERT(0 == GrPathRendering::kNone_PathTransformType); 46 GR_STATIC_ASSERT(1 == GrPathRendering::kTranslateX_PathTransformType); 47 GR_STATIC_ASSERT(2 == GrPathRendering::kTranslateY_PathTransformType); 48 GR_STATIC_ASSERT(3 == GrPathRendering::kTranslate_PathTransformType); 49 GR_STATIC_ASSERT(4 == GrPathRendering::kAffine_PathTransformType); 50 GR_STATIC_ASSERT(GrPathRendering::kAffine_PathTransformType == GrPathRendering::kLast_PathTransform…
|
D | GrGLGpu.cpp | 68 GR_STATIC_ASSERT(0 == kAdd_GrBlendEquation); 69 GR_STATIC_ASSERT(1 == kSubtract_GrBlendEquation); 70 GR_STATIC_ASSERT(2 == kReverseSubtract_GrBlendEquation); 71 GR_STATIC_ASSERT(3 == kScreen_GrBlendEquation); 72 GR_STATIC_ASSERT(4 == kOverlay_GrBlendEquation); 73 GR_STATIC_ASSERT(5 == kDarken_GrBlendEquation); 74 GR_STATIC_ASSERT(6 == kLighten_GrBlendEquation); 75 GR_STATIC_ASSERT(7 == kColorDodge_GrBlendEquation); 76 GR_STATIC_ASSERT(8 == kColorBurn_GrBlendEquation); 77 GR_STATIC_ASSERT(9 == kHardLight_GrBlendEquation); [all …]
|
D | GrGLCaps.cpp | 987 GR_STATIC_ASSERT(0 == kNone_MSFBOType); in dump() 988 GR_STATIC_ASSERT(1 == kDesktop_ARB_MSFBOType); in dump() 989 GR_STATIC_ASSERT(2 == kDesktop_EXT_MSFBOType); in dump() 990 GR_STATIC_ASSERT(3 == kES_3_0_MSFBOType); in dump() 991 GR_STATIC_ASSERT(4 == kES_Apple_MSFBOType); in dump() 992 GR_STATIC_ASSERT(5 == kES_IMG_MsToTexture_MSFBOType); in dump() 993 GR_STATIC_ASSERT(6 == kES_EXT_MsToTexture_MSFBOType); in dump() 994 GR_STATIC_ASSERT(7 == kMixedSamples_MSFBOType); in dump() 995 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kMSFBOExtStr) == kLast_MSFBOType + 1); in dump() 1002 GR_STATIC_ASSERT(0 == kNone_InvalidateFBType); in dump() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrCustomXfermode.cpp | 39 GR_STATIC_ASSERT(kOverlay_GrBlendEquation == SkXfermode::kOverlay_Mode + kOffset); in hw_blend_equation() 40 GR_STATIC_ASSERT(kDarken_GrBlendEquation == SkXfermode::kDarken_Mode + kOffset); in hw_blend_equation() 41 GR_STATIC_ASSERT(kLighten_GrBlendEquation == SkXfermode::kLighten_Mode + kOffset); in hw_blend_equation() 42 GR_STATIC_ASSERT(kColorDodge_GrBlendEquation == SkXfermode::kColorDodge_Mode + kOffset); in hw_blend_equation() 43 GR_STATIC_ASSERT(kColorBurn_GrBlendEquation == SkXfermode::kColorBurn_Mode + kOffset); in hw_blend_equation() 44 GR_STATIC_ASSERT(kHardLight_GrBlendEquation == SkXfermode::kHardLight_Mode + kOffset); in hw_blend_equation() 45 GR_STATIC_ASSERT(kSoftLight_GrBlendEquation == SkXfermode::kSoftLight_Mode + kOffset); in hw_blend_equation() 46 GR_STATIC_ASSERT(kDifference_GrBlendEquation == SkXfermode::kDifference_Mode + kOffset); in hw_blend_equation() 47 GR_STATIC_ASSERT(kExclusion_GrBlendEquation == SkXfermode::kExclusion_Mode + kOffset); in hw_blend_equation() 48 GR_STATIC_ASSERT(kMultiply_GrBlendEquation == SkXfermode::kMultiply_Mode + kOffset); in hw_blend_equation() [all …]
|
D | GrPorterDuffXferProcessor.cpp | 93 GR_STATIC_ASSERT((kNone_OutputType == PrimaryOut) == 95 GR_STATIC_ASSERT(!GR_BLEND_COEFF_REFS_SRC2(SrcCoeff)); 96 GR_STATIC_ASSERT((kNone_OutputType == SecondaryOut) == 98 GR_STATIC_ASSERT(PrimaryOut != SecondaryOut || kNone_OutputType == PrimaryOut); 99 GR_STATIC_ASSERT(kNone_OutputType != PrimaryOut || kNone_OutputType == SecondaryOut); 116 GR_STATIC_ASSERT(kLast_OutputType < (1 << 3)); 117 GR_STATIC_ASSERT(kLast_GrBlendEquation < (1 << 5)); 118 GR_STATIC_ASSERT(kLast_GrBlendCoeff < (1 << 5)); 119 GR_STATIC_ASSERT(kLast_Property < (1 << 6)); 122 GR_STATIC_ASSERT(4 == sizeof(BlendFormula)); [all …]
|
/external/skia/third_party/ktx/ |
D | ktx.cpp | 40 GR_STATIC_ASSERT(0 == SkTextureCompressor::kLATC_Format); in compressed_fmt_to_gl_define() 41 GR_STATIC_ASSERT(1 == SkTextureCompressor::kR11_EAC_Format); in compressed_fmt_to_gl_define() 42 GR_STATIC_ASSERT(2 == SkTextureCompressor::kETC1_Format); in compressed_fmt_to_gl_define() 43 GR_STATIC_ASSERT(3 == SkTextureCompressor::kASTC_4x4_Format); in compressed_fmt_to_gl_define() 44 GR_STATIC_ASSERT(4 == SkTextureCompressor::kASTC_5x4_Format); in compressed_fmt_to_gl_define() 45 GR_STATIC_ASSERT(5 == SkTextureCompressor::kASTC_5x5_Format); in compressed_fmt_to_gl_define() 46 GR_STATIC_ASSERT(6 == SkTextureCompressor::kASTC_6x5_Format); in compressed_fmt_to_gl_define() 47 GR_STATIC_ASSERT(7 == SkTextureCompressor::kASTC_6x6_Format); in compressed_fmt_to_gl_define() 48 GR_STATIC_ASSERT(8 == SkTextureCompressor::kASTC_8x5_Format); in compressed_fmt_to_gl_define() 49 GR_STATIC_ASSERT(9 == SkTextureCompressor::kASTC_8x6_Format); in compressed_fmt_to_gl_define() [all …]
|
/external/skia/include/gpu/gl/ |
D | GrGLTypes.h | 69 GR_STATIC_ASSERT(16 == sizeof(GrGLDrawArraysIndirectCommand)); 79 GR_STATIC_ASSERT(20 == sizeof(GrGLDrawElementsIndirectCommand)); 114 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*));
|