OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkScalerContext.h" | 10 #include "SkScalerContext.h" |
| 11 #include "SkAutoPixmapStorage.h" |
11 #include "SkColorPriv.h" | 12 #include "SkColorPriv.h" |
12 #include "SkDescriptor.h" | 13 #include "SkDescriptor.h" |
13 #include "SkDraw.h" | 14 #include "SkDraw.h" |
14 #include "SkGlyph.h" | 15 #include "SkGlyph.h" |
15 #include "SkMaskFilter.h" | 16 #include "SkMaskFilter.h" |
16 #include "SkMaskGamma.h" | 17 #include "SkMaskGamma.h" |
17 #include "SkMatrix22.h" | 18 #include "SkMatrix22.h" |
18 #include "SkReadBuffer.h" | 19 #include "SkReadBuffer.h" |
19 #include "SkWriteBuffer.h" | 20 #include "SkWriteBuffer.h" |
20 #include "SkPathEffect.h" | 21 #include "SkPathEffect.h" |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 | 881 |
881 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, | 882 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, |
882 bool allowFailure) const { | 883 bool allowFailure) const { |
883 SkScalerContext* c = this->onCreateScalerContext(desc); | 884 SkScalerContext* c = this->onCreateScalerContext(desc); |
884 | 885 |
885 if (!c && !allowFailure) { | 886 if (!c && !allowFailure) { |
886 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc); | 887 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc); |
887 } | 888 } |
888 return c; | 889 return c; |
889 } | 890 } |
OLD | NEW |