cc: Add UKM for checkerboarding from compositor input handling.
When handling a gesture on the compositor thread, we may checkerboard
tiles if no rasterized resource is available for them. This is currently
captured in Compositing.RenderPass.AppendQuadData UMA. This change adds
an equivalent UKM to capture this metric per site.
Since checkerboarding should only occur from input handled on the
compositor thread, the stats are accumulated only when we are actively
running an animation resulting from user input. In order to limit the
frequency with which the metric is recorded, the stats are accumulated
over the gesture duration and emitted when exiting it.
[email protected], [email protected]
Bug: 728273
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I1c47215963966f32f3c7d0f69661c87b21558ebb
Reviewed-on: https://chromium-review.googlesource.com/734134
Reviewed-by: Robert Kaplow <[email protected]>
Reviewed-by: Nasko Oskov <[email protected]>
Reviewed-by: Ali Juma <[email protected]>
Reviewed-by: Ken Buchanan <[email protected]>
Reviewed-by: vmpstr <[email protected]>
Commit-Queue: Khushal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#512667}
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 6903418..a2487d4 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -261,6 +261,7 @@
cc::TaskGraphRunner* GetTaskGraphRunner() override;
bool IsThreadedAnimationEnabled() override;
bool IsScrollAnimatorEnabled() override;
+ std::unique_ptr<cc::UkmRecorderFactory> CreateUkmRecorderFactory() override;
// blink::scheduler::RendererScheduler::RAILModeObserver implementation.
void OnRAILModeChanged(v8::RAILMode rail_mode) override;