Home | History | Annotate | Download | only in tests

Lines Matching defs:config8888

59 bool config8888IsPremul(SkCanvas::Config8888 config8888) {
60 switch (config8888) {
76 uint32_t packConfig8888(SkCanvas::Config8888 config8888,
80 switch (config8888) {
106 uint32_t getBitmapColor(int x, int y, int w, SkCanvas::Config8888 config8888) {
129 if (config8888IsPremul(config8888)) {
134 return packConfig8888(config8888, a, r, g , b);
161 SkPMColor convertConfig8888ToPMColor(SkCanvas::Config8888 config8888,
167 switch (config8888) {
194 SkDEBUGFAIL("Unexpected Config8888");
229 SkCanvas::Config8888 config8888) {
253 uint32_t bmpColor8888 = getBitmapColor(bx, by, bitmap.width(), config8888);
255 SkPMColor bmpPMColor = convertConfig8888ToPMColor(config8888, bmpColor8888, &mul);
344 SkCanvas::Config8888 config8888,
357 *pixel = getBitmapColor(x, y, w, config8888);
441 static const SkCanvas::Config8888 gSrcConfigs[] = {
454 SkCanvas::Config8888 config8888 = gSrcConfigs[c];
456 REPORTER_ASSERT(reporter, setupBitmap(&bmp, config8888, rect.width(), rect.height(), SkToBool(tightBmp)));
458 canvas.writePixels(bmp, rect.fLeft, rect.fTop, config8888);
460 REPORTER_ASSERT(reporter, checkWrite(reporter, &canvas, bmp, rect.fLeft, rect.fTop, config8888));