From 8351aabbfe82a76a698fa2bde00d33c1174518cd Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 18 Jan 2012 17:06:35 +0000 Subject: add GenA8FromLCD as a hack to force GDI to create the A8 mask from the LCD results, rather than asking GDI directly for A8 (which it sometimes decides to interpret as BW) git-svn-id: http://skia.googlecode.com/svn/trunk@3061 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkScalerContext.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/core/SkScalerContext.h') diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index f59d489910..2e4d594122 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -175,8 +175,12 @@ public: kLCD_Vertical_Flag = 0x0200, // else Horizontal kLCD_BGROrder_Flag = 0x0400, // else RGB order + // Generate A8 from LCD source (for GDI), only meaningful if fMaskFormat is kA8 + // Perhaps we can store this (instead) in fMaskFormat, in hight bit? + kGenA8FromLCD_Flag = 0x0800, + // luminance : 0 for black text, kLuminance_Max for white text - kLuminance_Shift = 11, // to shift into the other flags above + kLuminance_Shift = 13, // shift to land in the high 3-bits of Flags kLuminance_Bits = 3, // ensure Flags doesn't exceed 16bits }; -- cgit v1.2.3