Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Unified Diff: gpu/tools/compositor_model_bench/shaders.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/tools/compositor_model_bench/render_tree.cc ('k') | gpu/vulkan/tests/vulkan_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « gpu/tools/compositor_model_bench/render_tree.cc ('k') | gpu/vulkan/tests/vulkan_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698