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

Unified Diff: gpu/command_buffer/tests/gl_readback_unittest.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/command_buffer/tests/gl_manager.cc ('k') | gpu/command_buffer/tests/gl_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_readback_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_readback_unittest.cc b/gpu/command_buffer/tests/gl_readback_unittest.cc
index eaaa1bb59af559e30d8db5c745490333a3f255d1..c9038dc9973f6e632a9bb4ebe95bf39b5e801cbb 100644
--- a/gpu/command_buffer/tests/gl_readback_unittest.cc
+++ b/gpu/command_buffer/tests/gl_readback_unittest.cc
@@ -9,6 +9,7 @@
#include <stdint.h>
#include <cmath>
+#include <memory>
#include "base/bind.h"
#include "base/bit_cast.h"
@@ -274,7 +275,7 @@ TEST_F(GLReadbackTest, ReadPixelsFloat) {
switch (read_type) {
case GL_HALF_FLOAT_OES: {
- scoped_ptr<GLushort[]> buf(
+ std::unique_ptr<GLushort[]> buf(
new GLushort[kTextureSize * kTextureSize * read_comp_count]);
glReadPixels(
0, 0, kTextureSize, kTextureSize, read_format, read_type,
@@ -291,7 +292,7 @@ TEST_F(GLReadbackTest, ReadPixelsFloat) {
break;
}
case GL_FLOAT: {
- scoped_ptr<GLfloat[]> buf(
+ std::unique_ptr<GLfloat[]> buf(
new GLfloat[kTextureSize * kTextureSize * read_comp_count]);
glReadPixels(
0, 0, kTextureSize, kTextureSize, read_format, read_type,
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/command_buffer/tests/gl_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698