Lines Matching refs:paint

49         SkPaint paint;  in onDraw()  local
50 sk_tool_utils::set_portable_typeface(&paint); in onDraw()
55 paint.setColor(SK_ColorRED); in onDraw()
56 canvas->drawRect(r, paint); in onDraw()
59 paint.setShader(make_chrome_solid())->unref(); in onDraw()
60 paint.setTextSize(SkIntToScalar(500)); in onDraw()
62 canvas->drawText("I", 1, 0, 100, paint); in onDraw()
78 SkPaint paint; in onDraw() local
79 sk_tool_utils::set_portable_typeface(&paint); in onDraw()
81 paint.setStyle(SkPaint::kFill_Style); in onDraw()
82 canvas->drawText("Normal Fill Text", 16, 0, 50, paint); in onDraw()
83 paint.setStyle(SkPaint::kStroke_Style); in onDraw()
84 canvas->drawText("Normal Stroke Text", 18, 0, 100, paint); in onDraw()
87 paint.setShader(make_chrome_solid())->unref(); in onDraw()
89 paint.setStyle(SkPaint::kFill_Style); in onDraw()
90 canvas->drawText("Gradient Fill Text", 18, 0, 150, paint); in onDraw()
91 paint.setStyle(SkPaint::kStroke_Style); in onDraw()
92 canvas->drawText("Gradient Stroke Text", 20, 0, 200, paint); in onDraw()
111 static void draw_text(SkCanvas* canvas, const SkPaint& paint) { in draw_text() argument
114 canvas->drawText(text, len, 0, 0, paint); in draw_text()
117 static void draw_text3(SkCanvas* canvas, const SkPaint& paint) { in draw_text3() argument
118 SkPaint p(paint); in draw_text3()
123 canvas->translate(0, paint.getTextSize() * 4/3); in draw_text3()
126 canvas->translate(0, paint.getTextSize() * 4/3); in draw_text3()
131 SkPaint paint; in onDraw() local
132 sk_tool_utils::set_portable_typeface(&paint); in onDraw()
133 paint.setTextSize(SkIntToScalar(26)); in onDraw()
138 canvas->drawRect(r, paint); in onDraw()
140 canvas->translate(SkIntToScalar(20), paint.getTextSize()); in onDraw()
143 paint.setShader(make_grad(SkIntToScalar(80)))->unref(); in onDraw()
144 draw_text3(canvas, paint); in onDraw()
146 canvas->translate(0, paint.getTextSize() * 2); in onDraw()
148 paint.setShader(make_grad2(SkIntToScalar(80)))->unref(); in onDraw()
149 draw_text3(canvas, paint); in onDraw()
151 canvas->translate(0, paint.getTextSize() * 2); in onDraw()