aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/GLBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/GLBench.cpp')
-rw-r--r--bench/GLBench.cpp5
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) {