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:
reed@google.com 2011-09-30 20:53:23 +00:00
parent 97d1a22398
commit 600b3f658c

View File

@ -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;
}