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

Unified Diff: cc/quads/draw_polygon.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 | « cc/quads/debug_border_draw_quad.h ('k') | cc/quads/draw_polygon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_polygon.h
diff --git a/cc/quads/draw_polygon.h b/cc/quads/draw_polygon.h
index 668d9f2dc28e1de89c30243b30929d5a3ae4216a..b3bde398c5556533d80deba71f0c030f64e8be30 100644
--- a/cc/quads/draw_polygon.h
+++ b/cc/quads/draw_polygon.h
@@ -41,8 +41,8 @@ class CC_EXPORT DrawPolygon {
// intersection points. Only when it returns true will front and back both be
// valid new polygons that are on opposite sides of the splitting plane.
bool Split(const DrawPolygon& splitter,
- scoped_ptr<DrawPolygon>* front,
- scoped_ptr<DrawPolygon>* back);
+ std::unique_ptr<DrawPolygon>* front,
+ std::unique_ptr<DrawPolygon>* back);
float SignedPointDistance(const gfx::Point3F& point) const;
// Checks polygon a against polygon b and returns which side it lies on, or
// whether it crosses (necessitating a split in the BSP tree).
@@ -57,7 +57,7 @@ class CC_EXPORT DrawPolygon {
const DrawQuad* original_ref() const { return original_ref_; }
int order_index() const { return order_index_; }
bool is_split() const { return is_split_; }
- scoped_ptr<DrawPolygon> CreateCopy();
+ std::unique_ptr<DrawPolygon> CreateCopy();
void RecomputeNormalForTesting();
« no previous file with comments | « cc/quads/debug_border_draw_quad.h ('k') | cc/quads/draw_polygon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698