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

Unified Diff: gm/dcshader.cpp

Issue 1182403003: Revert of Revert of make gm background colors 565 compatible (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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/constcolorprocessor.cpp ('k') | gm/downsamplebitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dcshader.cpp
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp
index 6cfd00e84002916f2fefeb56a6e4daa2262dbacd..a456c0c24ae1510b0a3c7051abcedc31f4783960 100644
--- a/gm/dcshader.cpp
+++ b/gm/dcshader.cpp
@@ -110,7 +110,7 @@
class DCShaderGM : public GM {
public:
DCShaderGM() {
- this->setBGColor(0xFFAABBCC);
+ this->setBGColor(sk_tool_utils::color_to_565(0xFFAABBCC));
}
~DCShaderGM() override {
@@ -210,7 +210,7 @@
}
virtual void setFont(SkPaint* paint) {
- sk_tool_utils::set_portable_typeface(paint);
+ sk_tool_utils::set_portable_typeface_always(paint);
}
virtual const char* text() const { return "Hello, Skia!"; }
« no previous file with comments | « gm/constcolorprocessor.cpp ('k') | gm/downsamplebitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698