make drawbitmaprect lighting lumafilter matrixconvolution srcmode gm portable
TBR=reed@google.com Review URL: https://codereview.chromium.org/1240843005
This commit is contained in:
parent
e49109f3b5
commit
97a26d04e2
@ -163,7 +163,7 @@ protected:
|
||||
blackPaint.setColor(SK_ColorBLACK);
|
||||
blackPaint.setTextSize(titleHeight);
|
||||
blackPaint.setAntiAlias(true);
|
||||
sk_tool_utils::set_portable_typeface(&blackPaint);
|
||||
sk_tool_utils::set_portable_typeface_always(&blackPaint);
|
||||
SkString title;
|
||||
title.printf("Bitmap size: %d x %d", gBmpSize, gBmpSize);
|
||||
canvas->drawText(title.c_str(), title.size(), 0,
|
||||
|
@ -33,7 +33,7 @@ protected:
|
||||
canvas.clear(0x00000000);
|
||||
SkPaint paint;
|
||||
paint.setAntiAlias(true);
|
||||
sk_tool_utils::set_portable_typeface(&paint);
|
||||
sk_tool_utils::set_portable_typeface_always(&paint);
|
||||
paint.setColor(0xFFFFFFFF);
|
||||
paint.setTextSize(SkIntToScalar(96));
|
||||
const char* str = "e";
|
||||
|
@ -13,12 +13,12 @@
|
||||
static SkScalar kSize = 80;
|
||||
static SkScalar kInset = 10;
|
||||
static SkColor kColor1 = SkColorSetARGB(0xff, 0xff, 0xff, 0);
|
||||
static SkColor kColor2 = SkColorSetARGB(0xff, 0x80, 0xff, 0);
|
||||
static SkColor kColor2 = SkColorSetARGB(0xff, 0x82, 0xff, 0);
|
||||
|
||||
static void draw_label(SkCanvas* canvas, const char* label,
|
||||
const SkPoint& offset) {
|
||||
SkPaint paint;
|
||||
sk_tool_utils::set_portable_typeface(&paint);
|
||||
sk_tool_utils::set_portable_typeface_always(&paint);
|
||||
size_t len = strlen(label);
|
||||
|
||||
SkScalar width = paint.measureText(label, len);
|
||||
|
@ -30,7 +30,7 @@ protected:
|
||||
canvas.clear(0x00000000);
|
||||
SkPaint paint;
|
||||
paint.setAntiAlias(true);
|
||||
sk_tool_utils::set_portable_typeface(&paint);
|
||||
sk_tool_utils::set_portable_typeface_always(&paint);
|
||||
paint.setColor(0xFFFFFFFF);
|
||||
paint.setTextSize(SkIntToScalar(180));
|
||||
SkPoint pts[2] = { SkPoint::Make(0, 0),
|
||||
|
@ -80,8 +80,8 @@ protected:
|
||||
canvas->translate(SkIntToScalar(20), SkIntToScalar(20));
|
||||
|
||||
SkPaint paint;
|
||||
sk_tool_utils::set_portable_typeface(&paint);
|
||||
paint.setColor(0x80FF0000);
|
||||
sk_tool_utils::set_portable_typeface_always(&paint);
|
||||
paint.setColor(0x80F60000);
|
||||
|
||||
const Proc procs[] = {
|
||||
draw_hair, draw_thick, draw_rect, draw_oval, draw_text
|
||||
|
Loading…
Reference in New Issue
Block a user