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

Unified Diff: gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc

Issue 2257713003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | gpu/ipc/client/android/in_process_surface_texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc b/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc
index c709a9394931568c88a17f72c784a0db2b7de874..de5244cdaf33840aa6e2df638788ab904f05139d 100644
--- a/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc
+++ b/gpu/command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc
@@ -168,26 +168,26 @@ TEST_F(GLCompressedCopyTextureCHROMIUMTest, InternalFormat) {
if (GLTestHelper::HasExtension("GL_AMD_compressed_ATC_texture") ||
GLTestHelper::HasExtension("GL_ATI_texture_compression_atitc")) {
- supported_formats.push_back(base::WrapUnique(new Image(
- GL_ATC_RGB_AMD, kCompressedImageATC, sizeof(kCompressedImageATC))));
- supported_formats.push_back(base::WrapUnique(
- new Image(GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD, kCompressedImageATCIA,
- sizeof(kCompressedImageATCIA))));
+ supported_formats.push_back(base::MakeUnique<Image>(
+ GL_ATC_RGB_AMD, kCompressedImageATC, sizeof(kCompressedImageATC)));
+ supported_formats.push_back(base::MakeUnique<Image>(
+ GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD, kCompressedImageATCIA,
+ sizeof(kCompressedImageATCIA)));
}
if (GLTestHelper::HasExtension("GL_EXT_texture_compression_dxt1")) {
- supported_formats.push_back(base::WrapUnique(
- new Image(GL_COMPRESSED_RGB_S3TC_DXT1_EXT, kCompressedImageDXT1,
- sizeof(kCompressedImageDXT1))));
+ supported_formats.push_back(base::MakeUnique<Image>(
+ GL_COMPRESSED_RGB_S3TC_DXT1_EXT, kCompressedImageDXT1,
+ sizeof(kCompressedImageDXT1)));
}
if (GLTestHelper::HasExtension("GL_ANGLE_texture_compression_dxt5") ||
GLTestHelper::HasExtension("GL_EXT_texture_compression_s3tc")) {
- supported_formats.push_back(base::WrapUnique(
- new Image(GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, kCompressedImageDXT5,
- sizeof(kCompressedImageDXT5))));
+ supported_formats.push_back(base::MakeUnique<Image>(
+ GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, kCompressedImageDXT5,
+ sizeof(kCompressedImageDXT5)));
}
if (GLTestHelper::HasExtension("GL_OES_compressed_ETC1_RGB8_texture")) {
- supported_formats.push_back(base::WrapUnique(new Image(
- GL_ETC1_RGB8_OES, kCompressedImageETC1, sizeof(kCompressedImageETC1))));
+ supported_formats.push_back(base::MakeUnique<Image>(
+ GL_ETC1_RGB8_OES, kCompressedImageETC1, sizeof(kCompressedImageETC1)));
}
for (const auto& image : supported_formats) {
« no previous file with comments | « no previous file | gpu/ipc/client/android/in_process_surface_texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698