From bd1fb49dd96d130aba5b2c17190b93b638469e86 Mon Sep 17 00:00:00 2001 From: bungeman Date: Tue, 23 Jun 2015 07:18:21 -0700 Subject: Rename SkFontHost_none.cpp to SkFontMgr_empty_factory. When the current function was added in https://skia.googlesource.com/skia/+/070da5edcb1c6e9b9507f06a5e2c270e1c1fd796%5E%21/#F3 the SkFontHost was still alive and well. Now that this file no longer contains any SkFontHost related code, rename the file for clarity and uniformity. Review URL: https://codereview.chromium.org/1196313003 --- src/ports/SkFontHost_none.cpp | 15 --------------- src/ports/SkFontMgr_empty_factory.cpp | 13 +++++++++++++ 2 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 src/ports/SkFontHost_none.cpp create mode 100644 src/ports/SkFontMgr_empty_factory.cpp (limited to 'src') diff --git a/src/ports/SkFontHost_none.cpp b/src/ports/SkFontHost_none.cpp deleted file mode 100644 index f76910d97f..0000000000 --- a/src/ports/SkFontHost_none.cpp +++ /dev/null @@ -1,15 +0,0 @@ - -/* - * Copyright 2008 The Android Open Source Project - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "SkFontMgr.h" -#include "SkScalerContext.h" - -SkFontMgr* SkFontMgr::Factory() { - // Always return NULL, an empty SkFontMgr will be used. - return NULL; -} diff --git a/src/ports/SkFontMgr_empty_factory.cpp b/src/ports/SkFontMgr_empty_factory.cpp new file mode 100644 index 0000000000..ceed8f3320 --- /dev/null +++ b/src/ports/SkFontMgr_empty_factory.cpp @@ -0,0 +1,13 @@ +/* + * Copyright 2008 The Android Open Source Project + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // Always return NULL, an empty SkFontMgr will be used. + return NULL; +} -- cgit v1.2.3