| Index: cc/tiles/tile_manager.cc
|
| diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
|
| index a67563a44023ae4281639bc05960b0fed4dc3d94..a59d208cb9d53b548929059b93243f9539474745 100644
|
| --- a/cc/tiles/tile_manager.cc
|
| +++ b/cc/tiles/tile_manager.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/logging.h"
|
| #include "base/metrics/histogram.h"
|
| #include "base/trace_event/trace_event_argument.h"
|
| +#include "cc/base/histograms.h"
|
| #include "cc/debug/devtools_instrumentation.h"
|
| #include "cc/debug/frame_viewer_instrumentation.h"
|
| #include "cc/debug/traced_value.h"
|
| @@ -29,6 +30,11 @@ namespace {
|
| // a tile is of solid color.
|
| const bool kUseColorEstimator = true;
|
|
|
| +DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER(
|
| + ScopedRasterTaskTimer,
|
| + "Compositing.RasterTask.RasterUs",
|
| + "Compositing.RasterTask.RasterPixelsPerMs");
|
| +
|
| class RasterTaskImpl : public RasterTask {
|
| public:
|
| RasterTaskImpl(
|
| @@ -103,6 +109,8 @@ class RasterTaskImpl : public RasterTask {
|
| void Raster(const RasterSource* raster_source) {
|
| frame_viewer_instrumentation::ScopedRasterTask raster_task(
|
| tile_id_, tile_resolution_, source_frame_number_, layer_id_);
|
| + ScopedRasterTaskTimer timer;
|
| + timer.SetArea(content_rect_.size().GetArea());
|
|
|
| DCHECK(raster_source);
|
|
|
|
|