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" |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 } | 863 } |
864 }; | 864 }; |
865 | 865 |
866 extern SkScalerContext* SkCreateColorScalerContext(const SkDescriptor* desc); | 866 extern SkScalerContext* SkCreateColorScalerContext(const SkDescriptor* desc); |
867 | 867 |
868 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, | 868 SkScalerContext* SkTypeface::createScalerContext(const SkDescriptor* desc, |
869 bool allowFailure) const { | 869 bool allowFailure) const { |
870 SkScalerContext* c = this->onCreateScalerContext(desc); | 870 SkScalerContext* c = this->onCreateScalerContext(desc); |
871 | 871 |
872 if (!c && !allowFailure) { | 872 if (!c && !allowFailure) { |
873 c = SkNEW_ARGS(SkScalerContext_Empty, | 873 c = new SkScalerContext_Empty(const_cast<SkTypeface*>(this), desc); |
874 (const_cast<SkTypeface*>(this), desc)); | |
875 } | 874 } |
876 return c; | 875 return c; |
877 } | 876 } |
OLD | NEW |