aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/TestContext.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-05-11 11:55:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-11 11:55:36 -0700
commitc8699321b924c1f284df93cb29b86000c1d73c0a (patch)
tree79a78db44c72f95769d35c25d0f06739b90f2cfe /tools/gpu/TestContext.cpp
parentcf05dcd64b47dcf5e6ff02132d2b57d3b40d0bf1 (diff)
Nanobench running on Vulkan
This lets nanobench run but the timings are inaccurate because of missing implementations of synchronization functions in VkTestContext. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1965273004 Review-Url: https://codereview.chromium.org/1965273004
Diffstat (limited to 'tools/gpu/TestContext.cpp')
-rw-r--r--tools/gpu/TestContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpu/TestContext.cpp b/tools/gpu/TestContext.cpp
index 09174cd984..c6900fe41d 100644
--- a/tools/gpu/TestContext.cpp
+++ b/tools/gpu/TestContext.cpp
@@ -34,6 +34,7 @@ void TestContext::waitOnSyncOrSwap() {
return;
}
+ this->submit();
if (fFrameFences[fCurrentFenceIdx]) {
if (!fFenceSync->waitFence(fFrameFences[fCurrentFenceIdx], true)) {
SkDebugf("WARNING: Wait failed for fence sync. Timings might not be accurate.\n");