[go: nahoru, domu]

[cc/metrics] Include information about main-thread update.

In each FrameInfo, include information about whether it contains update
from the main-thread or not. Use this information to determine whether
the compositor-thread update or main-thread update (or neither, or both)
were dropped for that frame.

BUG=1276983, 1256879

Change-Id: Iccfe7cb2d45d2927a8f16eb6da1719f59a7441e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3320476
Reviewed-by: Behdad Bakhshinategh <behdadb@chromium.org>
Reviewed-by: Jonathan Ross <jonross@chromium.org>
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/main@{#949919}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index f795eb8..60572d95 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -484,6 +484,8 @@
     "test/fake_compositor_frame_reporting_controller.h",
     "test/fake_content_layer_client.cc",
     "test/fake_content_layer_client.h",
+    "test/fake_frame_info.cc",
+    "test/fake_frame_info.h",
     "test/fake_impl_task_runner_provider.h",
     "test/fake_layer_tree_frame_sink.cc",
     "test/fake_layer_tree_frame_sink.h",