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

Unified Diff: cc/resources/display_list_recording_source.cc

Issue 1075523002: cc: Add UMA stats for record and raster time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use area actually recorded Created 5 years, 8 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
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 3a47c9067ca4dc7e0634aca8269100887a91a304..fbd6142209a3fe1cf2bee1a120d75be49b6b8b25 100644
--- a/cc/resources/display_list_recording_source.cc
+++ b/cc/resources/display_list_recording_source.cc
@@ -48,7 +48,8 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
const gfx::Size& layer_size,
const gfx::Rect& visible_layer_rect,
int frame_number,
- RecordingMode recording_mode) {
+ RecordingMode recording_mode,
+ int* recorded_area) {
bool updated = false;
if (size_ != layer_size) {
@@ -120,6 +121,9 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
if (gather_pixel_refs_)
display_list_->GatherPixelRefs(grid_cell_size_);
+ if (recorded_area)
+ *recorded_area = recorded_viewport_.size().GetArea();
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698