From a20681c2ac9d1a36875289b6207cbcd3a36132f7 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Mon, 14 May 2018 13:51:10 -0400 Subject: Move SkFontConfigInterface to smart pointers. This old interface may be easier to move away from if it isn't so difficult to understand. Change-Id: Ib04b00e55fd5c11aca8cc70bc6c7b0b5ba98dcae Reviewed-on: https://skia-review.googlesource.com/127969 Reviewed-by: Herb Derby Commit-Queue: Ben Wagner --- include/ports/SkFontConfigInterface.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/ports') 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 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 fc); static SkFontConfigInterface* SetGlobal(SkFontConfigInterface*); /** -- cgit v1.2.3