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

Unified Diff: gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 | « gpu/ipc/service/ca_layer_partial_damage_tree_mac.h ('k') | gpu/ipc/service/ca_layer_tree_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm
diff --git a/gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm b/gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm
index 25cd39dd6561ac9ef4d6e7252a71b4ade73f55a7..65427b2b4879cdae763c00ab95d1575e621338df 100644
--- a/gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm
+++ b/gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm
@@ -125,7 +125,7 @@ void CALayerPartialDamageTree::UpdatePartialDamagePlanes(
// Find the last partial damage plane to re-use the CALayer from. Grow the
// new rect for this layer to include this damage, and all nearby partial
// damage layers.
- scoped_ptr<OverlayPlane> plane_for_swap;
+ std::unique_ptr<OverlayPlane> plane_for_swap;
{
auto plane_to_reuse_iter = old_tree->partial_damage_planes_.end();
gfx::Rect plane_to_reuse_enlarged_pixel_damage_rect;
@@ -207,7 +207,7 @@ void CALayerPartialDamageTree::UpdatePartialDamagePlanes(
}
void CALayerPartialDamageTree::UpdateRootAndPartialDamagePlanes(
- scoped_ptr<CALayerPartialDamageTree> old_tree,
+ std::unique_ptr<CALayerPartialDamageTree> old_tree,
const gfx::Rect& pixel_damage_rect) {
// First update the partial damage tree.
UpdatePartialDamagePlanes(old_tree.get(), pixel_damage_rect);
@@ -276,7 +276,7 @@ CALayerPartialDamageTree::RootLayerIOSurface() {
void CALayerPartialDamageTree::CommitCALayers(
CALayer* superlayer,
- scoped_ptr<CALayerPartialDamageTree> old_tree,
+ std::unique_ptr<CALayerPartialDamageTree> old_tree,
float scale_factor,
const gfx::Rect& pixel_damage_rect) {
TRACE_EVENT0("gpu", "CALayerPartialDamageTree::CommitCALayers");
« no previous file with comments | « gpu/ipc/service/ca_layer_partial_damage_tree_mac.h ('k') | gpu/ipc/service/ca_layer_tree_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698