[go: nahoru, domu]

Adding visualmetrics code under third_party for speedindex calculations.
Visualmetrics python library is used to calculate speedindex score of a webpage navigation.

src/tools/licenses.py scan & src/tools/checklicenses/checklicenses.py  succeeded.

BUG=630746

Review-Url: https://codereview.chromium.org/2145673002
Cr-Commit-Position: refs/heads/master@{#409292}
diff --git a/.gitignore b/.gitignore
index f7348d1..fe29bb6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -444,6 +444,7 @@
 /third_party/v8-i18n
 /third_party/valgrind
 /third_party/v4l2capture
+/third_party/visualmetrics
 /third_party/wayland/src
 /third_party/wayland-protocols/src
 /third_party/wds/src
diff --git a/DEPS b/DEPS
index f54e4bbf..d38bb26 100644
--- a/DEPS
+++ b/DEPS
@@ -286,6 +286,9 @@
   # Used for building libFuzzers (only supports Linux).
   'src/third_party/libFuzzer/src':
     Var('chromium_git') + '/chromium/llvm-project/llvm/lib/Fuzzer.git' + '@' +  Var('libfuzzer_revision'),
+
+  'src/third_party/visualmetrics/src':
+    Var('chromium_git') + '/external/github.com/WPO-Foundation/visualmetrics.git' + '@' +  '1edde9d2fe203229c895b648fdec355917200ad6',
 }
 
 
diff --git a/third_party/visualmetrics/OWNERS b/third_party/visualmetrics/OWNERS
new file mode 100644
index 0000000..5fe3630
--- /dev/null
+++ b/third_party/visualmetrics/OWNERS
@@ -0,0 +1,2 @@
+pmeenan@chromium.org
+nyquist@chromium.org
diff --git a/third_party/visualmetrics/README.chromium b/third_party/visualmetrics/README.chromium
new file mode 100644
index 0000000..eccbccf
--- /dev/null
+++ b/third_party/visualmetrics/README.chromium
@@ -0,0 +1,13 @@
+Name: VisualMetrics
+URL: https://chromium.googlesource.com/external/github.com/WPO-Foundation/visualmetrics
+Version: 0
+Revision: 1edde9d2fe203229c895b648fdec355917200ad6
+License: New BSD
+License File: NOT_SHIPPED
+Security Critical: No
+
+Description:
+Calculate visual performance metrics from a video (Speed Index, etc).
+
+Local Modifications:
+None.