Refactor chrome task delaying input processing to improve performance.

Calculating tasks delaying input processing is slow in part due to
recalculated chrome_tasks and other views/tables. Refactor out the
common functionality so that it is only called once for long tasks
and once for standard metrics.

This doesn't fix the full performance issue with the diff tests so
more work is forthcoming.

Change-Id: If624f8308d10afdabe110e94404c99a6403724f9
diff --git a/Android.bp b/Android.bp
index 345137e..0c1ac2e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -9701,6 +9701,7 @@
         "src/trace_processor/metrics/sql/chrome/chrome_event_metadata.sql",
         "src/trace_processor/metrics/sql/chrome/chrome_histogram_hashes.sql",
         "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals.sql",
+        "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_base.sql",
         "src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_template.sql",
         "src/trace_processor/metrics/sql/chrome/chrome_long_tasks.sql",
         "src/trace_processor/metrics/sql/chrome/chrome_long_tasks_delaying_input_processing.sql",