diff options
Diffstat (limited to 'include/ports/SkFontConfigInterface.h')
-rw-r--r-- | include/ports/SkFontConfigInterface.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/ports/SkFontConfigInterface.h b/include/ports/SkFontConfigInterface.h index c6b7b78628..bb7eebe5d5 100644 --- a/include/ports/SkFontConfigInterface.h +++ b/include/ports/SkFontConfigInterface.h @@ -29,13 +29,12 @@ public: * unref(). The default SkFontConfigInterface is the result of calling * GetSingletonDirectInterface. */ - static SkFontConfigInterface* RefGlobal(); + static sk_sp<SkFontConfigInterface> RefGlobal(); /** - * Replace the current global instance with the specified one, safely - * ref'ing the new instance, and unref'ing the previous. Returns its - * parameter (the new global instance). + * Replace the current global instance with the specified one. */ + static void SetGlobal(sk_sp<SkFontConfigInterface> fc); static SkFontConfigInterface* SetGlobal(SkFontConfigInterface*); /** |