Home | History | Annotate | Download | only in tests

Lines Matching refs:SkCanvas

10 #include "SkCanvas.h"
57 static bool config8888IsPremul(SkCanvas::Config8888 config8888) {
59 case SkCanvas::kNative_Premul_Config8888:
60 case SkCanvas::kBGRA_Premul_Config8888:
61 case SkCanvas::kRGBA_Premul_Config8888:
63 case SkCanvas::kNative_Unpremul_Config8888:
64 case SkCanvas::kBGRA_Unpremul_Config8888:
65 case SkCanvas::kRGBA_Unpremul_Config8888:
74 static uint32_t packConfig8888(SkCanvas::Config8888 config8888,
79 case SkCanvas::kNative_Premul_Config8888:
80 case SkCanvas::kNative_Unpremul_Config8888:
83 case SkCanvas::kBGRA_Premul_Config8888:
84 case SkCanvas::kBGRA_Unpremul_Config8888:
90 case SkCanvas::kRGBA_Premul_Config8888:
91 case SkCanvas::kRGBA_Unpremul_Config8888:
104 static uint32_t getBitmapColor(int x, int y, int w, SkCanvas::Config8888 config8888) {
135 static void fillCanvas(SkCanvas* canvas) {
159 static SkPMColor convertConfig8888ToPMColor(SkCanvas::Config8888 config8888,
166 case SkCanvas::kNative_Premul_Config8888:
168 case SkCanvas::kNative_Unpremul_Config8888:
175 case SkCanvas::kBGRA_Unpremul_Config8888:
177 case SkCanvas::kBGRA_Premul_Config8888:
183 case SkCanvas::kRGBA_Unpremul_Config8888:
185 case SkCanvas::kRGBA_Premul_Config8888:
224 SkCanvas* canvas,
227 SkCanvas::Config8888 config8888) {
342 SkCanvas::Config8888 config8888,
362 SkCanvas canvas;
437 SkCanvas canvas(device);
439 static const SkCanvas::Config8888 gSrcConfigs[] = {
440 SkCanvas::kNative_Premul_Config8888,
441 SkCanvas::kNative_Unpremul_Config8888,
442 SkCanvas::kBGRA_Premul_Config8888,
443 SkCanvas::kBGRA_Unpremul_Config8888,
444 SkCanvas::kRGBA_Premul_Config8888,
445 SkCanvas::kRGBA_Unpremul_Config8888,
452 SkCanvas::Config8888 config8888 = gSrcConfigs[c];