don't autoset forceaa (yet), but require the caller to do that. In the future
we may add an explicit flag on Bitmap/Device which will say "disable LCD for me" in which case we would want to set the forceaa flag (meaning the caller wanted LCD, but we couldn't do it) git-svn-id: http://skia.googlecode.com/svn/trunk@2390 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
97d1a22398
commit
600b3f658c
@ -225,7 +225,6 @@ bool SkDevice::filterTextFlags(const SkPaint& paint, TextFlags* flags) {
|
||||
}
|
||||
|
||||
if (SkBitmap::kARGB_8888_Config != fBitmap.config() ||
|
||||
// !fBitmap.isOpaque() ||
|
||||
paint.getShader() ||
|
||||
paint.getXfermode() || // unless its srcover
|
||||
paint.getMaskFilter() ||
|
||||
@ -236,10 +235,6 @@ bool SkDevice::filterTextFlags(const SkPaint& paint, TextFlags* flags) {
|
||||
paint.getStyle() != SkPaint::kFill_Style) {
|
||||
// turn off lcd
|
||||
flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag;
|
||||
#ifdef SK_BUILD_FOR_WIN
|
||||
// flag that we *really* want AA
|
||||
flags->fFlags |= SkPaint::kForceAAText_Flag;
|
||||
#endif
|
||||
flags->fHinting = paint.getHinting();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user