| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #ifndef SkRemotableFontMgr_DEFINED | 8 #ifndef SkRemotableFontMgr_DEFINED |
| 9 #define SkRemotableFontMgr_DEFINED | 9 #define SkRemotableFontMgr_DEFINED |
| 10 | 10 |
| 11 #include "SkFontStyle.h" | 11 #include "SkFontStyle.h" |
| 12 #include "SkRefCnt.h" | 12 #include "SkRefCnt.h" |
| 13 #include "SkTemplates.h" | 13 #include "SkTemplates.h" |
| 14 #include "SkTypes.h" |
| 14 | 15 |
| 15 class SkDataTable; | 16 class SkDataTable; |
| 16 class SkStreamAsset; | 17 class SkStreamAsset; |
| 17 class SkString; | |
| 18 | 18 |
| 19 struct SK_API SkFontIdentity { | 19 struct SK_API SkFontIdentity { |
| 20 static const uint32_t kInvalidDataId = 0xFFFFFFFF; | 20 static const uint32_t kInvalidDataId = 0xFFFFFFFF; |
| 21 | 21 |
| 22 // Note that fDataId is a data identifier, not a font identifier. | 22 // Note that fDataId is a data identifier, not a font identifier. |
| 23 // (fDataID, fTtcIndex) can be seen as a font identifier. | 23 // (fDataID, fTtcIndex) can be seen as a font identifier. |
| 24 uint32_t fDataId; | 24 uint32_t fDataId; |
| 25 uint32_t fTtcIndex; | 25 uint32_t fTtcIndex; |
| 26 | 26 |
| 27 // On Linux/FontConfig there is also the ability to specify preferences for
rendering | 27 // On Linux/FontConfig there is also the ability to specify preferences for
rendering |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 * | 145 * |
| 146 * The caller must unref() the returned object. | 146 * The caller must unref() the returned object. |
| 147 */ | 147 */ |
| 148 virtual SkStreamAsset* getData(int dataId) const = 0; | 148 virtual SkStreamAsset* getData(int dataId) const = 0; |
| 149 | 149 |
| 150 private: | 150 private: |
| 151 typedef SkRefCnt INHERITED; | 151 typedef SkRefCnt INHERITED; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif | 154 #endif |
| OLD | NEW |