Lines Matching refs:SkCanvas
9 #include "SkCanvas.h"
17 * This GM exercises the flags to SkCanvas::save(). The canvas' save() and
66 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
68 SkCanvas::SaveFlags flags[] = { SkCanvas::kMatrix_SaveFlag,
69 SkCanvas::kClip_SaveFlag,
70 SkCanvas::kMatrixClip_SaveFlag };
88 void drawTestPattern(int x, int y, SkCanvas* canvas,
89 SkCanvas::SaveFlags flags, bool doClip, bool doScale) {
130 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
136 drawTestPattern(canvas, 255, SkCanvas::kARGB_NoClipLayer_SaveFlag);
141 drawTestPattern(canvas, 255, SkCanvas::kARGB_ClipLayer_SaveFlag);
146 drawTestPattern(canvas, 0, SkCanvas::kARGB_NoClipLayer_SaveFlag);
153 void drawTestPattern(SkCanvas* canvas, U8CPU layerAlpha, SkCanvas::SaveFlags flags) {