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

Unified Diff: cmake/SkUserConfig.h.in

Issue 1835573002: [CMake fixes] Linux X11 pixel format and Windows compilation fix (Closed) Base URL: git@github.com:google/skia.git@master
Patch Set: added SkTypes.h Created 4 years, 9 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
Index: cmake/SkUserConfig.h.in
diff --git a/cmake/SkUserConfig.h.in b/cmake/SkUserConfig.h.in
index 0649656e7fb90704daa480e3f28127af3f8f8253..99da2545c71041ffc10fde0b1512578de8b1080c 100644
--- a/cmake/SkUserConfig.h.in
+++ b/cmake/SkUserConfig.h.in
@@ -10,6 +10,15 @@
#undef SK_RELEASE
#endif
+/* Change the ordering to work in X windows.
+ */
+#if ${SK_SAMPLES_FOR_X}
+ #define SK_R32_SHIFT 16
+ #define SK_G32_SHIFT 8
+ #define SK_B32_SHIFT 0
+ #define SK_A32_SHIFT 24
+#endif
+
#cmakedefine01 SK_MESA
#endif

Powered by Google App Engine
This is Rietveld 408576698