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

Unified Diff: cc/trees/occlusion_tracker_perftest.cc

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/trees/layer_tree_impl_unittest.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_perftest.cc
diff --git a/cc/trees/occlusion_tracker_perftest.cc b/cc/trees/occlusion_tracker_perftest.cc
index ccaa75ae560f347ba65a5d26f60c0955aca63d9a..d6fe6c318878a0d44b6f7b3bab8e9a55ce55c0b4 100644
--- a/cc/trees/occlusion_tracker_perftest.cc
+++ b/cc/trees/occlusion_tracker_perftest.cc
@@ -46,7 +46,7 @@ class OcclusionTrackerPerfTest : public testing::Test {
host_impl_->SetVisible(true);
host_impl_->InitializeRenderer(output_surface_.get());
- scoped_ptr<LayerImpl> root_layer = LayerImpl::Create(active_tree(), 1);
+ std::unique_ptr<LayerImpl> root_layer = LayerImpl::Create(active_tree(), 1);
root_layer->SetForceRenderSurface(true);
active_tree()->SetRootLayer(std::move(root_layer));
}
@@ -73,8 +73,8 @@ class OcclusionTrackerPerfTest : public testing::Test {
FakeRenderingStatsInstrumentation stats_;
TestSharedBitmapManager shared_bitmap_manager_;
TestTaskGraphRunner task_graph_runner_;
- scoped_ptr<OutputSurface> output_surface_;
- scoped_ptr<LayerTreeHostImpl> host_impl_;
+ std::unique_ptr<OutputSurface> output_surface_;
+ std::unique_ptr<LayerTreeHostImpl> host_impl_;
};
TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_FullyOccluded) {
@@ -86,7 +86,7 @@ TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_FullyOccluded) {
CreateHost();
host_impl_->SetViewportSize(viewport_rect.size());
- scoped_ptr<SolidColorLayerImpl> opaque_layer =
+ std::unique_ptr<SolidColorLayerImpl> opaque_layer =
SolidColorLayerImpl::Create(active_tree(), 2);
opaque_layer->SetBackgroundColor(SK_ColorRED);
opaque_layer->SetContentsOpaque(true);
@@ -154,7 +154,7 @@ TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_10OpaqueLayers) {
host_impl_->SetViewportSize(viewport_rect.size());
for (int i = 0; i < kNumOpaqueLayers; ++i) {
- scoped_ptr<SolidColorLayerImpl> opaque_layer =
+ std::unique_ptr<SolidColorLayerImpl> opaque_layer =
SolidColorLayerImpl::Create(active_tree(), 2 + i);
opaque_layer->SetBackgroundColor(SK_ColorRED);
opaque_layer->SetContentsOpaque(true);
« no previous file with comments | « cc/trees/layer_tree_impl_unittest.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698