/external/chromium_org/third_party/skia/include/gpu/ |
D | GrTypesPriv.h | 40 GR_STATIC_ASSERT(0 == kVoid_GrSLType); in GrSLTypeVectorCount() 41 GR_STATIC_ASSERT(1 == kFloat_GrSLType); in GrSLTypeVectorCount() 42 GR_STATIC_ASSERT(2 == kVec2f_GrSLType); in GrSLTypeVectorCount() 43 GR_STATIC_ASSERT(3 == kVec3f_GrSLType); in GrSLTypeVectorCount() 44 GR_STATIC_ASSERT(4 == kVec4f_GrSLType); in GrSLTypeVectorCount() 45 GR_STATIC_ASSERT(5 == kMat33f_GrSLType); in GrSLTypeVectorCount() 46 GR_STATIC_ASSERT(6 == kMat44f_GrSLType); in GrSLTypeVectorCount() 47 GR_STATIC_ASSERT(7 == kSampler2D_GrSLType); in GrSLTypeVectorCount() 48 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kCounts) == kGrSLTypeCount); in GrSLTypeVectorCount() 57 GR_STATIC_ASSERT(kFloat_GrSLType == 1); in GrSLFloatVectorType() [all …]
|
D | GrColor.h | 148 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in GrPixelConfigComponentMask() 149 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in GrPixelConfigComponentMask() 150 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in GrPixelConfigComponentMask() 151 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in GrPixelConfigComponentMask() 152 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in GrPixelConfigComponentMask() 153 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 154 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 155 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); in GrPixelConfigComponentMask() 156 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); in GrPixelConfigComponentMask() 157 GR_STATIC_ASSERT(9 == kR11_EAC_GrPixelConfig); in GrPixelConfigComponentMask() [all …]
|
D | SkGr.h | 30 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkXfermode::kZero_Coeff); 31 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkXfermode::kOne_Coeff); 32 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkXfermode::kSC_Coeff); 33 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff); 34 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff); 35 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); 36 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); 37 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); 38 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); 39 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff);
|
D | GrConfig.h | 191 #if !defined(GR_STATIC_ASSERT) 193 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") macro 197 #define GR_STATIC_ASSERT(CONDITION) \ macro
|
/external/skia/include/gpu/ |
D | GrTypesPriv.h | 40 GR_STATIC_ASSERT(0 == kVoid_GrSLType); in GrSLTypeVectorCount() 41 GR_STATIC_ASSERT(1 == kFloat_GrSLType); in GrSLTypeVectorCount() 42 GR_STATIC_ASSERT(2 == kVec2f_GrSLType); in GrSLTypeVectorCount() 43 GR_STATIC_ASSERT(3 == kVec3f_GrSLType); in GrSLTypeVectorCount() 44 GR_STATIC_ASSERT(4 == kVec4f_GrSLType); in GrSLTypeVectorCount() 45 GR_STATIC_ASSERT(5 == kMat33f_GrSLType); in GrSLTypeVectorCount() 46 GR_STATIC_ASSERT(6 == kMat44f_GrSLType); in GrSLTypeVectorCount() 47 GR_STATIC_ASSERT(7 == kSampler2D_GrSLType); in GrSLTypeVectorCount() 48 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kCounts) == kGrSLTypeCount); in GrSLTypeVectorCount() 57 GR_STATIC_ASSERT(kFloat_GrSLType == 1); in GrSLFloatVectorType() [all …]
|
D | GrColor.h | 140 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in GrPixelConfigComponentMask() 141 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in GrPixelConfigComponentMask() 142 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in GrPixelConfigComponentMask() 143 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in GrPixelConfigComponentMask() 144 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in GrPixelConfigComponentMask() 145 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 146 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); in GrPixelConfigComponentMask() 147 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); in GrPixelConfigComponentMask() 148 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); in GrPixelConfigComponentMask() 149 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kFlags) == kGrPixelConfigCnt); in GrPixelConfigComponentMask()
|
D | SkGr.h | 31 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkXfermode::kZero_Coeff); 32 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkXfermode::kOne_Coeff); 33 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkXfermode::kSC_Coeff); 34 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkXfermode::kISC_Coeff); 35 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkXfermode::kDC_Coeff); 36 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); 37 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); 38 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); 39 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); 40 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff);
|
D | GrConfig.h | 187 #if !defined(GR_STATIC_ASSERT) 189 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") macro 193 #define GR_STATIC_ASSERT(CONDITION) \ macro
|
/external/chromium_org/third_party/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(4 == SkPath::kCubic_Verb); in verb_to_gl_path_cmd() 27 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in verb_to_gl_path_cmd() 43 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in num_pts() 44 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in num_pts() 45 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in num_pts() 46 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in num_pts() 47 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in num_pts() [all …]
|
D | GrGLVertexArray.h | 37 GR_STATIC_ASSERT(0 == kFloat_GrVertexAttribType); in GrGLAttribTypeToLayout() 38 GR_STATIC_ASSERT(1 == kVec2f_GrVertexAttribType); in GrGLAttribTypeToLayout() 39 GR_STATIC_ASSERT(2 == kVec3f_GrVertexAttribType); in GrGLAttribTypeToLayout() 40 GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); in GrGLAttribTypeToLayout() 41 GR_STATIC_ASSERT(4 == kVec4ub_GrVertexAttribType); in GrGLAttribTypeToLayout() 42 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kLayouts) == kGrVertexAttribTypeCount); in GrGLAttribTypeToLayout()
|
D | GrGLUtil.cpp | 279 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kBasicStencilFuncCount); in GrToGLStencilFunc() 280 GR_STATIC_ASSERT(0 == kAlways_StencilFunc); in GrToGLStencilFunc() 281 GR_STATIC_ASSERT(1 == kNever_StencilFunc); in GrToGLStencilFunc() 282 GR_STATIC_ASSERT(2 == kGreater_StencilFunc); in GrToGLStencilFunc() 283 GR_STATIC_ASSERT(3 == kGEqual_StencilFunc); in GrToGLStencilFunc() 284 GR_STATIC_ASSERT(4 == kLess_StencilFunc); in GrToGLStencilFunc() 285 GR_STATIC_ASSERT(5 == kLEqual_StencilFunc); in GrToGLStencilFunc() 286 GR_STATIC_ASSERT(6 == kEqual_StencilFunc); in GrToGLStencilFunc() 287 GR_STATIC_ASSERT(7 == kNotEqual_StencilFunc); in GrToGLStencilFunc()
|
D | GrGLCaps.cpp | 787 GR_STATIC_ASSERT(0 == kNone_MSFBOType); in dump() 788 GR_STATIC_ASSERT(1 == kDesktop_ARB_MSFBOType); in dump() 789 GR_STATIC_ASSERT(2 == kDesktop_EXT_MSFBOType); in dump() 790 GR_STATIC_ASSERT(3 == kES_3_0_MSFBOType); in dump() 791 GR_STATIC_ASSERT(4 == kES_Apple_MSFBOType); in dump() 792 GR_STATIC_ASSERT(5 == kES_IMG_MsToTexture_MSFBOType); in dump() 793 GR_STATIC_ASSERT(6 == kES_EXT_MsToTexture_MSFBOType); in dump() 794 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kMSFBOExtStr) == kLast_MSFBOType + 1); in dump() 801 GR_STATIC_ASSERT(0 == kNone_InvalidateFBType); in dump() 802 GR_STATIC_ASSERT(1 == kDiscard_InvalidateFBType); in dump() [all …]
|
D | GrGpuGL.cpp | 83 GR_STATIC_ASSERT(kTotalGrBlendCoeffCount == in BlendCoeffReferencesConstant() 86 GR_STATIC_ASSERT(0 == kZero_GrBlendCoeff); in BlendCoeffReferencesConstant() 87 GR_STATIC_ASSERT(1 == kOne_GrBlendCoeff); in BlendCoeffReferencesConstant() 88 GR_STATIC_ASSERT(2 == kSC_GrBlendCoeff); in BlendCoeffReferencesConstant() 89 GR_STATIC_ASSERT(3 == kISC_GrBlendCoeff); in BlendCoeffReferencesConstant() 90 GR_STATIC_ASSERT(4 == kDC_GrBlendCoeff); in BlendCoeffReferencesConstant() 91 GR_STATIC_ASSERT(5 == kIDC_GrBlendCoeff); in BlendCoeffReferencesConstant() 92 GR_STATIC_ASSERT(6 == kSA_GrBlendCoeff); in BlendCoeffReferencesConstant() 93 GR_STATIC_ASSERT(7 == kISA_GrBlendCoeff); in BlendCoeffReferencesConstant() 94 GR_STATIC_ASSERT(8 == kDA_GrBlendCoeff); in BlendCoeffReferencesConstant() [all …]
|
/external/skia/src/gpu/gl/ |
D | GrGLPath.cpp | 27 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in verb_to_gl_path_cmd() 28 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in verb_to_gl_path_cmd() 29 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in verb_to_gl_path_cmd() 30 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in verb_to_gl_path_cmd() 31 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in verb_to_gl_path_cmd() 47 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in num_pts() 48 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in num_pts() 49 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in num_pts() 50 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in num_pts() 51 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in num_pts() [all …]
|
D | GrGLCaps.cpp | 719 GR_STATIC_ASSERT(0 == kNone_MSFBOType); in dump() 720 GR_STATIC_ASSERT(1 == kDesktop_ARB_MSFBOType); in dump() 721 GR_STATIC_ASSERT(2 == kDesktop_EXT_MSFBOType); in dump() 722 GR_STATIC_ASSERT(3 == kES_3_0_MSFBOType); in dump() 723 GR_STATIC_ASSERT(4 == kES_Apple_MSFBOType); in dump() 724 GR_STATIC_ASSERT(5 == kES_IMG_MsToTexture_MSFBOType); in dump() 725 GR_STATIC_ASSERT(6 == kES_EXT_MsToTexture_MSFBOType); in dump() 726 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kMSFBOExtStr) == kLast_MSFBOType + 1); in dump() 733 GR_STATIC_ASSERT(0 == kNone_FBFetchType); in dump() 734 GR_STATIC_ASSERT(1 == kEXT_FBFetchType); in dump() [all …]
|
D | GrGLVertexArray.h | 37 GR_STATIC_ASSERT(0 == kFloat_GrVertexAttribType); in GrGLAttribTypeToLayout() 38 GR_STATIC_ASSERT(1 == kVec2f_GrVertexAttribType); in GrGLAttribTypeToLayout() 39 GR_STATIC_ASSERT(2 == kVec3f_GrVertexAttribType); in GrGLAttribTypeToLayout() 40 GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); in GrGLAttribTypeToLayout() 41 GR_STATIC_ASSERT(4 == kVec4ub_GrVertexAttribType); in GrGLAttribTypeToLayout() 42 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kLayouts) == kGrVertexAttribTypeCount); in GrGLAttribTypeToLayout()
|
D | GrGpuGL.cpp | 84 GR_STATIC_ASSERT(kTotalGrBlendCoeffCount == in BlendCoeffReferencesConstant() 87 GR_STATIC_ASSERT(0 == kZero_GrBlendCoeff); in BlendCoeffReferencesConstant() 88 GR_STATIC_ASSERT(1 == kOne_GrBlendCoeff); in BlendCoeffReferencesConstant() 89 GR_STATIC_ASSERT(2 == kSC_GrBlendCoeff); in BlendCoeffReferencesConstant() 90 GR_STATIC_ASSERT(3 == kISC_GrBlendCoeff); in BlendCoeffReferencesConstant() 91 GR_STATIC_ASSERT(4 == kDC_GrBlendCoeff); in BlendCoeffReferencesConstant() 92 GR_STATIC_ASSERT(5 == kIDC_GrBlendCoeff); in BlendCoeffReferencesConstant() 93 GR_STATIC_ASSERT(6 == kSA_GrBlendCoeff); in BlendCoeffReferencesConstant() 94 GR_STATIC_ASSERT(7 == kISA_GrBlendCoeff); in BlendCoeffReferencesConstant() 95 GR_STATIC_ASSERT(8 == kDA_GrBlendCoeff); in BlendCoeffReferencesConstant() [all …]
|
/external/chromium_org/third_party/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/src/gpu/ |
D | GrCacheID.cpp | 19 GR_STATIC_ASSERT(sizeof(kAssertKey.fData8) == sizeof(kAssertKey.fData32)); 20 GR_STATIC_ASSERT(sizeof(kAssertKey.fData8) == sizeof(kAssertKey.fData64)); 21 GR_STATIC_ASSERT(sizeof(kAssertKey.fData8) == sizeof(kAssertKey));
|
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() 343 GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) == sizeof(GrStencilSettings));
|
D | GrPathRendererChain.cpp | 45 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer() 47 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrCacheID.cpp | 19 GR_STATIC_ASSERT(sizeof(kAssertKey.fData8) == sizeof(kAssertKey.fData32)); 20 GR_STATIC_ASSERT(sizeof(kAssertKey.fData8) == sizeof(kAssertKey.fData64)); 21 GR_STATIC_ASSERT(sizeof(kAssertKey.fData8) == sizeof(kAssertKey));
|
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() 343 GR_STATIC_ASSERT(sizeof(GrStencilSettingsStruct) == sizeof(GrStencilSettings));
|
D | GrDrawTarget.cpp | 1116 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in dump() 1117 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in dump() 1118 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in dump() 1119 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in dump() 1120 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in dump() 1121 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in dump() 1122 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); in dump() 1123 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); in dump() 1124 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); in dump() 1125 GR_STATIC_ASSERT(9 == kR11_EAC_GrPixelConfig); in dump() [all …]
|
D | GrPathRendererChain.cpp | 45 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer() 47 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
|