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 "SkDrawFilter.h" | 11 #include "SkDrawFilter.h" |
| 12 #include "SkImage_Base.h" |
12 #include "SkMetaData.h" | 13 #include "SkMetaData.h" |
13 #include "SkPatchUtils.h" | 14 #include "SkPatchUtils.h" |
14 #include "SkPathMeasure.h" | 15 #include "SkPathMeasure.h" |
15 #include "SkRasterClip.h" | 16 #include "SkRasterClip.h" |
16 #include "SkShader.h" | 17 #include "SkShader.h" |
17 #include "SkTextBlob.h" | 18 #include "SkTextBlob.h" |
18 #include "SkTextToPathIter.h" | 19 #include "SkTextToPathIter.h" |
19 | 20 |
20 SkBaseDevice::SkBaseDevice() | 21 SkBaseDevice::SkBaseDevice() |
21 : fLeakyProperties(SkNEW_ARGS(SkDeviceProperties, (SkDeviceProperties::kLega
cyLCD_InitType))) | 22 : fLeakyProperties(SkNEW_ARGS(SkDeviceProperties, (SkDeviceProperties::kLega
cyLCD_InitType))) |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 if (kUnknown_SkPixelGeometry == fLeakyProperties->pixelGeometry() | 360 if (kUnknown_SkPixelGeometry == fLeakyProperties->pixelGeometry() |
360 || this->onShouldDisableLCD(paint)) { | 361 || this->onShouldDisableLCD(paint)) { |
361 | 362 |
362 flags &= ~SkPaint::kLCDRenderText_Flag; | 363 flags &= ~SkPaint::kLCDRenderText_Flag; |
363 flags |= SkPaint::kGenA8FromLCD_Flag; | 364 flags |= SkPaint::kGenA8FromLCD_Flag; |
364 } | 365 } |
365 | 366 |
366 return flags; | 367 return flags; |
367 } | 368 } |
368 | 369 |
OLD | NEW |