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

Unified Diff: ui/gfx/path_x11.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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 | « ui/gfx/path_win.cc ('k') | ui/gfx/platform_font_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/path_x11.cc
diff --git a/ui/gfx/path_x11.cc b/ui/gfx/path_x11.cc
index caea2ec12e6eef417c64d6efeb67bebd066a61a2..4a0842c9828a96afadd356e8b0ace23062fc5def 100644
--- a/ui/gfx/path_x11.cc
+++ b/ui/gfx/path_x11.cc
@@ -8,7 +8,8 @@
#include <X11/Xregion.h>
#include <X11/Xutil.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/gfx/path.h"
@@ -31,9 +32,9 @@ Region CreateRegionFromSkRegion(const SkRegion& region) {
Region CreateRegionFromSkPath(const SkPath& path) {
int point_count = path.getPoints(NULL, 0);
- scoped_ptr<SkPoint[]> points(new SkPoint[point_count]);
+ std::unique_ptr<SkPoint[]> points(new SkPoint[point_count]);
path.getPoints(points.get(), point_count);
- scoped_ptr<XPoint[]> x11_points(new XPoint[point_count]);
+ std::unique_ptr<XPoint[]> x11_points(new XPoint[point_count]);
for (int i = 0; i < point_count; ++i) {
x11_points[i].x = SkScalarRoundToInt(points[i].fX);
x11_points[i].y = SkScalarRoundToInt(points[i].fY);
« no previous file with comments | « ui/gfx/path_win.cc ('k') | ui/gfx/platform_font_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698