aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScalerContext.h
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-27 20:37:56 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-27 20:37:56 +0000
commit0abbff9987b9452fd30cce198bea34fdb210ac41 (patch)
tree5515818757ddd3115fd083dc3c17bb5c0e7ad537 /src/core/SkScalerContext.h
parentaeefb2afe74c010c7236f3572e21a8f8a6aee1bd (diff)
Fix metrics on Windows.
With this change, Skia's metrics are much better in general, and specifically can be made to match the metrics produced by current Blink code. This allows Blink to use Skia's metrics. This change will require a number of rebaselines in Skia, since previous metrics were quite different. This will require about five rebaslines in Blink, as the new code may cause GDI's matrix to differ in the low bits. Review URL: https://codereview.chromium.org/20585004 git-svn-id: http://skia.googlecode.com/svn/trunk@10399 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkScalerContext.h')
-rw-r--r--src/core/SkScalerContext.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h
index 06f5f94e17..52707a387c 100644
--- a/src/core/SkScalerContext.h
+++ b/src/core/SkScalerContext.h
@@ -134,13 +134,14 @@ public:
kHintingBit1_Flag = 0x0080,
kHintingBit2_Flag = 0x0100,
- // these should only ever be set if fMaskFormat is LCD16 or LCD32
+ // Pixel geometry information.
+ // only meaningful if fMaskFormat is LCD16 or LCD32
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,
+ // Generate A8 from LCD source (for GDI and CoreGraphics).
+ // only meaningful if fMaskFormat is kA8
+ kGenA8FromLCD_Flag = 0x0800, // could be 0x200 (bit meaning dependent on fMaskFormat)
};
// computed values