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

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

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
Index: gpu/ipc/service/ca_layer_partial_damage_tree_mac.h
diff --git a/gpu/ipc/service/ca_layer_partial_damage_tree_mac.h b/gpu/ipc/service/ca_layer_partial_damage_tree_mac.h
index 3d36bf755bb56cc3f505179ae8ce04080b0bf130..eed42d2e10bbd3055defc4491438bde2f54a544d 100644
--- a/gpu/ipc/service/ca_layer_partial_damage_tree_mac.h
+++ b/gpu/ipc/service/ca_layer_partial_damage_tree_mac.h
@@ -7,10 +7,11 @@
#include <IOSurface/IOSurface.h>
#include <QuartzCore/QuartzCore.h>
+
#include <deque>
+#include <memory>
#include "base/mac/scoped_cftyperef.h"
-#include "base/memory/scoped_ptr.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
@@ -25,7 +26,7 @@ class CALayerPartialDamageTree {
base::ScopedCFTypeRef<IOSurfaceRef> RootLayerIOSurface();
void CommitCALayers(CALayer* superlayer,
- scoped_ptr<CALayerPartialDamageTree> old_tree,
+ std::unique_ptr<CALayerPartialDamageTree> old_tree,
float scale_factor,
const gfx::Rect& pixel_damage_rect);
@@ -41,14 +42,14 @@ class CALayerPartialDamageTree {
const gfx::Rect& pixel_damage_rect);
void UpdateRootAndPartialDamagePlanes(
- scoped_ptr<CALayerPartialDamageTree> old_tree,
+ std::unique_ptr<CALayerPartialDamageTree> old_tree,
const gfx::Rect& pixel_damage_rect);
void UpdateCALayers(CALayer* superlayer, float scale_factor);
const bool allow_partial_swap_;
- scoped_ptr<OverlayPlane> root_plane_;
- std::deque<scoped_ptr<OverlayPlane>> partial_damage_planes_;
+ std::unique_ptr<OverlayPlane> root_plane_;
+ std::deque<std::unique_ptr<OverlayPlane>> partial_damage_planes_;
};
} // content
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_test_template.h ('k') | gpu/ipc/service/ca_layer_partial_damage_tree_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698