Lines Matching refs:xpi

109         const GrPorterDuffTest::XPInfo xpi(reporter, xfermode, caps, opt);  in test_lcd_coverage()  local
113 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
114 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_lcd_coverage()
115 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
116 TEST_ASSERT((kIgnoreColor_OptFlag) == xpi.fOptFlags); in test_lcd_coverage()
117 TEST_ASSERT(kCoverage_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
118 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
119 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
120 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
121 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
122 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
125 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
126 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
127 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
128 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
129 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
130 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
131 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
132 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
133 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
136 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
137 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
141 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_lcd_coverage()
142 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
143 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
144 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
145 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
146 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
147 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
150 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
151 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
152 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
153 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
154 TEST_ASSERT(kSAModulate_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
155 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
156 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
157 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
158 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
161 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
162 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
163 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
164 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
165 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
166 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
167 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
168 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
169 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
172 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
173 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
174 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
175 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
176 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
177 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
178 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
179 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
180 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
183 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
184 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
185 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
186 TEST_ASSERT(kISAModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
187 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
188 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
189 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
190 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
191 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
194 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
195 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
196 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
197 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
198 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
199 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
200 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
201 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
202 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
205 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
206 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
207 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
208 TEST_ASSERT(kSAModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
209 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
210 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
211 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
212 TEST_ASSERT(kISC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
213 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
216 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
217 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
218 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
219 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
220 TEST_ASSERT(kSAModulate_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
221 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
222 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
223 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
224 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
227 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
228 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
229 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
230 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
231 TEST_ASSERT(kISAModulate_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
232 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
233 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
234 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
235 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
238 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
239 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
240 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
241 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
242 TEST_ASSERT(kSAModulate_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
243 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
244 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
245 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
246 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
249 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
250 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
251 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
252 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
253 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
254 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
255 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
256 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
257 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
260 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
261 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
262 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
263 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
264 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
265 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
266 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
267 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
268 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
271 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_lcd_coverage()
272 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_lcd_coverage()
273 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_lcd_coverage()
274 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
275 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
276 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
277 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_lcd_coverage()
278 TEST_ASSERT(kISC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_lcd_coverage()
279 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_lcd_coverage()
301 const GrPorterDuffTest::XPInfo xpi(reporter, xfermode, caps, optimizations); in test_color_unknown_with_coverage() local
306 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
307 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_color_unknown_with_coverage()
308 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
309 TEST_ASSERT((kIgnoreColor_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
310 TEST_ASSERT(kCoverage_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
311 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
312 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
313 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
314 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
315 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
318 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
319 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
320 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_unknown_with_coverage()
321 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
322 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
323 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
324 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
325 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
326 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
329 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
330 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
334 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
335 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
336 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
337 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
338 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
339 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
340 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
343 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
344 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
345 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
346 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
347 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
348 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
349 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
350 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
351 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
354 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
355 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
356 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
357 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
358 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
359 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
360 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
361 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
362 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
365 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
366 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
367 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_unknown_with_coverage()
368 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
369 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
370 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
371 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
372 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
373 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
376 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
377 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
378 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_unknown_with_coverage()
379 TEST_ASSERT(kISAModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
380 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
381 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
382 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
383 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
384 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
387 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
388 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
389 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_unknown_with_coverage()
390 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
391 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
392 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
393 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
394 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
395 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
398 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
399 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
400 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
401 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
402 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
403 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
404 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
405 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
406 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
409 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
410 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
411 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
412 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
413 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
414 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
415 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
416 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
417 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
420 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
421 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
422 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_unknown_with_coverage()
423 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
424 TEST_ASSERT(kISAModulate_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
425 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
426 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
427 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
428 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
431 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
432 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
433 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
434 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
435 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
436 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
437 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
438 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
439 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
442 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
443 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
444 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
445 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
446 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
447 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
448 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
449 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
450 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
453 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
454 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
455 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_unknown_with_coverage()
456 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
457 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
458 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
459 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
460 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
461 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
464 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_with_coverage()
465 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_with_coverage()
466 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_with_coverage()
467 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_with_coverage()
468 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_with_coverage()
469 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_with_coverage()
470 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_with_coverage()
471 TEST_ASSERT(kISC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_with_coverage()
472 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_with_coverage()
495 const GrPorterDuffTest::XPInfo xpi(reporter, xfermode, caps, optimizations); in test_color_unknown_no_coverage() local
499 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
500 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_color_unknown_no_coverage()
501 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
503 kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
504 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
505 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
506 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
507 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
508 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
509 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
512 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
513 TEST_ASSERT(229 == GrColorUnpackR(xpi.fBlendedColor.fKnownColor)); in test_color_unknown_no_coverage()
514 TEST_ASSERT(154 == GrColorUnpackB(xpi.fBlendedColor.fKnownColor)); in test_color_unknown_no_coverage()
516 kB_GrColorComponentFlag) == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
517 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
518 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
519 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
520 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
521 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
522 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
523 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
526 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
527 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
531 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
532 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
533 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
534 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
535 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
536 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
537 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
540 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
541 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
543 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
544 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
545 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
546 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
547 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
548 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
549 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
552 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
553 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
555 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
556 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
557 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
558 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
559 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
560 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
561 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
564 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
565 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
566 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
567 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
568 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
569 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
570 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
571 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
572 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
575 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
576 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
577 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
578 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
579 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
580 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
581 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
582 TEST_ASSERT(kSA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
583 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
586 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
587 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
588 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
589 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
590 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
591 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
592 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
593 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
594 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
597 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
598 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
600 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
601 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
602 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
603 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
604 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
605 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
606 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
609 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
610 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
612 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
613 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
614 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
615 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
616 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
617 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
618 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
621 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
622 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
623 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
624 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
625 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
626 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
627 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
628 TEST_ASSERT(kSA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
629 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
632 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
633 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
635 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
636 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
637 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
638 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
639 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
640 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
641 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
644 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
645 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
647 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
648 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
649 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
650 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
651 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
652 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
653 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
656 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
657 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
658 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
659 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
660 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
661 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
662 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
663 TEST_ASSERT(kSC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
664 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
667 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_unknown_no_coverage()
668 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_unknown_no_coverage()
670 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_unknown_no_coverage()
671 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_unknown_no_coverage()
672 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_unknown_no_coverage()
673 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_unknown_no_coverage()
674 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_unknown_no_coverage()
675 TEST_ASSERT(kISC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_unknown_no_coverage()
676 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_unknown_no_coverage()
699 const GrPorterDuffTest::XPInfo xpi(reporter, xfermode, caps, optimizations); in test_color_opaque_with_coverage() local
703 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
704 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_color_opaque_with_coverage()
705 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
706 TEST_ASSERT((kIgnoreColor_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
707 TEST_ASSERT(kCoverage_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
708 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
709 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
710 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
711 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
712 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
715 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
716 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_with_coverage()
717 TEST_ASSERT(kA_GrColorComponentFlag == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
718 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
719 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
720 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
721 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
722 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
723 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
724 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
727 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
728 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
732 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
733 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
734 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
735 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
736 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
737 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
738 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
741 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
742 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_with_coverage()
743 TEST_ASSERT(kA_GrColorComponentFlag == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
744 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
745 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
746 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
747 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
748 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
749 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
750 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
753 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
754 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
755 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
756 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
757 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
758 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
759 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
760 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
761 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
764 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
765 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
766 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
767 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
768 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
769 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
770 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
771 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
772 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
775 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
776 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
780 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
781 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
782 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
783 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
784 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
785 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
786 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
789 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
790 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
791 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
792 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
793 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
794 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
795 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
796 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
797 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
800 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
801 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_color_opaque_with_coverage()
802 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
803 TEST_ASSERT((kIgnoreColor_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
804 TEST_ASSERT(kCoverage_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
805 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
806 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
807 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
808 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
809 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
812 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
813 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
814 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
815 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
816 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
817 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
818 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
819 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
820 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
823 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
824 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
825 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
826 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
827 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
828 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
829 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
830 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
831 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
834 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
835 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
836 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
837 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
838 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
839 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
840 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
841 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
842 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
845 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
846 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
847 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
848 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
849 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
850 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
851 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
852 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
853 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
856 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
857 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
858 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags); in test_color_opaque_with_coverage()
859 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
860 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
861 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
862 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
863 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
864 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
867 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_with_coverage()
868 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_with_coverage()
869 TEST_ASSERT((kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_with_coverage()
870 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_with_coverage()
871 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_with_coverage()
872 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_with_coverage()
873 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_with_coverage()
874 TEST_ASSERT(kISC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_with_coverage()
875 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_with_coverage()
898 const GrPorterDuffTest::XPInfo xpi(reporter, xfermode, caps, optimizations); in test_color_opaque_no_coverage() local
902 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
903 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_color_opaque_no_coverage()
904 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
906 kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
907 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
908 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
909 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
910 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
911 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
912 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
915 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
916 TEST_ASSERT(82 == GrColorUnpackG(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
917 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
919 kA_GrColorComponentFlag) == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
920 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
921 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
922 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
923 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
924 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
925 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
926 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
929 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
930 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
934 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
935 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
936 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
937 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
938 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
939 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
940 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
943 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
944 TEST_ASSERT(82 == GrColorUnpackG(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
945 TEST_ASSERT(255 == GrColorUnpackA(xpi.fBlendedColor.fKnownColor)); in test_color_opaque_no_coverage()
947 kA_GrColorComponentFlag) == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
948 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
949 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
950 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
951 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
952 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
953 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
954 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
957 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
958 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
960 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
961 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
962 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
963 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
964 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
965 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
966 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
969 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
970 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
971 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
972 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
973 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
974 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
975 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
976 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
977 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
980 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
981 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
985 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
986 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
987 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
988 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
989 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
990 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
991 TEST_ASSERT(!xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
994 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
995 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
996 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
997 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
998 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
999 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1000 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1001 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1002 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1005 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1006 TEST_ASSERT(0 == xpi.fBlendedColor.fKnownColor); in test_color_opaque_no_coverage()
1007 TEST_ASSERT(kRGBA_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1009 kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1010 TEST_ASSERT(kNone_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1011 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1012 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1013 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1014 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1015 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1018 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1019 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1020 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1021 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1022 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1023 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1024 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1025 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1026 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1029 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1030 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1032 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1033 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1034 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1035 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1036 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1037 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1038 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1041 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1042 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1043 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1044 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1045 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1046 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1047 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1048 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1049 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1052 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1053 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1055 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1056 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1057 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1058 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1059 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1060 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1061 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1064 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1065 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1066 TEST_ASSERT((kIgnoreCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1067 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1068 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1069 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1070 TEST_ASSERT(kZero_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1071 TEST_ASSERT(kSC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1072 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()
1075 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); in test_color_opaque_no_coverage()
1076 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKnownColorFlags); in test_color_opaque_no_coverage()
1078 kCanTweakAlphaForCoverage_OptFlag) == xpi.fOptFlags); in test_color_opaque_no_coverage()
1079 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); in test_color_opaque_no_coverage()
1080 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); in test_color_opaque_no_coverage()
1081 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_color_opaque_no_coverage()
1082 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); in test_color_opaque_no_coverage()
1083 TEST_ASSERT(kISC_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); in test_color_opaque_no_coverage()
1084 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); in test_color_opaque_no_coverage()