Home
last modified time | relevance | path

Searched refs:GR_STATIC_ASSERT (Results 1 – 25 of 50) sorted by relevance

12

/external/chromium_org/third_party/skia/include/gpu/
DGrTypesPriv.h40 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 …]
DGrColor.h140 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()
DSkGr.h31 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);
DGrConfig.h187 #if !defined(GR_STATIC_ASSERT)
189 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") macro
193 #define GR_STATIC_ASSERT(CONDITION) \ macro
/external/skia/include/gpu/
DGrTypesPriv.h40 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 …]
DGrColor.h140 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()
DSkGr.h31 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);
DGrConfig.h187 #if !defined(GR_STATIC_ASSERT)
189 #define GR_STATIC_ASSERT(CONDITION) static_assert(CONDITION, "bug") macro
193 #define GR_STATIC_ASSERT(CONDITION) \ macro
/external/skia/src/gpu/gl/
DGrGLPath.cpp27 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 …]
DGrGLCaps.cpp719 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 …]
DGrGLVertexArray.h37 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()
DGrGpuGL.cpp84 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/src/gpu/gl/
DGrGLPath.cpp27 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 …]
DGrGLCaps.cpp719 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 …]
DGrGLVertexArray.h37 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()
DGrGpuGL.cpp84 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/skia/src/gpu/
DGrCacheID.cpp19 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));
DGrStencil.h117 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));
DGrPathRendererChain.cpp45 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer()
47 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
DGrDrawTarget.cpp1137 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in dump()
1138 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in dump()
1139 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in dump()
1140 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in dump()
1141 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in dump()
1142 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in dump()
1143 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); in dump()
1144 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); in dump()
1145 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); in dump()
1146 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kConfigNames) == kGrPixelConfigCnt); in dump()
/external/chromium_org/third_party/skia/src/gpu/
DGrCacheID.cpp19 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));
DGrStencil.h117 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));
DGrPathRendererChain.cpp45 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer()
47 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
DGrDrawTarget.cpp1137 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); in dump()
1138 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); in dump()
1139 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); in dump()
1140 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); in dump()
1141 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); in dump()
1142 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); in dump()
1143 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); in dump()
1144 GR_STATIC_ASSERT(7 == kETC1_GrPixelConfig); in dump()
1145 GR_STATIC_ASSERT(8 == kLATC_GrPixelConfig); in dump()
1146 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kConfigNames) == kGrPixelConfigCnt); in dump()
DGrStencilBuffer.cpp31 GR_STATIC_ASSERT(sizeof(key) >= 3 * sizeof(uint32_t)); in gen_cache_id()

12