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

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: undo part of clang-format 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
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..5730ccdf75cbd6368371e2cce00c3f653d9c7b82 100644
--- a/gpu/command_buffer/tests/gl_readback_unittest.cc
+++ b/gpu/command_buffer/tests/gl_readback_unittest.cc
@@ -274,7 +274,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 +291,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,

Powered by Google App Engine
This is Rietveld 408576698