diff options
author | 2016-11-21 10:39:35 -0500 | |
---|---|---|
committer | 2016-11-21 17:14:43 +0000 | |
commit | 9e1138d56665d13641f8805cd72ae81adc255f79 (patch) | |
tree | 1c94ded7cff10f5f62233d1de83c3d30ad0a2893 /fuzz | |
parent | e54d4cefb7864a575c01894b2e5e0df16978c6e6 (diff) |
re-land of switched skslc from std::string to SkString
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5084
Change-Id: Ib21c30afc0d8483392b417e660b7fecfcc30e617
Reviewed-on: https://skia-review.googlesource.com/5084
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/fuzz.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz.cpp b/fuzz/fuzz.cpp index d146a2f519..377e53f656 100644 --- a/fuzz/fuzz.cpp +++ b/fuzz/fuzz.cpp @@ -402,9 +402,9 @@ int fuzz_color_deserialize(sk_sp<SkData> bytes) { #if SK_SUPPORT_GPU int fuzz_sksl2glsl(sk_sp<SkData> bytes) { SkSL::Compiler compiler; - std::string output; + SkString output; bool result = compiler.toGLSL(SkSL::Program::kFragment_Kind, - (const char*)bytes->data(), *SkSL::GLSLCapsFactory::Default(), &output); + SkString((const char*)bytes->data()), *SkSL::GLSLCapsFactory::Default(), &output); if (!result) { SkDebugf("[terminated] Couldn't compile input.\n"); |