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

Unified Diff: gpu/ipc/client/android/in_process_surface_texture_manager.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
Index: gpu/ipc/client/android/in_process_surface_texture_manager.cc
diff --git a/gpu/ipc/client/android/in_process_surface_texture_manager.cc b/gpu/ipc/client/android/in_process_surface_texture_manager.cc
index 58a414bd4d03962d538dce925afd0eb926f3ada9..84fc5eee88dee7f57309050847c89f57dfd7bfe8 100644
--- a/gpu/ipc/client/android/in_process_surface_texture_manager.cc
+++ b/gpu/ipc/client/android/in_process_surface_texture_manager.cc
@@ -30,7 +30,7 @@ void InProcessSurfaceTextureManager::RegisterSurfaceTexture(
DCHECK(surface_textures_.find(surface_texture_id) == surface_textures_.end());
surface_textures_.add(
surface_texture_id,
- base::WrapUnique(new gl::ScopedJavaSurface(surface_texture)));
+ base::MakeUnique<gl::ScopedJavaSurface>(surface_texture));
}
void InProcessSurfaceTextureManager::UnregisterSurfaceTexture(

Powered by Google App Engine
This is Rietveld 408576698