/external/skqp/src/gpu/ |
D | GrStencilSettings.cpp | 23 GR_STATIC_ASSERT(kAll_StencilFlags == (gUnused.fFrontFlags[0] & gUnused.fBackFlags[0])); 65 GR_STATIC_ASSERT(sizeof(Face) == in reset() 85 GR_STATIC_ASSERT(sizeof(Face) == in operator ==() 89 GR_STATIC_ASSERT(0 == offsetof(Face, fRef)); in operator ==() 90 GR_STATIC_ASSERT(2 == sizeof(Face::fRef)); in operator ==() 91 GR_STATIC_ASSERT(2 == offsetof(Face, fTest)); in operator ==() 92 GR_STATIC_ASSERT(2 == sizeof(Face::fTest)); in operator ==() 93 GR_STATIC_ASSERT(4 == offsetof(Face, fTestMask)); in operator ==() 94 GR_STATIC_ASSERT(2 == sizeof(Face::fTestMask)); in operator ==() 95 GR_STATIC_ASSERT(6 == offsetof(Face, fPassOp)); in operator ==() [all …]
|
D | SkGr.h | 155 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkBlendModeCoeff::kZero); 156 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkBlendModeCoeff::kOne); 157 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkBlendModeCoeff::kSC); 158 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkBlendModeCoeff::kISC); 159 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkBlendModeCoeff::kDC); 160 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkBlendModeCoeff::kIDC); 161 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkBlendModeCoeff::kSA); 162 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkBlendModeCoeff::kISA); 163 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkBlendModeCoeff::kDA); 164 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkBlendModeCoeff::kIDA);
|
D | GrShaderCaps.cpp | 92 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction); in dumpJSON() 93 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction); in dumpJSON() 94 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction); in dumpJSON() 95 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction); in dumpJSON() 96 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlendEqInteraction + 1); in dumpJSON()
|
D | GrStyle.cpp | 12 GR_STATIC_ASSERT(sizeof(uint32_t) == sizeof(SkScalar)); in KeySize() 37 GR_STATIC_ASSERT(sizeof(uint32_t) == sizeof(SkScalar)); in WriteKey() 47 GR_STATIC_ASSERT(sizeof(style.dashPhase()) == sizeof(uint32_t)); in WriteKey() 73 GR_STATIC_ASSERT(SkStrokeRec::kStyleCount <= (1 << kStyleBits)); in WriteKey() 74 GR_STATIC_ASSERT(SkPaint::kJoinCount <= (1 << kJoinBits)); in WriteKey() 75 GR_STATIC_ASSERT(SkPaint::kCapCount <= (1 << kCapBits)); in WriteKey()
|
D | GrCaps.cpp | 231 GR_STATIC_ASSERT(0 == kBasic_BlendEquationSupport); in dumpJSON() 232 GR_STATIC_ASSERT(1 == kAdvanced_BlendEquationSupport); in dumpJSON() 233 GR_STATIC_ASSERT(2 == kAdvancedCoherent_BlendEquationSupport); in dumpJSON() 234 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kBlendEquationSupportNames) == kLast_BlendEquationSupport + 1); in dumpJSON()
|
D | GrPathRendererChain.cpp | 73 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer() 75 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
|
D | GrShape.cpp | 189 GR_STATIC_ASSERT(sizeof(SkPoint) == 2 * sizeof(uint32_t)); in path_key_from_data_size() 190 GR_STATIC_ASSERT(sizeof(SkScalar) == sizeof(uint32_t)); in path_key_from_data_size() 215 GR_STATIC_ASSERT(sizeof(SkPoint) == 2 * sizeof(uint32_t)); in write_path_key_from_data() 218 GR_STATIC_ASSERT(sizeof(SkScalar) == sizeof(uint32_t)); in write_path_key_from_data() 234 GR_STATIC_ASSERT(0 == SkRRect::kSizeInMemory % sizeof(uint32_t)); in unstyledKeySize() 239 GR_STATIC_ASSERT(0 == sizeof(fArcData) % sizeof(uint32_t)); in unstyledKeySize() 242 GR_STATIC_ASSERT(2 * sizeof(uint32_t) == sizeof(SkPoint)); in unstyledKeySize()
|
/external/skqp/src/gpu/vk/ |
D | GrVkPipeline.cpp | 185 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kGrStencilOpCount); in stencil_op_to_vk_stencil_op() 186 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in stencil_op_to_vk_stencil_op() 187 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in stencil_op_to_vk_stencil_op() 188 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in stencil_op_to_vk_stencil_op() 189 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in stencil_op_to_vk_stencil_op() 190 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in stencil_op_to_vk_stencil_op() 191 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in stencil_op_to_vk_stencil_op() 192 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in stencil_op_to_vk_stencil_op() 193 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in stencil_op_to_vk_stencil_op() 209 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kGrStencilTestCount); in stencil_func_to_vk_compare_op() [all …]
|
/external/skqp/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 | GrGLSLShaderBuilder.cpp | 237 GR_STATIC_ASSERT(0 == GrGLSLShaderBuilder::kIn_InterfaceQualifier); in compileAndAppendLayoutQualifiers() 238 GR_STATIC_ASSERT(1 == GrGLSLShaderBuilder::kOut_InterfaceQualifier); in compileAndAppendLayoutQualifiers() 239 GR_STATIC_ASSERT(SK_ARRAY_COUNT(interfaceQualifierNames) == kLastInterfaceQualifier + 1); in compileAndAppendLayoutQualifiers()
|
/external/skqp/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 | GrGLBuffer.cpp | 65 GR_STATIC_ASSERT(0 == kDynamic_GrAccessPattern); in gr_to_gl_access_pattern() 66 GR_STATIC_ASSERT(1 == kStatic_GrAccessPattern); in gr_to_gl_access_pattern() 67 GR_STATIC_ASSERT(2 == kStream_GrAccessPattern); in gr_to_gl_access_pattern() 68 GR_STATIC_ASSERT(SK_ARRAY_COUNT(drawUsages) == 1 + kLast_GrAccessPattern); in gr_to_gl_access_pattern() 69 GR_STATIC_ASSERT(SK_ARRAY_COUNT(readUsages) == 1 + kLast_GrAccessPattern); in gr_to_gl_access_pattern() 80 GR_STATIC_ASSERT(0 == kVertex_GrBufferType); in gr_to_gl_access_pattern() 81 GR_STATIC_ASSERT(1 == kIndex_GrBufferType); in gr_to_gl_access_pattern() 82 GR_STATIC_ASSERT(2 == kTexel_GrBufferType); in gr_to_gl_access_pattern() 83 GR_STATIC_ASSERT(3 == kDrawIndirect_GrBufferType); in gr_to_gl_access_pattern() 84 GR_STATIC_ASSERT(4 == kXferCpuToGpu_GrBufferType); in gr_to_gl_access_pattern() [all …]
|
D | GrGLIRect.h | 32 GR_STATIC_ASSERT(0 == offsetof(GrGLIRect, fLeft)); in asInts() 33 GR_STATIC_ASSERT(4 == offsetof(GrGLIRect, fBottom)); in asInts() 34 GR_STATIC_ASSERT(8 == offsetof(GrGLIRect, fWidth)); in asInts() 35 GR_STATIC_ASSERT(12 == offsetof(GrGLIRect, fHeight)); in asInts() 36 GR_STATIC_ASSERT(16 == sizeof(GrGLIRect)); // For an array of GrGLIRect. in asInts() 49 GR_STATIC_ASSERT(sizeof(GrGLIRect) == 4*sizeof(GrGLint)); in setFromGLViewport()
|
D | GrGLUtil.cpp | 537 GR_STATIC_ASSERT(0 == (int)GrStencilTest::kAlways); in GrToGLStencilFunc() 538 GR_STATIC_ASSERT(1 == (int)GrStencilTest::kNever); in GrToGLStencilFunc() 539 GR_STATIC_ASSERT(2 == (int)GrStencilTest::kGreater); in GrToGLStencilFunc() 540 GR_STATIC_ASSERT(3 == (int)GrStencilTest::kGEqual); in GrToGLStencilFunc() 541 GR_STATIC_ASSERT(4 == (int)GrStencilTest::kLess); in GrToGLStencilFunc() 542 GR_STATIC_ASSERT(5 == (int)GrStencilTest::kLEqual); in GrToGLStencilFunc() 543 GR_STATIC_ASSERT(6 == (int)GrStencilTest::kEqual); in GrToGLStencilFunc() 544 GR_STATIC_ASSERT(7 == (int)GrStencilTest::kNotEqual); in GrToGLStencilFunc()
|
D | GrGLPathRendering.cpp | 26 GR_STATIC_ASSERT(0 == GrPathRendering::kNone_PathTransformType); 27 GR_STATIC_ASSERT(1 == GrPathRendering::kTranslateX_PathTransformType); 28 GR_STATIC_ASSERT(2 == GrPathRendering::kTranslateY_PathTransformType); 29 GR_STATIC_ASSERT(3 == GrPathRendering::kTranslate_PathTransformType); 30 GR_STATIC_ASSERT(4 == GrPathRendering::kAffine_PathTransformType); 31 GR_STATIC_ASSERT(GrPathRendering::kAffine_PathTransformType == GrPathRendering::kLast_PathTransform…
|
D | GrGLGpu.cpp | 86 GR_STATIC_ASSERT(0 == kAdd_GrBlendEquation); 87 GR_STATIC_ASSERT(1 == kSubtract_GrBlendEquation); 88 GR_STATIC_ASSERT(2 == kReverseSubtract_GrBlendEquation); 89 GR_STATIC_ASSERT(3 == kScreen_GrBlendEquation); 90 GR_STATIC_ASSERT(4 == kOverlay_GrBlendEquation); 91 GR_STATIC_ASSERT(5 == kDarken_GrBlendEquation); 92 GR_STATIC_ASSERT(6 == kLighten_GrBlendEquation); 93 GR_STATIC_ASSERT(7 == kColorDodge_GrBlendEquation); 94 GR_STATIC_ASSERT(8 == kColorBurn_GrBlendEquation); 95 GR_STATIC_ASSERT(9 == kHardLight_GrBlendEquation); [all …]
|
D | GrGLCaps.cpp | 1105 GR_STATIC_ASSERT(0 == kNone_MSFBOType); in onDumpJSON() 1106 GR_STATIC_ASSERT(1 == kStandard_MSFBOType); in onDumpJSON() 1107 GR_STATIC_ASSERT(2 == kES_Apple_MSFBOType); in onDumpJSON() 1108 GR_STATIC_ASSERT(3 == kES_IMG_MsToTexture_MSFBOType); in onDumpJSON() 1109 GR_STATIC_ASSERT(4 == kES_EXT_MsToTexture_MSFBOType); in onDumpJSON() 1110 GR_STATIC_ASSERT(5 == kMixedSamples_MSFBOType); in onDumpJSON() 1111 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kMSFBOExtStr) == kLast_MSFBOType + 1); in onDumpJSON() 1118 GR_STATIC_ASSERT(0 == kNone_InvalidateFBType); in onDumpJSON() 1119 GR_STATIC_ASSERT(1 == kDiscard_InvalidateFBType); in onDumpJSON() 1120 GR_STATIC_ASSERT(2 == kInvalidate_InvalidateFBType); in onDumpJSON() [all …]
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlPipelineStateBuilder.mm | 231 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kGrBlendCoeffCnt); 232 GR_STATIC_ASSERT(0 == kZero_GrBlendCoeff); 233 GR_STATIC_ASSERT(1 == kOne_GrBlendCoeff); 234 GR_STATIC_ASSERT(2 == kSC_GrBlendCoeff); 235 GR_STATIC_ASSERT(3 == kISC_GrBlendCoeff); 236 GR_STATIC_ASSERT(4 == kDC_GrBlendCoeff); 237 GR_STATIC_ASSERT(5 == kIDC_GrBlendCoeff); 238 GR_STATIC_ASSERT(6 == kSA_GrBlendCoeff); 239 GR_STATIC_ASSERT(7 == kISA_GrBlendCoeff); 240 GR_STATIC_ASSERT(8 == kDA_GrBlendCoeff); [all …]
|
D | GrMtlGpuCommandBuffer.mm | 227 GR_STATIC_ASSERT((int)GrLoadOp::kLoad == 0); 228 GR_STATIC_ASSERT((int)GrLoadOp::kClear == 1); 229 GR_STATIC_ASSERT((int)GrLoadOp::kDiscard == 2); 236 GR_STATIC_ASSERT((int)GrStoreOp::kStore == 0); 237 GR_STATIC_ASSERT((int)GrStoreOp::kDiscard == 1); 263 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangles == 0); 264 GR_STATIC_ASSERT((int)GrPrimitiveType::kTriangleStrip == 1); 265 GR_STATIC_ASSERT((int)GrPrimitiveType::kPoints == 2); 266 GR_STATIC_ASSERT((int)GrPrimitiveType::kLines == 3); 267 GR_STATIC_ASSERT((int)GrPrimitiveType::kLineStrip == 4);
|
D | GrMtlSampler.mm | 44 GR_STATIC_ASSERT((int)GrSamplerState::Filter::kNearest == 0); 45 GR_STATIC_ASSERT((int)GrSamplerState::Filter::kBilerp == 1); 46 GR_STATIC_ASSERT((int)GrSamplerState::Filter::kMipMap == 2);
|
/external/skqp/src/gpu/effects/ |
D | GrCustomXfermode.cpp | 35 GR_STATIC_ASSERT(kOverlay_GrBlendEquation == (int)SkBlendMode::kOverlay + EQ_OFFSET); in hw_blend_equation() 36 GR_STATIC_ASSERT(kDarken_GrBlendEquation == (int)SkBlendMode::kDarken + EQ_OFFSET); in hw_blend_equation() 37 GR_STATIC_ASSERT(kLighten_GrBlendEquation == (int)SkBlendMode::kLighten + EQ_OFFSET); in hw_blend_equation() 38 GR_STATIC_ASSERT(kColorDodge_GrBlendEquation == (int)SkBlendMode::kColorDodge + EQ_OFFSET); in hw_blend_equation() 39 GR_STATIC_ASSERT(kColorBurn_GrBlendEquation == (int)SkBlendMode::kColorBurn + EQ_OFFSET); in hw_blend_equation() 40 GR_STATIC_ASSERT(kHardLight_GrBlendEquation == (int)SkBlendMode::kHardLight + EQ_OFFSET); in hw_blend_equation() 41 GR_STATIC_ASSERT(kSoftLight_GrBlendEquation == (int)SkBlendMode::kSoftLight + EQ_OFFSET); in hw_blend_equation() 42 GR_STATIC_ASSERT(kDifference_GrBlendEquation == (int)SkBlendMode::kDifference + EQ_OFFSET); in hw_blend_equation() 43 GR_STATIC_ASSERT(kExclusion_GrBlendEquation == (int)SkBlendMode::kExclusion + EQ_OFFSET); in hw_blend_equation() 44 GR_STATIC_ASSERT(kMultiply_GrBlendEquation == (int)SkBlendMode::kMultiply + EQ_OFFSET); in hw_blend_equation() [all …]
|
D | GrPorterDuffXferProcessor.cpp | 161 GR_STATIC_ASSERT(kLast_OutputType < (1 << 3)); 162 GR_STATIC_ASSERT(kLast_GrBlendEquation < (1 << 5)); 163 GR_STATIC_ASSERT(kLast_GrBlendCoeff < (1 << 5)); 164 GR_STATIC_ASSERT(kLast_Property < (1 << 6)); 167 GR_STATIC_ASSERT(4 == sizeof(BlendFormula)); 473 GR_STATIC_ASSERT(BlendFormula::kLast_OutputType < 8); in GenKey()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCCoverageProcessor_VSImpl.cpp | 501 GR_STATIC_ASSERT(offsetof(QuadPointInstance, fX) == 0); in initVS() 502 GR_STATIC_ASSERT(sizeof(QuadPointInstance::fX) == in initVS() 504 GR_STATIC_ASSERT(sizeof(QuadPointInstance::fY) == in initVS() 509 GR_STATIC_ASSERT(offsetof(TriPointInstance, fX) == 0); in initVS() 510 GR_STATIC_ASSERT(sizeof(TriPointInstance::fX) == in initVS() 512 GR_STATIC_ASSERT(sizeof(TriPointInstance::fY) == in initVS()
|
D | GrCCCoverageProcessor_GSImpl.cpp | 383 GR_STATIC_ASSERT(sizeof(QuadPointInstance) == in initGS() 385 GR_STATIC_ASSERT(offsetof(QuadPointInstance, fY) == in initGS() 390 GR_STATIC_ASSERT(sizeof(TriPointInstance) == in initGS() 392 GR_STATIC_ASSERT(offsetof(TriPointInstance, fY) == in initGS()
|
/external/skqp/include/gpu/gl/ |
D | GrGLTypes.h | 66 GR_STATIC_ASSERT(16 == sizeof(GrGLDrawArraysIndirectCommand)); 76 GR_STATIC_ASSERT(20 == sizeof(GrGLDrawElementsIndirectCommand));
|