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

Unified Diff: cc/raster/task_graph_runner_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/raster/task_graph_runner.h ('k') | cc/raster/texture_compressor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/task_graph_runner_perftest.cc
diff --git a/cc/raster/task_graph_runner_perftest.cc b/cc/raster/task_graph_runner_perftest.cc
index f86bae571bfb4c344f9e871a77db7bf11258d39e..56540f1c41f1ff90aa4deafa6b41d48503730b44 100644
--- a/cc/raster/task_graph_runner_perftest.cc
+++ b/cc/raster/task_graph_runner_perftest.cc
@@ -5,10 +5,11 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "cc/base/completion_event.h"
#include "cc/debug/lap_timer.h"
@@ -49,7 +50,7 @@ class TaskGraphRunnerPerfTest : public testing::Test {
// Overridden from testing::Test:
void SetUp() override {
- task_graph_runner_ = make_scoped_ptr(new SynchronousTaskGraphRunner);
+ task_graph_runner_ = base::WrapUnique(new SynchronousTaskGraphRunner);
namespace_token_ = task_graph_runner_->GetNamespaceToken();
}
void TearDown() override { task_graph_runner_ = nullptr; }
@@ -272,7 +273,7 @@ class TaskGraphRunnerPerfTest : public testing::Test {
// Test uses SynchronousTaskGraphRunner, as this implementation introduces
// minimal additional complexity over the TaskGraphWorkQueue helpers.
- scoped_ptr<SynchronousTaskGraphRunner> task_graph_runner_;
+ std::unique_ptr<SynchronousTaskGraphRunner> task_graph_runner_;
NamespaceToken namespace_token_;
LapTimer timer_;
};
« no previous file with comments | « cc/raster/task_graph_runner.h ('k') | cc/raster/texture_compressor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698