| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkDevice.h" | 8 #include "SkDevice.h" |
| 9 #include "SkDeviceProperties.h" | 9 #include "SkDeviceProperties.h" |
| 10 #include "SkDraw.h" | 10 #include "SkDraw.h" |
| 11 #include "SkImage_Base.h" |
| 11 #include "SkMetaData.h" | 12 #include "SkMetaData.h" |
| 12 #include "SkPatchUtils.h" | 13 #include "SkPatchUtils.h" |
| 13 #include "SkPathMeasure.h" | 14 #include "SkPathMeasure.h" |
| 14 #include "SkRasterClip.h" | 15 #include "SkRasterClip.h" |
| 15 #include "SkShader.h" | 16 #include "SkShader.h" |
| 16 #include "SkTextBlob.h" | 17 #include "SkTextBlob.h" |
| 17 #include "SkTextToPathIter.h" | 18 #include "SkTextToPathIter.h" |
| 18 | 19 |
| 19 SkBaseDevice::SkBaseDevice() | 20 SkBaseDevice::SkBaseDevice() |
| 20 : fLeakyProperties(SkNEW_ARGS(SkDeviceProperties, (SkDeviceProperties::kLega
cyLCD_InitType))) | 21 : fLeakyProperties(SkNEW_ARGS(SkDeviceProperties, (SkDeviceProperties::kLega
cyLCD_InitType))) |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 if (kUnknown_SkPixelGeometry == fLeakyProperties->pixelGeometry() | 349 if (kUnknown_SkPixelGeometry == fLeakyProperties->pixelGeometry() |
| 349 || this->onShouldDisableLCD(paint)) { | 350 || this->onShouldDisableLCD(paint)) { |
| 350 | 351 |
| 351 flags &= ~SkPaint::kLCDRenderText_Flag; | 352 flags &= ~SkPaint::kLCDRenderText_Flag; |
| 352 flags |= SkPaint::kGenA8FromLCD_Flag; | 353 flags |= SkPaint::kGenA8FromLCD_Flag; |
| 353 } | 354 } |
| 354 | 355 |
| 355 return flags; | 356 return flags; |
| 356 } | 357 } |
| 357 | 358 |
| OLD | NEW |