| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Computer, Inc. | 2 * Copyright (C) 2007 Apple Computer, Inc. |
| 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. | 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 SharedBuffer*, | 57 SharedBuffer*, |
| 58 String& otsParseMessage); | 58 String& otsParseMessage); |
| 59 ~FontCustomPlatformData(); | 59 ~FontCustomPlatformData(); |
| 60 | 60 |
| 61 FontPlatformData fontPlatformData( | 61 FontPlatformData fontPlatformData( |
| 62 float size, | 62 float size, |
| 63 bool bold, | 63 bool bold, |
| 64 bool italic, | 64 bool italic, |
| 65 FontOrientation = FontOrientation::Horizontal); | 65 FontOrientation = FontOrientation::Horizontal); |
| 66 | 66 |
| 67 size_t dataSize() const { return m_dataSize; } |
| 67 static bool supportsFormat(const String&); | 68 static bool supportsFormat(const String&); |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 explicit FontCustomPlatformData(sk_sp<SkTypeface>); | 71 FontCustomPlatformData(sk_sp<SkTypeface>, size_t dataSize); |
| 71 sk_sp<SkTypeface> m_typeface; | 72 sk_sp<SkTypeface> m_typeface; |
| 73 size_t m_dataSize; |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 } // namespace blink | 76 } // namespace blink |
| 75 | 77 |
| 76 #endif // FontCustomPlatformData_h | 78 #endif // FontCustomPlatformData_h |
| OLD | NEW |