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

Unified Diff: services/ui/surfaces/display_compositor.cc

Issue 2259823003: 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 | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/display_compositor.cc
diff --git a/services/ui/surfaces/display_compositor.cc b/services/ui/surfaces/display_compositor.cc
index 5cb51a19d13c6a272473408d3871c82933739c21..373543753ec1685c6795f22ce54019165241d15b 100644
--- a/services/ui/surfaces/display_compositor.cc
+++ b/services/ui/surfaces/display_compositor.cc
@@ -46,15 +46,15 @@ DisplayCompositor::DisplayCompositor(
std::unique_ptr<cc::OutputSurface> display_output_surface;
if (surfaces_context_provider->ContextCapabilities().surfaceless) {
#if defined(USE_OZONE)
- display_output_surface = base::WrapUnique(new DirectOutputSurfaceOzone(
+ display_output_surface = base::MakeUnique<DirectOutputSurfaceOzone>(
surfaces_context_provider, widget, synthetic_begin_frame_source.get(),
- GL_TEXTURE_2D, GL_RGB));
+ GL_TEXTURE_2D, GL_RGB);
#else
NOTREACHED();
#endif
} else {
- display_output_surface = base::WrapUnique(new DirectOutputSurface(
- surfaces_context_provider, synthetic_begin_frame_source.get()));
+ display_output_surface = base::MakeUnique<DirectOutputSurface>(
+ surfaces_context_provider, synthetic_begin_frame_source.get());
}
int max_frames_pending =
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698