Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 81e84a6

Browse files
committed
Make SkStrikeCache::Node be SkStrike.
SkStrike becomes SkScalerCache. It will eventually externalize the memory accounting to SkStrikeCache::Node because the amount of memory used by the scaler cache, and the overall strike cache memory usage must be kept in sync. Change-Id: Ia889f057d8138ec7f22f996e7ebb9d2441dea4ee Reviewed-on: https://skia-review.googlesource.com/c/skia/+/271018 Reviewed-by: Ben Wagner <bungeman@google.com>
1 parent 3eaed8d commit 81e84a6

24 files changed

+253
-215
lines changed

bench/PathTextBench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "include/core/SkPaint.h"
1111
#include "include/core/SkPath.h"
1212
#include "include/utils/SkRandom.h"
13-
#include "src/core/SkStrike.h"
13+
#include "src/core/SkScalerCache.h"
1414
#include "src/core/SkStrikeCache.h"
1515
#include "src/core/SkStrikeSpec.h"
1616
#include "tools/ToolUtils.h"

bench/SkGlyphCacheBench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* found in the LICENSE file.
66
*/
77

8-
#include "src/core/SkStrike.h"
8+
#include "src/core/SkScalerCache.h"
99

1010
#include "bench/Benchmark.h"
1111
#include "include/core/SkCanvas.h"

gn/core.gni

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ skia_core_sources = [
323323
"$_src/core/SkRuntimeEffect.cpp",
324324
"$_src/core/SkRWBuffer.cpp",
325325
"$_src/core/SkScalar.cpp",
326+
"$_src/core/SkScalerCache.cpp",
327+
"$_src/core/SkScalerCache.h",
326328
"$_src/core/SkScalerContext.cpp",
327329
"$_src/core/SkScalerContext.h",
328330
"$_src/core/SkScaleToSides.h",
@@ -349,8 +351,6 @@ skia_core_sources = [
349351
"$_src/core/SkSpriteBlitter.h",
350352
"$_src/core/SkStream.cpp",
351353
"$_src/core/SkStreamPriv.h",
352-
"$_src/core/SkStrike.cpp",
353-
"$_src/core/SkStrike.h",
354354
"$_src/core/SkStrikeCache.cpp",
355355
"$_src/core/SkStrikeCache.h",
356356
"$_src/core/SkStrikeForGPU.h",

gn/tests.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ tests_sources = [
253253
"$_tests/SkSLSPIRVTest.cpp",
254254
"$_tests/SkShaperJSONWriterTest.cpp",
255255
"$_tests/SkSharedMutexTest.cpp",
256-
"$_tests/SkStrikeTest.cpp",
256+
"$_tests/SkScalerCacheTest.cpp",
257257
"$_tests/SkUTFTest.cpp",
258258
"$_tests/SkVMTest.cpp",
259259
"$_tests/SkVxTest.cpp",

samplecode/SamplePathText.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "include/core/SkPath.h"
1111
#include "include/utils/SkRandom.h"
1212
#include "samplecode/Sample.h"
13-
#include "src/core/SkStrike.h"
13+
#include "src/core/SkScalerCache.h"
1414
#include "src/core/SkStrikeCache.h"
1515
#include "src/core/SkStrikeSpec.h"
1616
#include "src/core/SkTaskGroup.h"

src/core/SkDraw_text.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "src/core/SkFontPriv.h"
1010
#include "src/core/SkPaintPriv.h"
1111
#include "src/core/SkRasterClip.h"
12+
#include "src/core/SkScalerCache.h"
1213
#include "src/core/SkScalerContext.h"
13-
#include "src/core/SkStrike.h"
1414
#include "src/core/SkUtils.h"
1515
#include <climits>
1616

src/core/SkFont.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include "src/core/SkDraw.h"
1414
#include "src/core/SkFontPriv.h"
1515
#include "src/core/SkPaintDefaults.h"
16+
#include "src/core/SkScalerCache.h"
1617
#include "src/core/SkScalerContext.h"
17-
#include "src/core/SkStrike.h"
1818
#include "src/core/SkStrikeCache.h"
1919
#include "src/core/SkStrikeSpec.h"
2020
#include "src/core/SkTLazy.h"

src/core/SkGlyph.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "src/core/SkMask.h"
1818

1919
class SkArenaAlloc;
20-
class SkStrike;
2120
class SkScalerContext;
2221

2322
// needs to be != to any valid SkMask::Format

src/core/SkGlyphRun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "include/private/SkTo.h"
1414
#include "src/core/SkDevice.h"
1515
#include "src/core/SkFontPriv.h"
16-
#include "src/core/SkStrike.h"
16+
#include "src/core/SkScalerCache.h"
1717
#include "src/core/SkStrikeCache.h"
1818
#include "src/core/SkStrikeSpec.h"
1919
#include "src/core/SkTextBlobPriv.h"

src/core/SkGlyphRunPainter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "src/core/SkEnumerate.h"
3030
#include "src/core/SkFontPriv.h"
3131
#include "src/core/SkRasterClip.h"
32-
#include "src/core/SkStrike.h"
32+
#include "src/core/SkScalerCache.h"
3333
#include "src/core/SkStrikeCache.h"
3434
#include "src/core/SkStrikeForGPU.h"
3535
#include "src/core/SkStrikeSpec.h"

0 commit comments

Comments
 (0)