| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/tiles/tile_manager.h" | 5 #include "cc/tiles/tile_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Flag to indicate whether we should try and detect that | 37 // Flag to indicate whether we should try and detect that |
| 38 // a tile is of solid color. | 38 // a tile is of solid color. |
| 39 const bool kUseColorEstimator = true; | 39 const bool kUseColorEstimator = true; |
| 40 | 40 |
| 41 // TODO(enne): remove this histogram and its monitoring in M58 once there is | 41 // TODO(enne): remove this histogram and its monitoring in M58 once there is |
| 42 // enough new data from the other two raster task timers. | 42 // enough new data from the other two raster task timers. |
| 43 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( | 43 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( |
| 44 ScopedGeneralRasterTaskTimer, | 44 ScopedGeneralRasterTaskTimer, |
| 45 "Compositing.%s.RasterTask.RasterUs", | 45 "Compositing.%s.RasterTask.RasterUs", |
| 46 "Compositing.%s.RasterTask.RasterPixelsPerMs"); | 46 "Compositing.%s.RasterTask.RasterPixelsPerMs2"); |
| 47 | 47 |
| 48 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( | 48 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( |
| 49 ScopedSoftwareRasterTaskTimer, | 49 ScopedSoftwareRasterTaskTimer, |
| 50 "Compositing.%s.RasterTask.RasterUs.Software", | 50 "Compositing.%s.RasterTask.RasterUs.Software", |
| 51 "Compositing.%s.RasterTask.RasterPixelsPerMs.Software"); | 51 "Compositing.%s.RasterTask.RasterPixelsPerMs2.Software"); |
| 52 | 52 |
| 53 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( | 53 DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER( |
| 54 ScopedGpuRasterTaskTimer, | 54 ScopedGpuRasterTaskTimer, |
| 55 "Compositing.%s.RasterTask.RasterUs.Gpu", | 55 "Compositing.%s.RasterTask.RasterUs.Gpu", |
| 56 "Compositing.%s.RasterTask.RasterPixelsPerMs.Gpu"); | 56 "Compositing.%s.RasterTask.RasterPixelsPerMs2.Gpu"); |
| 57 | 57 |
| 58 class ScopedRasterTaskTimer { | 58 class ScopedRasterTaskTimer { |
| 59 public: | 59 public: |
| 60 explicit ScopedRasterTaskTimer(bool use_gpu_rasterization) { | 60 explicit ScopedRasterTaskTimer(bool use_gpu_rasterization) { |
| 61 if (use_gpu_rasterization) | 61 if (use_gpu_rasterization) |
| 62 gpu_timer_.emplace(); | 62 gpu_timer_.emplace(); |
| 63 else | 63 else |
| 64 software_timer_.emplace(); | 64 software_timer_.emplace(); |
| 65 } | 65 } |
| 66 | 66 |
| (...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 all_tile_tasks_completed = false; | 1351 all_tile_tasks_completed = false; |
| 1352 did_notify_all_tile_tasks_completed = false; | 1352 did_notify_all_tile_tasks_completed = false; |
| 1353 } | 1353 } |
| 1354 | 1354 |
| 1355 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default; | 1355 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default; |
| 1356 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule( | 1356 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule( |
| 1357 PrioritizedWorkToSchedule&& other) = default; | 1357 PrioritizedWorkToSchedule&& other) = default; |
| 1358 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default; | 1358 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default; |
| 1359 | 1359 |
| 1360 } // namespace cc | 1360 } // namespace cc |
| OLD | NEW |