| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "SkScalerContext.h" | 9 #include "SkScalerContext.h" |
| 11 #include "SkAutoPixmapStorage.h" | 10 #include "SkAutoPixmapStorage.h" |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 | 880 |
| 882 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, | 881 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, |
| 883 bool allowFailure) const { | 882 bool allowFailure) const { |
| 884 SkScalerContext* c = this->onCreateScalerContext(desc); | 883 SkScalerContext* c = this->onCreateScalerContext(desc); |
| 885 | 884 |
| 886 if (!c && !allowFailure) { | 885 if (!c && !allowFailure) { |
| 887 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc); | 886 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc); |
| 888 } | 887 } |
| 889 return c; | 888 return c; |
| 890 } | 889 } |
| OLD | NEW |