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

Unified Diff: ui/gl/gl_image_memory.cc

Issue 1530923002: Replace Pass() with std::move in ui/gl and ui/gfx (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: ui/gl/gl_image_memory.cc
diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
index 3bdf596144679c517ce8e9e2dcd9abc636ddbef7..c61f8e6bf606efed7ba57fb7e578b0239089e621 100644
--- a/ui/gl/gl_image_memory.cc
+++ b/ui/gl/gl_image_memory.cc
@@ -225,7 +225,7 @@ scoped_ptr<uint8_t[]> GLES2RGBData(const gfx::Size& size,
*data_format = GL_RGB;
*data_type = GL_UNSIGNED_BYTE;
*data_row_length = size.width();
- return gles2_rgb_data.Pass();
+ return gles2_rgb_data;
}
scoped_ptr<uint8_t[]> GLES2Data(const gfx::Size& size,
@@ -269,7 +269,7 @@ scoped_ptr<uint8_t[]> GLES2Data(const gfx::Size& size,
gles2_data_stride);
}
*data_row_length = size.width();
- return gles2_data.Pass();
+ return gles2_data;
}
case BufferFormat::ATC:
case BufferFormat::ATCIA:

Powered by Google App Engine
This is Rietveld 408576698