From 399c965b6064c440ddcf4015f5f8e9d131c7a0a6 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 14 Jul 2016 17:41:05 +0200 Subject: BASELINE: Update Chromium to 52.0.2743.76 and Ninja to 1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I382f51b959689505a60f8b707255ecb344f7d8b4 Reviewed-by: Michael BrĂ¼ning --- chromium/cc/debug/micro_benchmark.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'chromium/cc/debug/micro_benchmark.cc') diff --git a/chromium/cc/debug/micro_benchmark.cc b/chromium/cc/debug/micro_benchmark.cc index 8077718c861..72d3c7dea31 100644 --- a/chromium/cc/debug/micro_benchmark.cc +++ b/chromium/cc/debug/micro_benchmark.cc @@ -4,9 +4,11 @@ #include "cc/debug/micro_benchmark.h" +#include + #include "base/callback.h" #include "base/logging.h" -#include "base/memory/scoped_ptr.h" +#include "base/memory/ptr_util.h" #include "base/single_thread_task_runner.h" #include "base/values.h" #include "cc/debug/micro_benchmark_impl.h" @@ -28,7 +30,7 @@ bool MicroBenchmark::IsDone() const { void MicroBenchmark::DidUpdateLayers(LayerTreeHost* host) {} -void MicroBenchmark::NotifyDone(scoped_ptr result) { +void MicroBenchmark::NotifyDone(std::unique_ptr result) { callback_.Run(std::move(result)); is_done_ = true; } @@ -37,7 +39,7 @@ void MicroBenchmark::RunOnLayer(Layer* layer) {} void MicroBenchmark::RunOnLayer(PictureLayer* layer) {} -bool MicroBenchmark::ProcessMessage(scoped_ptr value) { +bool MicroBenchmark::ProcessMessage(std::unique_ptr value) { return false; } @@ -45,16 +47,16 @@ bool MicroBenchmark::ProcessedForBenchmarkImpl() const { return processed_for_benchmark_impl_; } -scoped_ptr MicroBenchmark::GetBenchmarkImpl( +std::unique_ptr MicroBenchmark::GetBenchmarkImpl( scoped_refptr origin_task_runner) { DCHECK(!processed_for_benchmark_impl_); processed_for_benchmark_impl_ = true; return CreateBenchmarkImpl(origin_task_runner); } -scoped_ptr MicroBenchmark::CreateBenchmarkImpl( +std::unique_ptr MicroBenchmark::CreateBenchmarkImpl( scoped_refptr origin_task_runner) { - return make_scoped_ptr(nullptr); + return base::WrapUnique(nullptr); } } // namespace cc -- cgit v1.2.1