diff options
author | 2016-11-17 16:13:37 -0500 | |
---|---|---|
committer | 2016-11-18 14:34:08 +0000 | |
commit | d8df21a1e08b5b3380261f4b90acfbdc538ef93c (patch) | |
tree | d0d9454eec7c469335c40938aa497c055f89297b /bench | |
parent | 833dcf48844dd053ddf7ecea20e3e1c2b6b47e01 (diff) |
switched skslc from std::string to SkString
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4977
Change-Id: I15e24963b09b719a2c07da67745114f5ac66cee8
Reviewed-on: https://skia-review.googlesource.com/4977
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'bench')
-rw-r--r-- | bench/GLBench.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp index df9ee9bb0d..a39edeee7f 100644 --- a/bench/GLBench.cpp +++ b/bench/GLBench.cpp @@ -14,7 +14,6 @@ #include "gl/builders/GrGLShaderStringBuilder.h" #include "SkSLCompiler.h" #include <stdio.h> -#include <string> const GrGLContext* GLBench::getGLContext(SkCanvas* canvas) { // This bench exclusively tests GL calls directly @@ -66,11 +65,11 @@ void GLBench::onDraw(int loops, SkCanvas* canvas) { GrGLuint GLBench::CompileShader(const GrGLContext* context, const char* sksl, GrGLenum type) { const GrGLInterface* gl = context->interface(); - std::string glsl; + SkString glsl; bool result = context->compiler()->toGLSL(type == GR_GL_VERTEX_SHADER ? SkSL::Program::kVertex_Kind : SkSL::Program::kFragment_Kind, - std::string(sksl), + SkString(sksl), *context->caps()->glslCaps(), &glsl); if (!result) { |