diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/metal_util/test_shader.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/metal_util/test_shader.h')
-rw-r--r-- | chromium/components/metal_util/test_shader.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chromium/components/metal_util/test_shader.h b/chromium/components/metal_util/test_shader.h index c892b5cd1d4..5e1d9863a97 100644 --- a/chromium/components/metal_util/test_shader.h +++ b/chromium/components/metal_util/test_shader.h @@ -31,15 +31,14 @@ enum class METAL_UTIL_EXPORT TestShaderResult { }; using TestShaderCallback = - base::OnceCallback<void(TestShaderResult result, - const base::TimeDelta& method_time, + base::OnceCallback<void(TestShaderComponent component, + TestShaderResult result, const base::TimeDelta& compile_time)>; // A default timeout value for compiling the test shader. constexpr base::TimeDelta kTestShaderTimeout = base::TimeDelta::FromMinutes(1); -// Return the value kTestShaderTimeoutTime for |method_time| and |compile_time| -// if they time out. +// Return the value kTestShaderTimeoutTime for |compile_time| if it times out. constexpr base::TimeDelta kTestShaderTimeForever = base::TimeDelta::FromMinutes(3); @@ -49,7 +48,8 @@ constexpr base::TimeDelta kTestShaderDelay = base::TimeDelta::FromMinutes(3); // Attempt to asynchronously compile a trivial Metal shader. If |delay| is zero, // then compile synchronously, otherwise, post a delayed task to do the compile. // |callback| with the result when the shader succeeds or after |timeout| has -// elapsed. +// elapsed. Whether compile or link was tested is communicated to |callback| in +// its |component| argument. // // This is used to determine of the Metal shader compiler is resposive. Note // that |callback| will be called either on another thread or inside the @@ -58,8 +58,7 @@ constexpr base::TimeDelta kTestShaderDelay = base::TimeDelta::FromMinutes(3); void METAL_UTIL_EXPORT TestShader(TestShaderCallback callback, const base::TimeDelta& delay = kTestShaderDelay, - const base::TimeDelta& timeout = kTestShaderTimeout, - TestShaderComponent component = TestShaderComponent::kLink); + const base::TimeDelta& timeout = kTestShaderTimeForever); } // namespace metal |