Index: gpu/tools/compositor_model_bench/shaders.cc |
diff --git a/gpu/tools/compositor_model_bench/shaders.cc b/gpu/tools/compositor_model_bench/shaders.cc |
index 0ea6275efe7dbcb105378f585d8a252c7725abab..864f1e26669406ad9dd0487ebd8beeadd7ea6545 100644 |
--- a/gpu/tools/compositor_model_bench/shaders.cc |
+++ b/gpu/tools/compositor_model_bench/shaders.cc |
@@ -7,6 +7,7 @@ |
#include <stdint.h> |
#include <algorithm> |
+#include <memory> |
#include "gpu/tools/compositor_model_bench/render_model_utils.h" |
#include "gpu/tools/compositor_model_bench/render_tree.h" |
@@ -237,7 +238,7 @@ static void ReportAnyShaderCompilationErrors(GLuint shader, ShaderID id) { |
// Get the length of the log string |
GLsizei length; |
glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length); |
- scoped_ptr<GLchar[]> log(new GLchar[length+1]); |
+ std::unique_ptr<GLchar[]> log(new GLchar[length + 1]); |
glGetShaderInfoLog(shader, length, NULL, log.get()); |
LOG(ERROR) << log.get() << " in shader " << ShaderNameFromID(id); |
} |