Commit 4824a933 authored by Zhenyao Mo's avatar Zhenyao Mo Committed by Commit Bot

Avoid calling eglSetBlobCacheFuncsANDROID multiple times in renderer_perftests.

Otherwise, all tests except the first one display an
error message.

BUG=1026447
TEST=viz_perftests
R=backer@chromium.org

Change-Id: I4e71979592debbc21e3d8e234318f1f4788b4de4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2108226Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751365}
parent 8b3b3089
......@@ -42,6 +42,7 @@ viz_test("viz_perftests") {
"//components/viz/common:perf_tests",
"//components/viz/service:perf_tests",
"//components/viz/test:test_suite",
"//components/viz/test:test_support",
"//mojo/core/embedder",
"//skia",
]
......
......@@ -4,6 +4,7 @@
#include "base/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "components/viz/test/test_gpu_service_holder.h"
#include "components/viz/test/viz_test_suite.h"
#include "mojo/core/embedder/embedder.h"
#include "skia/ext/event_tracer_impl.h"
......@@ -15,6 +16,8 @@ int main(int argc, char** argv) {
InitSkiaEventTracer();
viz::TestGpuServiceHolder::DoNotResetOnTestExit();
// Always run the perf tests serially, to avoid distorting
// perf measurements with randomness resulting from running
// in parallel.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment