| Index: cc/debug/picture_record_benchmark.cc
|
| diff --git a/cc/debug/picture_record_benchmark.cc b/cc/debug/picture_record_benchmark.cc
|
| index b1b8188d92f1cc1a8e2d22945259eb417e0bb57a..3ef4708f36ed067d921a68be8ad1b1f5391cd347 100644
|
| --- a/cc/debug/picture_record_benchmark.cc
|
| +++ b/cc/debug/picture_record_benchmark.cc
|
| @@ -57,7 +57,7 @@ PictureRecordBenchmark::~PictureRecordBenchmark() {}
|
| void PictureRecordBenchmark::DidUpdateLayers(LayerTreeHost* host) {
|
| LayerTreeHostCommon::CallFunctionForSubtree(
|
| host->root_layer(),
|
| - base::Bind(&PictureRecordBenchmark::Run, base::Unretained(this)));
|
| + [this](Layer* layer) { layer->RunMicroBenchmark(this); });
|
|
|
| scoped_ptr<base::ListValue> results(new base::ListValue());
|
| for (std::map<std::pair<int, int>, TotalTime>::iterator it = times_.begin();
|
| @@ -83,10 +83,6 @@ void PictureRecordBenchmark::DidUpdateLayers(LayerTreeHost* host) {
|
| NotifyDone(results.Pass());
|
| }
|
|
|
| -void PictureRecordBenchmark::Run(Layer* layer) {
|
| - layer->RunMicroBenchmark(this);
|
| -}
|
| -
|
| void PictureRecordBenchmark::RunOnLayer(PictureLayer* layer) {
|
| ContentLayerClient* painter = layer->client();
|
| gfx::Size content_bounds = layer->content_bounds();
|
|
|