Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index 4c75a36363e428a3455ebef5b09246fc193e62fd..ac467550138fa291a957ebffe8cad2195ae691fa 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -8,6 +8,16 @@ |
#include "SkDevice.h" |
#include "SkMetaData.h" |
+#if SK_PMCOLOR_BYTE_ORDER(B,G,R,A) |
+ const SkCanvas::Config8888 SkBaseDevice::kPMColorAlias = SkCanvas::kBGRA_Premul_Config8888; |
+#elif SK_PMCOLOR_BYTE_ORDER(R,G,B,A) |
+ const SkCanvas::Config8888 SkBaseDevice::kPMColorAlias = SkCanvas::kRGBA_Premul_Config8888; |
+#else |
+ const SkCanvas::Config8888 SkBaseDevice::kPMColorAlias = (SkCanvas::Config8888) -1; |
+#endif |
+ |
+/////////////////////////////////////////////////////////////////////////////// |
+ |
SkBaseDevice::SkBaseDevice() |
: fLeakyProperties(SkDeviceProperties::MakeDefault()) |
#ifdef SK_DEBUG |