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

Unified Diff: cc/resources/picture_pile.cc

Issue 1135073002: Revert "cc: Add UMA stats for record and raster time." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/resources/display_list_recording_source.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile.cc
diff --git a/cc/resources/picture_pile.cc b/cc/resources/picture_pile.cc
index d82ead7b2b772aca24621ea1781b0a07cb4da102..2ce3e500f2ea86458054ed71b8854a096fff5328 100644
--- a/cc/resources/picture_pile.cc
+++ b/cc/resources/picture_pile.cc
@@ -8,7 +8,6 @@
#include <limits>
#include <vector>
-#include "cc/base/histograms.h"
#include "cc/base/region.h"
#include "cc/resources/picture_pile_impl.h"
#include "skia/ext/analysis_canvas.h"
@@ -150,11 +149,6 @@ const bool kDefaultClearCanvasSetting = false;
const bool kDefaultClearCanvasSetting = true;
#endif
-DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER(
- ScopedPicturePileUpdateTimer,
- "Compositing.PicturePile.UpdateUs",
- "Compositing.PicturePile.UpdateInvalidatedAreaPerMs");
-
} // namespace
namespace cc {
@@ -187,8 +181,6 @@ bool PicturePile::UpdateAndExpandInvalidation(
const gfx::Rect& visible_layer_rect,
int frame_number,
RecordingSource::RecordingMode recording_mode) {
- ScopedPicturePileUpdateTimer timer;
-
gfx::Rect interest_rect = visible_layer_rect;
interest_rect.Inset(-pixel_record_distance_, -pixel_record_distance_);
recorded_viewport_ = interest_rect;
@@ -196,13 +188,6 @@ bool PicturePile::UpdateAndExpandInvalidation(
bool updated = ApplyInvalidationAndResize(interest_rect, invalidation,
layer_size, frame_number);
-
- // Count the area that is being invalidated.
- Region recorded_invalidation(*invalidation);
- recorded_invalidation.Intersect(recorded_viewport_);
- for (Region::Iterator it(recorded_invalidation); it.has_rect(); it.next())
- timer.AddArea(it.rect().size().GetArea());
-
std::vector<gfx::Rect> invalid_tiles;
GetInvalidTileRects(interest_rect, &invalid_tiles);
std::vector<gfx::Rect> record_rects;
« no previous file with comments | « cc/resources/display_list_recording_source.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698