OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2009-2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */ |
| 9 |
| 10 #include "SkFontConfigInterface_direct.h" |
| 11 #include "SkStream.h" |
| 12 #include "SkTypes.h" |
| 13 |
| 14 // Loads fonts using GoogleFt2ReadFontFromMemory. |
| 15 class SkFontConfigInterfaceDirectGoogle3 : public SkFontConfigInterfaceDirect { |
| 16 public: |
| 17 SkFontConfigInterfaceDirectGoogle3() {} |
| 18 ~SkFontConfigInterfaceDirectGoogle3() override {} |
| 19 |
| 20 SkStreamAsset* openStream(const FontIdentity&) override; |
| 21 protected: |
| 22 // Override isAccessible to return true if the font is in the cache. |
| 23 bool isAccessible(const char* filename) override; |
| 24 private: |
| 25 typedef SkFontConfigInterfaceDirect INHERITED; |
| 26 }; |
OLD | NEW |