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

Unified Diff: remoting/client/gl_desktop.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « remoting/client/dual_buffer_frame_consumer.cc ('k') | remoting/client/gl_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/gl_desktop.cc
diff --git a/remoting/client/gl_desktop.cc b/remoting/client/gl_desktop.cc
index 8efba8181e0dd973322091d2a435a65156c528fb..72bd9ec15201e615fb2ab46b146e63ce180fe265 100644
--- a/remoting/client/gl_desktop.cc
+++ b/remoting/client/gl_desktop.cc
@@ -114,7 +114,7 @@ void GlDesktop::ReallocateTextures(const webrtc::DesktopSize& size) {
rect.IntersectWith(desktop_rect);
std::unique_ptr<GlDesktopTextureContainer> container =
base::WrapUnique(new GlDesktopTextureContainer{
- base::WrapUnique(new GlRenderLayer(texture_id, canvas_)), rect});
+ base::MakeUnique<GlRenderLayer>(texture_id, canvas_), rect});
FillRectangleVertexPositions(rect.left(), rect.top(), rect.width(),
rect.height(), &positions);
container->layer->SetVertexPositions(positions);
« no previous file with comments | « remoting/client/dual_buffer_frame_consumer.cc ('k') | remoting/client/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698