move Sk{Test,Random}ScalerContext to tools

There's no need for Skia users to link this test code.

Change-Id: I9d6ef2a053d0cf5cb916aa254389ca819c48bae1
Reviewed-on: https://skia-review.googlesource.com/69922
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2017-11-10 11:33:43 -05:00 committed by Skia Commit-Bot
parent 8f7d4c3d86
commit 10d66cc3f8
9 changed files with 11 additions and 10 deletions

View File

@ -1073,6 +1073,8 @@ if (skia_enable_tools) {
"tools/LsanSuppressions.cpp", "tools/LsanSuppressions.cpp",
"tools/ProcStats.cpp", "tools/ProcStats.cpp",
"tools/Resources.cpp", "tools/Resources.cpp",
"tools/SkRandomScalerContext.cpp",
"tools/SkTestScalerContext.cpp",
"tools/ThermalManager.cpp", "tools/ThermalManager.cpp",
"tools/UrlDataManager.cpp", "tools/UrlDataManager.cpp",
"tools/debugger/SkDebugCanvas.cpp", "tools/debugger/SkDebugCanvas.cpp",

View File

@ -11,11 +11,11 @@
#include "Resources.h" #include "Resources.h"
#include "SkCanvas.h" #include "SkCanvas.h"
#include "SkGradientShader.h" #include "SkGradientShader.h"
#include "SkRandomScalerContext.h"
#include "SkStream.h" #include "SkStream.h"
#include "SkSurface.h" #include "SkSurface.h"
#include "SkTextBlob.h" #include "SkTextBlob.h"
#include "SkTypeface.h" #include "SkTypeface.h"
#include "../src/fonts/SkRandomScalerContext.h"
#if SK_SUPPORT_GPU #if SK_SUPPORT_GPU

View File

@ -87,9 +87,4 @@ skia_utils_sources = [
"$_src/utils/win/SkWGL.h", "$_src/utils/win/SkWGL.h",
"$_src/utils/win/SkWGL_win.cpp", "$_src/utils/win/SkWGL_win.cpp",
#testing
"$_src/fonts/SkRandomScalerContext.cpp",
"$_src/fonts/SkRandomScalerContext.h",
"$_src/fonts/SkTestScalerContext.cpp",
"$_src/fonts/SkTestScalerContext.h",
] ]

View File

@ -438,6 +438,10 @@ DM_SRCS_ALL = struct(
"tools/Resources.cpp", "tools/Resources.cpp",
"tools/Resources.h", "tools/Resources.h",
"tools/SkJSONCPP.h", "tools/SkJSONCPP.h",
"tools/SkRandomScalerContext.cpp",
"tools/SkRandomScalerContext.h",
"tools/SkTestScalerContext.cpp",
"tools/SkTestScalerContext.h",
"tools/UrlDataManager.cpp", "tools/UrlDataManager.cpp",
"tools/UrlDataManager.h", "tools/UrlDataManager.h",
"tools/debugger/*.cpp", "tools/debugger/*.cpp",

View File

@ -8,14 +8,14 @@
#include "sk_tool_utils.h" #include "sk_tool_utils.h"
#include "SkCanvas.h" #include "SkCanvas.h"
#include "SkPaint.h"
#include "SkPoint.h"
#include "SkTextBlob.h"
#include "SkFontMgr.h" #include "SkFontMgr.h"
#include "SkGraphics.h" #include "SkGraphics.h"
#include "SkPaint.h"
#include "SkPoint.h"
#include "SkRandomScalerContext.h"
#include "SkSurface.h" #include "SkSurface.h"
#include "SkTextBlob.h"
#include "SkTypeface.h" #include "SkTypeface.h"
#include "../src/fonts/SkRandomScalerContext.h"
#ifdef SK_BUILD_FOR_WIN #ifdef SK_BUILD_FOR_WIN
#include "SkTypeface_win.h" #include "SkTypeface_win.h"