diff --git a/tests/GrPipelineDynamicStateTest.cpp b/tests/GrPipelineDynamicStateTest.cpp index cc79174adc15..dcecf8ab6506 100644 --- a/tests/GrPipelineDynamicStateTest.cpp +++ b/tests/GrPipelineDynamicStateTest.cpp @@ -51,6 +51,8 @@ #include #include +using namespace skia_private; + class GrAppliedClip; class GrDstProxyView; class GrGLSLProgramDataManager; @@ -187,7 +189,7 @@ class GrPipelineDynamicStateTestOp : public GrDrawOp { void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override { GrPipeline pipeline(fScissorTest, SkBlendMode::kSrc, flushState->drawOpArgs().writeView().swizzle()); - SkSTArray meshes; + STArray meshes; for (int i = 0; i < kNumMeshes; ++i) { GrSimpleMesh& mesh = meshes.push_back(); mesh.set(fVertexBuffer, 4, 4 * i); diff --git a/tests/SkStrikeTest.cpp b/tests/SkStrikeTest.cpp index 7f77107a5998..7b7ce8f5174e 100644 --- a/tests/SkStrikeTest.cpp +++ b/tests/SkStrikeTest.cpp @@ -48,6 +48,7 @@ #include #include +using namespace skia_private; using namespace sktext; using namespace skglyph; @@ -144,16 +145,16 @@ DEF_TEST(SkStrikeMultiThread, Reporter) { auto local = data.subspan(threadIndex * 2, data.size() - kThreadCount * 2); for (int i = 0; i < 100; i++) { // Accepted buffers. - SkSTArray<64, SkPackedGlyphID> acceptedPackedGlyphIDs; - SkSTArray<64, SkPoint> acceptedPositions; - SkSTArray<64, SkMask::Format> acceptedFormats; + STArray<64, SkPackedGlyphID> acceptedPackedGlyphIDs; + STArray<64, SkPoint> acceptedPositions; + STArray<64, SkMask::Format> acceptedFormats; acceptedPackedGlyphIDs.resize(glyphCount); acceptedPositions.resize(glyphCount); const auto acceptedBuffer = SkMakeZip(acceptedPackedGlyphIDs, acceptedPositions); // Rejected buffers. - SkSTArray<64, SkGlyphID> rejectedGlyphIDs; - SkSTArray<64, SkPoint> rejectedPositions; + STArray<64, SkGlyphID> rejectedGlyphIDs; + STArray<64, SkPoint> rejectedPositions; rejectedGlyphIDs.resize(glyphCount); rejectedPositions.resize(glyphCount); const auto rejectedBuffer = SkMakeZip(rejectedGlyphIDs, rejectedPositions); diff --git a/tests/TArrayTest.cpp b/tests/TArrayTest.cpp index f5247f9289c7..92dd713ccc95 100644 --- a/tests/TArrayTest.cpp +++ b/tests/TArrayTest.cpp @@ -232,9 +232,9 @@ static void test_swap(skiatest::Reporter* reporter) { int sizes[] = {0, 1, 5, 10, 15, 20, 25}; TArray arr; - SkSTArray< 5, int> arr5; - SkSTArray<10, int> arr10; - SkSTArray<20, int> arr20; + STArray< 5, int> arr5; + STArray<10, int> arr10; + STArray<20, int> arr20; TArray* arrays[] = { &arr, &arr5, &arr10, &arr20 }; test_swap(reporter, arrays, sizes); @@ -246,9 +246,9 @@ static void test_swap(skiatest::Reporter* reporter) { }; TArray moi; - SkSTArray< 5, MoveOnlyInt> moi5; - SkSTArray<10, MoveOnlyInt> moi10; - SkSTArray<20, MoveOnlyInt> moi20; + STArray< 5, MoveOnlyInt> moi5; + STArray<10, MoveOnlyInt> moi10; + STArray<20, MoveOnlyInt> moi20; TArray* arraysMoi[] = { &moi, &moi5, &moi10, &moi20 }; test_swap(reporter, arraysMoi, sizes); } @@ -259,7 +259,7 @@ void test_unnecessary_alloc(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, a.capacity() == 0); } { - SkSTArray<10, int> a; + STArray<10, int> a; REPORTER_ASSERT(reporter, a.capacity() == 10); } { @@ -272,7 +272,7 @@ void test_unnecessary_alloc(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, b.capacity() == 0); } { - SkSTArray<10, int> a; + STArray<10, int> a; TArray b; b = a; REPORTER_ASSERT(reporter, b.capacity() == 0); @@ -283,7 +283,7 @@ void test_unnecessary_alloc(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, b.capacity() == 0); } { - SkSTArray<10, int> a; + STArray<10, int> a; TArray b(a); // NOLINT(performance-unnecessary-copy-initialization) REPORTER_ASSERT(reporter, b.capacity() == 0); } @@ -293,7 +293,7 @@ void test_unnecessary_alloc(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, b.capacity() == 0); } { - SkSTArray<10, int> a; + STArray<10, int> a; TArray b(std::move(a)); REPORTER_ASSERT(reporter, b.capacity() == 0); } @@ -304,7 +304,7 @@ void test_unnecessary_alloc(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, b.capacity() == 0); } { - SkSTArray<10, int> a; + STArray<10, int> a; TArray b; b = std::move(a); REPORTER_ASSERT(reporter, b.capacity() == 0); @@ -385,31 +385,31 @@ DEF_TEST(TArray, reporter) { test_self_assignment(reporter); test_reserve>(reporter); - test_reserve>(reporter); - test_reserve>(reporter); - test_reserve>(reporter); + test_reserve>(reporter); + test_reserve>(reporter); + test_reserve>(reporter); test_reserve>(reporter); - test_reserve>(reporter); - test_reserve>(reporter); - test_reserve>(reporter); + test_reserve>(reporter); + test_reserve>(reporter); + test_reserve>(reporter); test_construction>(reporter); test_construction>(reporter); test_construction>(reporter); - test_construction>(reporter); - test_construction>(reporter); - test_construction>(reporter); - test_construction>(reporter); - - test_skstarray_compatibility, TArray>(reporter); - test_skstarray_compatibility, TArray>(reporter); - test_skstarray_compatibility, TArray>(reporter); - test_skstarray_compatibility, SkSTArray<1, int>>(reporter); - test_skstarray_compatibility, SkSTArray<5, char>>(reporter); - test_skstarray_compatibility, SkSTArray<10, float>>(reporter); - test_skstarray_compatibility, SkSTArray<1, uint8_t>>(reporter); - test_skstarray_compatibility, SkSTArray<10, long>>(reporter); - test_skstarray_compatibility, SkSTArray<4, double>>(reporter); - test_skstarray_compatibility, SkSTArray<1, short>>(reporter); + test_construction>(reporter); + test_construction>(reporter); + test_construction>(reporter); + test_construction>(reporter); + + test_skstarray_compatibility, TArray>(reporter); + test_skstarray_compatibility, TArray>(reporter); + test_skstarray_compatibility, TArray>(reporter); + test_skstarray_compatibility, STArray<1, int>>(reporter); + test_skstarray_compatibility, STArray<5, char>>(reporter); + test_skstarray_compatibility, STArray<10, float>>(reporter); + test_skstarray_compatibility, STArray<1, uint8_t>>(reporter); + test_skstarray_compatibility, STArray<10, long>>(reporter); + test_skstarray_compatibility, STArray<4, double>>(reporter); + test_skstarray_compatibility, STArray<1, short>>(reporter); }