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

Unified Diff: cc/resources/display_list_recording_source.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/cc_tests.gyp ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/display_list_recording_source.cc
diff --git a/cc/resources/display_list_recording_source.cc b/cc/resources/display_list_recording_source.cc
index c1cca4f7206cca252e8ebefd91a1d567759ef6aa..3fcac114fb85781041a138a74702d13caefe4d0b 100644
--- a/cc/resources/display_list_recording_source.cc
+++ b/cc/resources/display_list_recording_source.cc
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "cc/base/histograms.h"
#include "cc/base/region.h"
#include "cc/layers/content_layer_client.h"
#include "cc/resources/display_item_list.h"
@@ -23,11 +22,6 @@ const int kPixelDistanceToRecord = 8000;
// operations.
const int kOpCountThatIsOkToAnalyze = 10;
-DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER(
- ScopedDisplayListRecordingSourceUpdateTimer,
- "Compositing.DisplayListRecordingSource.UpdateUs",
- "Compositing.DisplayListRecordingSource.UpdateInvalidatedAreaPerMs");
-
} // namespace
namespace cc {
@@ -57,7 +51,6 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
const gfx::Rect& visible_layer_rect,
int frame_number,
RecordingMode recording_mode) {
- ScopedDisplayListRecordingSourceUpdateTimer timer;
bool updated = false;
if (size_ != layer_size) {
@@ -83,12 +76,6 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
updated = true;
}
- // 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());
-
if (!updated && !invalidation->Intersects(recorded_viewport_))
return false;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/resources/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698