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

Unified Diff: cc/resources/picture_pile_unittest.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/picture_pile_unittest.cc
diff --git a/cc/resources/picture_pile_unittest.cc b/cc/resources/picture_pile_unittest.cc
index 882bbf457f133772bc7994455c095de9b1c8018f..833cc1951f5cd2eacef15761826e0571b55e6f9b 100644
--- a/cc/resources/picture_pile_unittest.cc
+++ b/cc/resources/picture_pile_unittest.cc
@@ -40,11 +40,19 @@ class PicturePileTestBase {
bool UpdateAndExpandInvalidation(Region* invalidation,
const gfx::Size& layer_size,
- const gfx::Rect& visible_layer_rect) {
+ const gfx::Rect& visible_layer_rect,
+ int* recorded_area) {
frame_number_++;
- return pile_.UpdateAndExpandInvalidation(&client_, invalidation, layer_size,
- visible_layer_rect, frame_number_,
- RecordingSource::RECORD_NORMALLY);
+ return pile_.UpdateAndExpandInvalidation(
+ &client_, invalidation, layer_size, visible_layer_rect, frame_number_,
+ RecordingSource::RECORD_NORMALLY, recorded_area);
+ }
+
+ bool UpdateAndExpandInvalidation(Region* invalidation,
+ const gfx::Size& layer_size,
+ const gfx::Rect& visible_layer_rect) {
+ return UpdateAndExpandInvalidation(invalidation, layer_size,
+ visible_layer_rect, nullptr);
}
bool UpdateWholePile() {

Powered by Google App Engine
This is Rietveld 408576698