make *imagefilter morphology iamge bitmapsource gm portable
TBR=reed@google.com Review URL: https://codereview.chromium.org/1236403002
This commit is contained in:
parent
e148ac5262
commit
18a240d15c
@ -27,7 +27,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";
|
||||
|
@ -149,7 +149,7 @@ protected:
|
||||
|
||||
SkPaint textPaint;
|
||||
textPaint.setAntiAlias(true);
|
||||
sk_tool_utils::set_portable_typeface(&textPaint);
|
||||
sk_tool_utils::set_portable_typeface_always(&textPaint);
|
||||
textPaint.setTextSize(8);
|
||||
|
||||
canvas->drawText(kLabel1, strlen(kLabel1), 10, 60, textPaint);
|
||||
|
@ -31,7 +31,7 @@ protected:
|
||||
canvas.clear(0x0);
|
||||
SkPaint paint;
|
||||
paint.setAntiAlias(true);
|
||||
sk_tool_utils::set_portable_typeface(&paint);
|
||||
sk_tool_utils::set_portable_typeface_always(&paint);
|
||||
const char* str1 = "ABC";
|
||||
const char* str2 = "XYZ";
|
||||
paint.setColor(0xFFFFFFFF);
|
||||
|
@ -31,8 +31,8 @@ protected:
|
||||
canvas.clear(0);
|
||||
SkPaint paint;
|
||||
paint.setAntiAlias(true);
|
||||
sk_tool_utils::set_portable_typeface(&paint);
|
||||
paint.setColor(0xD000D000);
|
||||
sk_tool_utils::set_portable_typeface_always(&paint);
|
||||
paint.setColor(sk_tool_utils::color_to_565(0xD000D000));
|
||||
paint.setTextSize(96);
|
||||
canvas.drawText("e", 1, 15, 65, paint);
|
||||
}
|
||||
@ -67,7 +67,9 @@ protected:
|
||||
|
||||
fCheckerboard.allocN32Pixels(80, 80);
|
||||
SkCanvas checkerboardCanvas(fCheckerboard);
|
||||
sk_tool_utils::draw_checkerboard(&checkerboardCanvas, 0xFFA0A0A0, 0xFF404040, 8);
|
||||
sk_tool_utils::draw_checkerboard(&checkerboardCanvas,
|
||||
sk_tool_utils::color_to_565(0xFFA0A0A0),
|
||||
sk_tool_utils::color_to_565(0xFF404040), 8);
|
||||
}
|
||||
|
||||
void onDraw(SkCanvas* canvas) override {
|
||||
|
@ -28,7 +28,7 @@ protected:
|
||||
canvas->clear(SK_ColorBLACK);
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user