Home
last modified time | relevance | path

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

123

/external/skia/src/gpu/
DGrStencilSettings.cpp23 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 …]
DGrShaderCaps.cpp131 GR_STATIC_ASSERT(0 == kNotSupported_AdvBlendEqInteraction); in dump()
132 GR_STATIC_ASSERT(1 == kAutomatic_AdvBlendEqInteraction); in dump()
133 GR_STATIC_ASSERT(2 == kGeneralEnable_AdvBlendEqInteraction); in dump()
134 GR_STATIC_ASSERT(3 == kSpecificEnables_AdvBlendEqInteraction); in dump()
135 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kAdvBlendEqInteractionStr) == kLast_AdvBlendEqInteraction + 1); in dump()
199 GR_STATIC_ASSERT(0 == kLow_GrSLPrecision); in initSamplerPrecisionTable()
200 GR_STATIC_ASSERT(1 == kMedium_GrSLPrecision); in initSamplerPrecisionTable()
201 GR_STATIC_ASSERT(2 == kHigh_GrSLPrecision); in initSamplerPrecisionTable()
203 GR_STATIC_ASSERT((1 << kVertex_GrShaderType) == kVertex_GrShaderFlag); in initSamplerPrecisionTable()
204 GR_STATIC_ASSERT((1 << kGeometry_GrShaderType) == kGeometry_GrShaderFlag); in initSamplerPrecisionTable()
[all …]
DGrCaps.cpp163 GR_STATIC_ASSERT(0 == (int)InstancedSupport::kNone); in dump()
164 GR_STATIC_ASSERT(1 == (int)InstancedSupport::kBasic); in dump()
165 GR_STATIC_ASSERT(2 == (int)InstancedSupport::kMultisampled); in dump()
166 GR_STATIC_ASSERT(3 == (int)InstancedSupport::kMixedSampled); in dump()
167 GR_STATIC_ASSERT(4 == SK_ARRAY_COUNT(kInstancedSupportNames)); in dump()
177 GR_STATIC_ASSERT(0 == kBasic_BlendEquationSupport); in dump()
178 GR_STATIC_ASSERT(1 == kAdvanced_BlendEquationSupport); in dump()
179 GR_STATIC_ASSERT(2 == kAdvancedCoherent_BlendEquationSupport); in dump()
180 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kBlendEquationSupportNames) == kLast_BlendEquationSupport + 1); in dump()
DSkGr.h181 GR_STATIC_ASSERT((int)kZero_GrBlendCoeff == (int)SkBlendModeCoeff::kZero);
182 GR_STATIC_ASSERT((int)kOne_GrBlendCoeff == (int)SkBlendModeCoeff::kOne);
183 GR_STATIC_ASSERT((int)kSC_GrBlendCoeff == (int)SkBlendModeCoeff::kSC);
184 GR_STATIC_ASSERT((int)kISC_GrBlendCoeff == (int)SkBlendModeCoeff::kISC);
185 GR_STATIC_ASSERT((int)kDC_GrBlendCoeff == (int)SkBlendModeCoeff::kDC);
186 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkBlendModeCoeff::kIDC);
187 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkBlendModeCoeff::kSA);
188 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkBlendModeCoeff::kISA);
189 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkBlendModeCoeff::kDA);
190 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkBlendModeCoeff::kIDA);
DGrStyle.cpp12 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()
DGrPathRange.h37 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()
DGrPathRendererChain.cpp80 GR_STATIC_ASSERT(GrPathRenderer::kNoSupport_StencilSupport < in getPathRenderer()
82 GR_STATIC_ASSERT(GrPathRenderer::kStencilOnly_StencilSupport < in getPathRenderer()
DGrShape.cpp84 GR_STATIC_ASSERT(sizeof(SkPoint) == 2 * sizeof(uint32_t)); in path_key_from_data_size()
85 GR_STATIC_ASSERT(sizeof(SkScalar) == sizeof(uint32_t)); in path_key_from_data_size()
110 GR_STATIC_ASSERT(sizeof(SkPoint) == 2 * sizeof(uint32_t)); in write_path_key_from_data()
113 GR_STATIC_ASSERT(sizeof(SkScalar) == sizeof(uint32_t)); in write_path_key_from_data()
131 GR_STATIC_ASSERT(2 * sizeof(uint32_t) == sizeof(SkPoint)); in unstyledKeySize()
/external/skia/src/gpu/vk/
DGrVkPipeline.cpp140 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kGrStencilOpCount); in stencil_op_to_vk_stencil_op()
141 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in stencil_op_to_vk_stencil_op()
142 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in stencil_op_to_vk_stencil_op()
143 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in stencil_op_to_vk_stencil_op()
144 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in stencil_op_to_vk_stencil_op()
145 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in stencil_op_to_vk_stencil_op()
146 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in stencil_op_to_vk_stencil_op()
147 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in stencil_op_to_vk_stencil_op()
148 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in stencil_op_to_vk_stencil_op()
164 GR_STATIC_ASSERT(SK_ARRAY_COUNT(gTable) == kGrStencilTestCount); in stencil_func_to_vk_compare_op()
[all …]
DGrVkSampler.cpp18 GR_STATIC_ASSERT(SkShader::kTileModeCount == SK_ARRAY_COUNT(gWrapModes)); in tile_to_vk_sampler_address()
19 GR_STATIC_ASSERT(0 == SkShader::kClamp_TileMode); in tile_to_vk_sampler_address()
20 GR_STATIC_ASSERT(1 == SkShader::kRepeat_TileMode); in tile_to_vk_sampler_address()
21 GR_STATIC_ASSERT(2 == SkShader::kMirror_TileMode); in tile_to_vk_sampler_address()
89 GR_STATIC_ASSERT(SkShader::kTileModeCount <= 4); in GenerateKey()
DGrVkMemory.cpp47 GR_STATIC_ASSERT(0 == GrVkBuffer::kVertex_Type); in buffer_type_to_heap()
48 GR_STATIC_ASSERT(1 == GrVkBuffer::kIndex_Type); in buffer_type_to_heap()
49 GR_STATIC_ASSERT(2 == GrVkBuffer::kUniform_Type); in buffer_type_to_heap()
50 GR_STATIC_ASSERT(3 == GrVkBuffer::kTexel_Type); in buffer_type_to_heap()
51 GR_STATIC_ASSERT(4 == GrVkBuffer::kCopyRead_Type); in buffer_type_to_heap()
52 GR_STATIC_ASSERT(5 == GrVkBuffer::kCopyWrite_Type); in buffer_type_to_heap()
/external/skia/src/gpu/glsl/
DGrGLSLFragmentShaderBuilder.cpp27 GR_STATIC_ASSERT(0 == GrGLSLFPFragmentBuilder::kSkiaDevice_Coordinates); in sample_offset_array_name()
28 GR_STATIC_ASSERT(1 == GrGLSLFPFragmentBuilder::kGLSLWindow_Coordinates); in sample_offset_array_name()
29 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kArrayNames) == GrGLSLFPFragmentBuilder::kLast_Coordinates + 1); in sample_offset_array_name()
54 GR_STATIC_ASSERT(0 == kScreen_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
55 GR_STATIC_ASSERT(1 == kOverlay_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
56 GR_STATIC_ASSERT(2 == kDarken_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
57 GR_STATIC_ASSERT(3 == kLighten_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
58 GR_STATIC_ASSERT(4 == kColorDodge_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
59 GR_STATIC_ASSERT(5 == kColorBurn_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
60 GR_STATIC_ASSERT(6 == kHardLight_GrBlendEquation - kFirstAdvancedGrBlendEquation); in specific_layout_qualifier_name()
[all …]
DGrGLSLShaderBuilder.cpp217 GR_STATIC_ASSERT(0 == GrGLSLShaderBuilder::kIn_InterfaceQualifier); in compileAndAppendLayoutQualifiers()
218 GR_STATIC_ASSERT(1 == GrGLSLShaderBuilder::kOut_InterfaceQualifier); in compileAndAppendLayoutQualifiers()
219 GR_STATIC_ASSERT(SK_ARRAY_COUNT(interfaceQualifierNames) == kLastInterfaceQualifier + 1); in compileAndAppendLayoutQualifiers()
/external/skia/src/gpu/instanced/
DInstancedRenderingTypes.h60 GR_STATIC_ASSERT((int)ShapeType::kRect == SkRRect::kRect_Type - 1); in GetRRectShapeType()
61 GR_STATIC_ASSERT((int)ShapeType::kOval == SkRRect::kOval_Type - 1); in GetRRectShapeType()
62 GR_STATIC_ASSERT((int)ShapeType::kSimpleRRect == SkRRect::kSimple_Type - 1); in GetRRectShapeType()
63 GR_STATIC_ASSERT((int)ShapeType::kNinePatch == SkRRect::kNinePatch_Type - 1); in GetRRectShapeType()
64 GR_STATIC_ASSERT((int)ShapeType::kComplexRRect == SkRRect::kComplex_Type - 1); in GetRRectShapeType()
65 GR_STATIC_ASSERT(kNumShapeTypes == SkRRect::kComplex_Type); in GetRRectShapeType()
99 GR_STATIC_ASSERT((kNumShapeTypes - 1) <= (uint32_t)kShapeType_InfoMask >> kShapeType_InfoBit);
100 GR_STATIC_ASSERT((int)ShapeType::kSimpleRRect <=
111 GR_STATIC_ASSERT(0 == offsetof(ParamsTexel, fX));
112 GR_STATIC_ASSERT(4 * 4 == sizeof(ParamsTexel));
[all …]
/external/skia/src/gpu/gl/
DGrGLPath.cpp23 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 …]
DGrGLBuffer.cpp65 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 …]
DGrGLIRect.h32 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()
DGrGLPathRendering.cpp32 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…
DGrGLUtil.cpp386 GR_STATIC_ASSERT(0 == (int)GrStencilTest::kAlways); in GrToGLStencilFunc()
387 GR_STATIC_ASSERT(1 == (int)GrStencilTest::kNever); in GrToGLStencilFunc()
388 GR_STATIC_ASSERT(2 == (int)GrStencilTest::kGreater); in GrToGLStencilFunc()
389 GR_STATIC_ASSERT(3 == (int)GrStencilTest::kGEqual); in GrToGLStencilFunc()
390 GR_STATIC_ASSERT(4 == (int)GrStencilTest::kLess); in GrToGLStencilFunc()
391 GR_STATIC_ASSERT(5 == (int)GrStencilTest::kLEqual); in GrToGLStencilFunc()
392 GR_STATIC_ASSERT(6 == (int)GrStencilTest::kEqual); in GrToGLStencilFunc()
393 GR_STATIC_ASSERT(7 == (int)GrStencilTest::kNotEqual); in GrToGLStencilFunc()
DGrGLGpu.cpp89 GR_STATIC_ASSERT(0 == kAdd_GrBlendEquation);
90 GR_STATIC_ASSERT(1 == kSubtract_GrBlendEquation);
91 GR_STATIC_ASSERT(2 == kReverseSubtract_GrBlendEquation);
92 GR_STATIC_ASSERT(3 == kScreen_GrBlendEquation);
93 GR_STATIC_ASSERT(4 == kOverlay_GrBlendEquation);
94 GR_STATIC_ASSERT(5 == kDarken_GrBlendEquation);
95 GR_STATIC_ASSERT(6 == kLighten_GrBlendEquation);
96 GR_STATIC_ASSERT(7 == kColorDodge_GrBlendEquation);
97 GR_STATIC_ASSERT(8 == kColorBurn_GrBlendEquation);
98 GR_STATIC_ASSERT(9 == kHardLight_GrBlendEquation);
[all …]
DGrGLCaps.cpp1250 GR_STATIC_ASSERT(0 == kNone_MSFBOType); in dump()
1251 GR_STATIC_ASSERT(1 == kStandard_MSFBOType); in dump()
1252 GR_STATIC_ASSERT(2 == kES_Apple_MSFBOType); in dump()
1253 GR_STATIC_ASSERT(3 == kES_IMG_MsToTexture_MSFBOType); in dump()
1254 GR_STATIC_ASSERT(4 == kES_EXT_MsToTexture_MSFBOType); in dump()
1255 GR_STATIC_ASSERT(5 == kMixedSamples_MSFBOType); in dump()
1256 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kMSFBOExtStr) == kLast_MSFBOType + 1); in dump()
1263 GR_STATIC_ASSERT(0 == kNone_InvalidateFBType); in dump()
1264 GR_STATIC_ASSERT(1 == kDiscard_InvalidateFBType); in dump()
1265 GR_STATIC_ASSERT(2 == kInvalidate_InvalidateFBType); in dump()
[all …]
/external/skia/src/gpu/effects/
DGrCustomXfermode.cpp35 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 …]
/external/skia/include/gpu/gl/
DGrGLTypes.h71 GR_STATIC_ASSERT(16 == sizeof(GrGLDrawArraysIndirectCommand));
81 GR_STATIC_ASSERT(20 == sizeof(GrGLDrawElementsIndirectCommand));
116 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLTextureInfo*));
122 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrGLFramebufferInfo*));
/external/skia/src/gpu/ccpr/
DGrCCPRPathProcessor.h52 GR_STATIC_ASSERT(SK_SCALAR_IS_FLOAT);
55 GR_STATIC_ASSERT(4 * 17 == sizeof(Instance)); // FIXME: 4 * 16 by making fAtlasOffset int16_t's.
/external/skia/include/gpu/vk/
DGrVkTypes.h62 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkImageInfo*));

123