glbench: replace scoped_ptr with std::unique_ptr
scoped_ptr from libchrome has been deprecated in favor of C++11
std::unique_ptr.
BUG=chromium:672314
TEST=Run unit tests.
Change-Id: I0f71641e2be379c2a0efe80e1b4e7b303610bf20
Reviewed-on: https://chromium-review.googlesource.com/418397
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/client/deps/glbench/src/yuvtest.cc b/client/deps/glbench/src/yuvtest.cc
index 2fcab13..c372712 100644
--- a/client/deps/glbench/src/yuvtest.cc
+++ b/client/deps/glbench/src/yuvtest.cc
@@ -5,8 +5,9 @@
#include <stdio.h>
#include <sys/mman.h>
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "main.h"
#include "testbase.h"
@@ -179,7 +180,7 @@
0, GL_LUMINANCE, GL_UNSIGNED_BYTE, v_plane);
{
- scoped_ptr<char[]> buf_uv(new char[chroma_size * 2]);
+ std::unique_ptr<char[]> buf_uv(new char[chroma_size * 2]);
char* buf_uv_ptr = buf_uv.get();
for (int i = 0; i < chroma_size; i++) {
*buf_uv_ptr++ = u_plane[i];