diff options
author | Brian Osman <brianosman@google.com> | 2017-08-14 14:48:10 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-14 21:24:55 +0000 |
commit | 93ba0a4fc85f04bc1be9429983df1e57473b49a7 (patch) | |
tree | 29b75949fdb9d449b28c000ff5f1e18eec19c42f /tests/SkSLSPIRVTest.cpp | |
parent | ba8275148ab8b10393b053e2586b852796c4afc2 (diff) |
Switch SkSL to std::string
On desktop, this saves just over 5% of the time in the SkSL compiler.
As written, the code will now build either way, so it's much easier to
switch back (or even have some platforms use SkString, if that's ever
required).
Bug: skia:
Change-Id: I634f26a4f6fcb404e59bda6a5c6a21a9c6d73c0b
Reviewed-on: https://skia-review.googlesource.com/34381
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/SkSLSPIRVTest.cpp')
-rw-r--r-- | tests/SkSLSPIRVTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SkSLSPIRVTest.cpp b/tests/SkSLSPIRVTest.cpp index 4d5457f339..ba4697d191 100644 --- a/tests/SkSLSPIRVTest.cpp +++ b/tests/SkSLSPIRVTest.cpp @@ -17,7 +17,7 @@ static void test_failure(skiatest::Reporter* r, const char* src, const char* err sk_sp<GrShaderCaps> caps = SkSL::ShaderCapsFactory::Default(); settings.fCaps = caps.get(); std::unique_ptr<SkSL::Program> program = compiler.convertProgram(SkSL::Program::kFragment_Kind, - SkString(src), settings); + SkSL::String(src), settings); if (program) { SkSL::String ignored; compiler.toSPIRV(*program, &ignored); |