Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: gm/xfermodes2.cpp

Issue 1243103002: make xfermode* portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/xfermodes.cpp ('k') | gm/xfermodes3.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/xfermodes2.cpp
diff --git a/gm/xfermodes2.cpp b/gm/xfermodes2.cpp
index 2ceb2fc65065c58c82672923b3d1866f2500fd02..ab57dcf7034fb7f9ac708a0423f1fc6e83d91071 100644
--- a/gm/xfermodes2.cpp
+++ b/gm/xfermodes2.cpp
@@ -34,7 +34,7 @@ protected:
SkPaint labelP;
labelP.setAntiAlias(true);
- sk_tool_utils::set_portable_typeface(&labelP);
+ sk_tool_utils::set_portable_typeface_always(&labelP);
labelP.setTextAlign(SkPaint::kCenter_Align);
const int W = 6;
@@ -88,10 +88,10 @@ protected:
private:
void onOnceBeforeDraw() override {
static const uint32_t kCheckData[] = {
- SkPackARGB32(0xFF, 0x40, 0x40, 0x40),
- SkPackARGB32(0xFF, 0xD0, 0xD0, 0xD0),
- SkPackARGB32(0xFF, 0xD0, 0xD0, 0xD0),
- SkPackARGB32(0xFF, 0x40, 0x40, 0x40)
+ SkPackARGB32(0xFF, 0x42, 0x41, 0x42),
+ SkPackARGB32(0xFF, 0xD6, 0xD3, 0xD6),
+ SkPackARGB32(0xFF, 0xD6, 0xD3, 0xD6),
+ SkPackARGB32(0xFF, 0x42, 0x41, 0x42)
};
SkBitmap bg;
bg.allocN32Pixels(2, 2, true);
« no previous file with comments | « gm/xfermodes.cpp ('k') | gm/xfermodes3.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698